Commit Graph

42 Commits

Author SHA1 Message Date
7c16615c79 added feedback on some button clics 2023-04-02 14:51:30 +02:00
Thomas Rubini
d9ddb96e80
remove reaction_id with trait_id 2023-04-01 18:55:51 +02:00
Thomas Rubini
93409c5e54
allow to add and delete reactions (backend) 2023-04-01 18:54:08 +02:00
Thomas Rubini
1cd238b4ab
add content type form 2023-04-01 18:19:56 +02:00
Thomas Rubini
d5199a6ef1
allow to add and delete reactions (frontend only) 2023-04-01 17:48:25 +02:00
Thomas Rubini
3a8680e41a
add reactions images to npc view 2023-04-01 17:48:24 +02:00
Djalim Simaila
71c54cdfa9 fixed textbox disapearing in interogation + npc not going neutral after question 2023-04-01 16:49:43 +02:00
dda75ff4d4 Compressed pictures for faster load 2023-04-01 16:49:12 +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
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
Thomas Rubini
fb75ee1c3a
Rename js admin functions 2023-03-29 09:53:57 +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
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
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
9e936f906c game question timeout set to 2sec 2023-02-03 13:24:04 +00:00
AudricV
8a6fcdce9e
[Client] Hide all other suspect buttons when a suspect is selected as the culprit 2023-01-16 23:43:28 +01:00
AudricV
06d3faad87
[Client] Show game background based on current view
Also reformat the game JavaScript file
2023-01-16 23:17:34 +01:00
Thomas Rubini
ebae7254b6
put 'Lien' instead of 'Code' 2023-01-16 15:03:40 +01:00
Thomas Rubini
3011c4b2b5
rename app name from truthseeker to truthinquiry 2023-01-16 14:36:49 +01:00