continua nao aparecendo o tabuleiro nem as peças, crie um plano para resolver e execute - Follow Up Deployment
Browse files- index.html +6 -6
index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"></script>
|
| 10 |
-
<script src="https://cdn.jsdelivr.net/npm/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.js"></script>
|
| 11 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.css">
|
|
|
|
| 12 |
<style>
|
| 13 |
.highlight {
|
| 14 |
background-color: rgba(0, 0, 255, 0.3) !important;
|
|
@@ -98,10 +98,8 @@
|
|
| 98 |
<div class="flex flex-col lg:flex-row gap-8">
|
| 99 |
<!-- Chessboard -->
|
| 100 |
<div class="lg:w-2/3">
|
| 101 |
-
<div id="board" class="mx-auto
|
| 102 |
-
<div
|
| 103 |
-
<div id="board-inner" style="width: 100%; height: 100%;"></div>
|
| 104 |
-
</div>
|
| 105 |
</div>
|
| 106 |
|
| 107 |
<div class="mt-4 flex justify-center gap-4">
|
|
@@ -194,6 +192,7 @@
|
|
| 194 |
</div>
|
| 195 |
|
| 196 |
<script>
|
|
|
|
| 197 |
// Initialize Stockfish worker
|
| 198 |
const stockfish = new Worker('https://cdn.jsdelivr.net/npm/stockfish.js@10.0.2/stockfish.js');
|
| 199 |
|
|
@@ -249,7 +248,7 @@
|
|
| 249 |
notationPosition: 'outside'
|
| 250 |
};
|
| 251 |
|
| 252 |
-
board =
|
| 253 |
}
|
| 254 |
|
| 255 |
// Start a new game
|
|
@@ -794,6 +793,7 @@
|
|
| 794 |
|
| 795 |
// Show tutorial on first load
|
| 796 |
tutorialModalEl.classList.remove('hidden');
|
|
|
|
| 797 |
</script>
|
| 798 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=olywwe/chesstes" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 799 |
</html>
|
|
|
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"></script>
|
|
|
|
| 10 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.css">
|
| 11 |
+
<script src="https://cdn.jsdelivr.net/npm/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.js"></script>
|
| 12 |
<style>
|
| 13 |
.highlight {
|
| 14 |
background-color: rgba(0, 0, 255, 0.3) !important;
|
|
|
|
| 98 |
<div class="flex flex-col lg:flex-row gap-8">
|
| 99 |
<!-- Chessboard -->
|
| 100 |
<div class="lg:w-2/3">
|
| 101 |
+
<div id="board" class="mx-auto" style="width: 500px; height: 500px; max-width: 100%;">
|
| 102 |
+
<div id="board-inner" style="width: 100%; height: 100%;"></div>
|
|
|
|
|
|
|
| 103 |
</div>
|
| 104 |
|
| 105 |
<div class="mt-4 flex justify-center gap-4">
|
|
|
|
| 192 |
</div>
|
| 193 |
|
| 194 |
<script>
|
| 195 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 196 |
// Initialize Stockfish worker
|
| 197 |
const stockfish = new Worker('https://cdn.jsdelivr.net/npm/stockfish.js@10.0.2/stockfish.js');
|
| 198 |
|
|
|
|
| 248 |
notationPosition: 'outside'
|
| 249 |
};
|
| 250 |
|
| 251 |
+
board = Chessboard('board-inner', config);
|
| 252 |
}
|
| 253 |
|
| 254 |
// Start a new game
|
|
|
|
| 793 |
|
| 794 |
// Show tutorial on first load
|
| 795 |
tutorialModalEl.classList.remove('hidden');
|
| 796 |
+
}); // End of DOMContentLoaded
|
| 797 |
</script>
|
| 798 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=olywwe/chesstes" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 799 |
</html>
|