Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
[](https://gitlab.aiursoft.cn/aiursoft/ChessServer/-/pipelines)
|
||||
[](https://gitlab.aiursoft.cn/aiursoft/ChessServer/-/commits/master?ref_type=heads)
|
||||
|
||||
ChessServer is just a simple chess server. Based on WebSocket. Can be played with sharing link with friends. No sign up required.
|
||||
ChessServer is just a simple web-based chess server. Based on WebSocket. Can be played with sharing link with friends. No sign up required.
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
</form>
|
||||
|
||||
<script type="module">
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template id="messageFromOpponent">
|
||||
<div class="row justify-content-start">
|
||||
<div class="toast align-items-center bg-white text-black my-1 opacity-1 flex-basis-auto"
|
||||
<div class="toast align-items-center bg-white text-dark my-1 opacity-1 flex-basis-auto"
|
||||
aria-live="assertive" aria-atomic="true">
|
||||
<div class="d-flex">
|
||||
<div class="toast-body" data-message><!-- MESSAGE HERE--></div>
|
||||
@@ -39,12 +39,12 @@
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
import initChat from "/scripts/chat.js";
|
||||
import { getUserId } from "/scripts/player.js";
|
||||
import initChat from "/scripts/chat.js";
|
||||
import { getUserId } from "/scripts/player.js";
|
||||
|
||||
window.addEventListener('DOMContentLoaded', async () => {
|
||||
var playerId = getUserId();
|
||||
initChat(playerId, @Model.GameId);
|
||||
});
|
||||
window.addEventListener('DOMContentLoaded', async () => {
|
||||
var playerId = getUserId();
|
||||
initChat(playerId, @Model.GameId);
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user