Added README
This commit is contained in:
parent
77a6d7fa6c
commit
206de2c05e
2 changed files with 13 additions and 3 deletions
10
README.md
10
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.
|
||||
|
||||
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue