Skip to content

Commit 8ef5ea6

Browse files
Update index.html
1 parent 90e4666 commit 8ef5ea6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<script src="https://unpkg.com/peerjs@1.5.4/dist/peerjs.min.js"></script>
99
<script src="https://www.gstatic.com/firebasejs/9.23.0/firebase-app-compat.js"></script>
1010
<script src="https://www.gstatic.com/firebasejs/9.23.0/firebase-database-compat.js"></script>
11-
11+
1212
<style>
1313
:root {
1414
--neon-cyan: #00ffff;
@@ -25,7 +25,7 @@
2525
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
2626
margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px;
2727
}
28-
28+
2929
#lobbyPanel {
3030
max-width: 500px; margin: 10px auto; border: 1px solid var(--neon-cyan);
3131
background: rgba(0, 255, 255, 0.05); border-radius: 8px; padding: 15px;
@@ -47,13 +47,13 @@
4747
padding: 0.8rem 1.5rem; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; width: 180px;
4848
}
4949
.mode-btn.active-mode { border-color: var(--neon-cyan); color: #000; background: var(--neon-cyan); box-shadow: 0 0 20px var(--neon-cyan); }
50-
50+
5151
.scoreboard { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; font-size: 1.2rem; }
5252
.score-box { background: var(--glass); border: 1px solid #333; padding: 0.5rem 1.5rem; border-radius: 4px; min-width: 130px; text-align: center; transition: 0.3s; }
5353
.score-box.active { border-color: currentColor; box-shadow: 0 0 15px currentColor; background: rgba(255,255,255,0.1); }
5454
.score-white { color: #fff; }
5555
.score-black { color: var(--neon-magenta); }
56-
56+
5757
.status-display { text-align: center; font-size: 1.1rem; color: #888; min-height: 1.5em; margin-bottom: 10px; }
5858
.status-display.alert { color: var(--alert-red); animation: textPulse 1s infinite; }
5959
@keyframes textPulse { 0%{opacity:1} 50%{opacity:0.7} 100%{opacity:1} }
@@ -64,21 +64,21 @@
6464
border: 4px solid var(--neon-cyan); background: #000; transform: rotateX(5deg); transition: 0.3s;
6565
}
6666
.chessboard.danger-state { border-color: var(--alert-red); box-shadow: 0 0 30px rgba(255,0,0,0.3); }
67-
67+
6868
.square { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
6969
.square.light { background: #2a2a2a; }
7070
.square.dark { background: #1a1a1a; }
7171
.square.valid-move::after { content: ''; position: absolute; width: 15px; height: 15px; background: rgba(0, 255, 0, 0.4); border-radius: 50%; box-shadow: 0 0 10px #0f0; }
7272
.square.capture-move::after { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(255, 0, 0, 0.3); box-shadow: inset 0 0 15px #f00; }
7373
.square.selected { background: rgba(0, 255, 255, 0.2) !important; box-shadow: inset 0 0 15px var(--neon-cyan); }
74-
74+
7575
.piece { font-size: clamp(2rem, 9vw, 3.5rem); user-select: none; z-index: 2; transition: transform 0.2s; }
7676
.piece.white { color: #e0e0e0; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
7777
.piece.black { color: #ff00ff; text-shadow: 0 0 10px rgba(255,0,255,0.5); }
78-
78+
7979
.cyber-btn { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 0.5rem 1.5rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; margin: 0 5px; font-weight: bold; }
8080
.cyber-btn:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 15px var(--neon-cyan); }
81-
81+
8282
#chatToggle { position: fixed; bottom: 20px; right: 20px; z-index: 1000; border-radius: 50%; width: 50px; height: 50px; }
8383
#chatPanel { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background: rgba(10, 10, 10, 0.98); border-left: 2px solid var(--neon-cyan); z-index: 999; transition: 0.4s; display: flex; flex-direction: column; padding: 15px; }
8484
#chatPanel.open { right: 0; }
@@ -92,7 +92,7 @@
9292
<section id="cyberChessSection">
9393
<div class="container">
9494
<h2 class="chess-title">Cyber Chess v12</h2>
95-
95+
9696
<div id="lobbyPanel">
9797
<div class="d-flex justify-content-between align-items-center">
9898
<small id="status" class="text-info">Connecting to Matrix...</small>
@@ -140,7 +140,7 @@ <h5 class="text-info">SECURE CHAT</h5>
140140
const firebaseConfig = { databaseURL: "https://cyber-chess-lobby-default-rtdb.firebaseio.com" };
141141
firebase.initializeApp(firebaseConfig);
142142
const db = firebase.database();
143-
143+
144144
const lobby = {
145145
updateList(snapshot) {
146146
const listEl = document.getElementById('lobbyList');
@@ -234,7 +234,7 @@ <h5 class="text-info">SECURE CHAT</h5>
234234
this.render(); this.updateUI();
235235
},
236236
setMode(m) { this.mode = m; document.getElementById('btnPvP').classList.toggle('active-mode', m==='pvp'); document.getElementById('btnAI').classList.toggle('active-mode', m==='ai'); this.init(); },
237-
237+
238238
evaluateBoard(b) {
239239
let total = 0;
240240
for(let r=0; r<8; r++) for(let c=0; c<8; c++) {
@@ -308,7 +308,7 @@ <h5 class="text-info">SECURE CHAT</h5>
308308
const type = p.toLowerCase(); const dx = t.c-f.c, dy = t.r-f.r;
309309
const target = this.board[t.r][t.c];
310310
if(target && (p===p.toLowerCase()) === (target===target.toLowerCase())) return false;
311-
311+
312312
let geo = false;
313313
if(type==='p') {
314314
const dir = p==='p'?-1:1;

0 commit comments

Comments
 (0)