Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anduin
2024-06-22 09:17:29 +00:00
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
[![Test Coverage](https://gitlab.aiursoft.cn/aiursoft/ChessServer/badges/master/coverage.svg)](https://gitlab.aiursoft.cn/aiursoft/ChessServer/-/pipelines)
[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/aiursoft/ChessServer.svg)](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.
![overview](./screenshot.png)
@@ -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>