Commit Graph

59 Commits

Author SHA1 Message Date
Djalim Simaila
5e6ba33771 compressed image even more 2023-04-01 18:35:56 +02:00
Djalim Simaila
71c54cdfa9 fixed textbox disapearing in interogation + npc not going neutral after question 2023-04-01 16:49:43 +02:00
Djalim Simaila
fa554ef6e8 simple chat css 2023-04-01 16:49:43 +02:00
579d4ab0b9 Compressed pictures even more for even more faster loads 2023-04-01 16:49:43 +02:00
874dca1b0c Compressed pictures even more for even more faster loads 2023-04-01 16:49:36 +02:00
dda75ff4d4 Compressed pictures for faster load 2023-04-01 16:49:12 +02:00
de0ce9762e Compressed pictures for faster load 2023-04-01 16:48:53 +02:00
f91af841a3 Stylised suspect names 2023-04-01 16:48:01 +02:00
d41df3e478 showing reaction pictures in result page 2023-04-01 16:48:01 +02:00
ed8b928ebc hide button on solo game + fixed player list updates in lobby + fixed joining a already started game 2023-04-01 16:48:01 +02:00
a66f8e61e6 added chat 2023-04-01 16:48:01 +02:00
feae6929c4 atomic commit 2023-04-01 16:48:00 +02:00
AudricV
186e66a103
[Client] Improve NPC admin page + move and fix its JavaScript into a separate file
- Style all button and inputs on admin pages with Roboto Mono font (and
sans-serif as a fallback) with 1em font size;
- Remove unneeded transition effect property declaration on text hover, as the
regular declaration is applied when switching from hover state to regular
state.
- Add NPC dedicated stylesheet in which specific NPC style has been added;
- Use an icon where the picture of a NPC is not available (like when adding a
new one) and provide the NPC picture as the picture instead of the edition page
itself;
- Move NPC's JavaScript in a dedicated file, improve its code and fix its
access to DOM elements.
2023-04-01 15:05:19 +02:00
AudricV
6b1d278712
[Client] Improve admin index page
- Use proper HTML;
- Add common CSS to all administration pages and specific CSS to this one;
- Add common header;
- Remove unneeded script in the index page.
2023-04-01 15:03:16 +02:00
AudricV
af02671812
[Client] Improve admin login page 2023-04-01 14:55:53 +02:00
61b044689f
Merge pull request #133 from ThomasRubini/jsfix
fix change not going neutral after question timeout
2023-03-31 12:35:17 +02:00
8873e1a14a added solo game flag 2023-03-31 07:19:53 +02:00
cd074c26de fix change not going neutral after question timeout 2023-03-30 19:27:06 +02:00
Thomas Rubini
4835f0b077
Merge branch 'main' of gitschool:ThomasRubini/SAE-A2-TruthInquiry 2023-03-29 10:11:58 +02:00
Thomas Rubini
3c8f9a1ada
Allow to delete npcs 2023-03-29 10:11:55 +02:00
Audric V
61de799253
Merge pull request #127 from ThomasRubini/client_improve-game-pages
[Client] Improve game pages
2023-03-29 09:57:31 +02:00
AudricV
40c4e47327
[Client] Improve legal pages design
- Change background color to game's grey to fix hover color of footer links;
- Move footer links at the bottom of the page;
- Change game's blue color to match this color with accessibility
recommendations.
2023-03-29 09:55:11 +02:00
AudricV
8aed3a99da
[Client] Improve unsupported browser and footer code and design 2023-03-29 09:55:10 +02:00
Thomas Rubini
fb75ee1c3a
Rename js admin functions 2023-03-29 09:53:57 +02:00
AudricV
c6687748a2
[Client] Improve homepage code 2023-03-29 09:52:10 +02:00
AudricV
4acbb6214a
[Client] Improve game HTML code 2023-03-29 09:52:10 +02:00
Thomas Rubini
f500347da6
Merge pull request #111 from ThomasRubini/jsDoc 2023-03-28 20:58:03 +02:00
Thomas Rubini
ccac9c302c
Connect npc view to backend 2023-03-25 20:17:05 +01:00
e020de963b
Merge pull request #114 from ThomasRubini/playerlistEndpoint
can see player before joining game
2023-03-20 16:44:22 +01:00
Djalim Simaila
cc3728b62f can see player before joining game 2023-03-20 16:39:37 +01:00
Thomas Rubini
c69edc3248
Merge pull request #113 from ThomasRubini/admin_html 2023-03-20 16:37:30 +01:00
Cazals Mathias
ede7a45ae5 update questions file in for admin 2023-03-20 16:02:52 +01:00
Cazals Mathias
54ec4bf618 update admin files 2023-03-20 15:55:40 +01:00
Djalim Simaila
3b2d4ca693 added missing docstring in game_lobby.js 2023-03-20 15:11:57 +01:00
Djalim Simaila
e72f9a9790 added missing docstring in game_start_page.js 2023-03-20 15:11:57 +01:00
8d878d8eff added docstring to the game.js file 2023-03-20 15:11:57 +01:00
AudricV
7a06129346
[Client] Add blur filter for game backgrounds to increase visibility of texts 2023-03-20 14:26:33 +01:00
AudricV
e83591c9ef
[Client] Add button to go back to the home page on game results view
This button has been placed at the top right of the page.

Also merge some common properties into a single one.
2023-03-20 13:43:46 +01:00
Thomas Rubini
4d7ac75ecc
move reaction files 2023-03-19 11:12:04 +01:00
Thomas Rubini
25eeae34ba
allow makeAPIRequest() to handle JSON requests 2023-03-12 12:57:42 +01:00
Thomas Rubini
1f52c7c98c
Handle server JSON responses which do not have 'error' key 2023-03-12 12:57:42 +01:00
AudricV
c825f588ae
[Client] Refactor API JavaScript code
Add documentation on functions and remove debug logging
2023-03-10 10:30:13 +01:00
AudricV
47a3088b4d
[Client] Refactor and improve game JavaScript code 2023-03-10 10:29:55 +01:00
AudricV
09b925eb67
[Client] Refactor and improve lobby JavaScript code 2023-03-09 18:17:20 +01:00
AudricV
1a05876c1b
[Client] Refactor common JavaScript code
Also do minor changes:

- Add utility functions to hide and show the first element matching a CSS
class;
- Add SameSite property with Strict value to the temporary cookie used to
detect cookies availability on the client.
2023-03-09 18:11:04 +01:00
AudricV
4b6cbc9214
[Client] Refactor legal game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:19 +01:00
AudricV
b5648ebf53
[Client] Refactor lobby game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:19 +01:00
AudricV
c0486c70f2
[Client] Refactor gameplay game style
- Order properties alphabetically
- Use colors variables from global style and move gameplay colors into
  variables
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:03 +01:00
AudricV
14747b53b7
[Client] Refactor start game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:08:37 +01:00
AudricV
97473aea56
[Client] Refactor global game style
- Order properties alphabetically
- Move colors into variables
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:08:37 +01:00