From 91a856e2fd8ca6575bf9ff169a1eda4a992fb28a Mon Sep 17 00:00:00 2001 From: Ladebeze66 Date: Sun, 15 Sep 2024 19:51:33 +0200 Subject: [PATCH] chatf --- .../migrations/0002_alter_match_winner.py | 19 ++ pong/static/game.js | 2 + pong/static/index.html | 174 ++++++----- pong/static/styles.css | 274 ++++++++++-------- 4 files changed, 273 insertions(+), 196 deletions(-) create mode 100644 pong/game/migrations/0002_alter_match_winner.py diff --git a/pong/game/migrations/0002_alter_match_winner.py b/pong/game/migrations/0002_alter_match_winner.py new file mode 100644 index 0000000..c53fc0b --- /dev/null +++ b/pong/game/migrations/0002_alter_match_winner.py @@ -0,0 +1,19 @@ +# Generated by Django 5.1.1 on 2024-09-15 16:40 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('game', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='match', + name='winner', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='won_matches', to='game.player'), + ), + ] diff --git a/pong/static/game.js b/pong/static/game.js index ac3daaa..8efd2f6 100644 --- a/pong/static/game.js +++ b/pong/static/game.js @@ -948,6 +948,8 @@ document.addEventListener('DOMContentLoaded', () => { } this.switchRoom(roomName); + // Activer l'affichage du conteneur de chat + document.getElementById('chat-container').style.display = 'flex'; } } diff --git a/pong/static/index.html b/pong/static/index.html index db8d3f4..ed7361d 100644 --- a/pong/static/index.html +++ b/pong/static/index.html @@ -198,78 +198,108 @@ -
- -
-
- - -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
Main Room
-
Tournament
-
Quick Match
-
-
- - +
+ + +
+ +
+ +
+
+ + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Main Room
+
Tournament
+
Quick Match
+
+
+ +