From 206de2c05e7780816d69f1d6734447b5d28f30e4 Mon Sep 17 00:00:00 2001 From: Guillem George Date: Sat, 16 May 2026 21:30:07 +0200 Subject: [PATCH] Added README --- README.md | 10 ++++++++++ src/rooms/canvas/utils.js | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e69de29..379fca9 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,10 @@ +# E/Place + +> **Note** This is a school project, therefore it probably won't interest you if you are looking for something useful. + +## Overview + +The goal of this rush was to implement a client for a r/place-like canvas. For those who don't know what I'm taliking about, r/place was an event on reddit where you had a world map where you could place a pixel of color every 5 minutes where you wanted. +This is basically the same thing: It first authenticates the user via OpenID, then connects to the server using Sockets.IO and a REST API simultaneously. Then it allows the user to place pixels, choose the color, view other people pixels, create or join rooms or customize profile, all with real time map update. +We had approximately 2 days to implement the client. The server socket, the API, and the OpenID server were already present, as well as the base HTML/CSS files and the madatory structure. + diff --git a/src/rooms/canvas/utils.js b/src/rooms/canvas/utils.js index b7e1855..420688f 100644 --- a/src/rooms/canvas/utils.js +++ b/src/rooms/canvas/utils.js @@ -69,12 +69,12 @@ export const toggleTooltip = async (state = false) => { } // Display - const date = new Date(response.timestamp * 1000); + const date = new Date(response.timestamp); document.getElementById("tooltip-date").innerText = - date.toLocaleDateString(); + date.toLocaleDateString("fr-fr"); document.getElementById("tooltip-time").innerText = - date.toLocaleTimeString(); + date.toLocaleTimeString("fr-fr"); getStudent(response.placedByUid); } };