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
+
+
+ +