-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
122 lines (111 loc) · 4.78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<title>Chess Game</title>
<meta charset="utf-8">
<script type="text/javascript" src="../libs/jquery.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<div id="myModal" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Chess Game!</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Bienvenido a Chess Game!. </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary text-center" data-bs-dismiss="modal">Comenzar partida</button>
</div>
</div>
</div>
</div>
<div id="mate_negras" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Fin de la partida :(</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="mensajeFin">
<p>GANAN LAS NEGRAS! </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary text-center" onclick="location.reload()" data-bs-dismiss="modal">Finalizar partida</button>
</div>
</div>
</div>
</div>
<div id="mate_blancas" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Fin de la partida :(</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="mensajeFin">
<p>GANAN LAS BLANCAS! </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary text-center" onclick="location.reload()" data-bs-dismiss="modal">Finalizar partida</button>
</div>
</div>
</div>
</div>
<div id="ahogado" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Fin de la partida</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="mensajeFin">
<p>AHOGADO! EMPATE </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary text-center" onclick="location.reload()" data-bs-dismiss="modal">Finalizar partida</button>
</div>
</div>
</div>
</div>
<div id="rendicion" class="modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Fin de la partida :(</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="mensajeFin">
<p>EL JUGADOR SE RINDE</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary text-center" onclick="location.reload()" data-bs-dismiss="modal">Finalizar partida</button>
</div>
</div>
</div>
</div>
<button type="button" style ="position:absolute; right:100px; top:10px" id="botonRendirse" class="btn btn-dark">Rendirse</button>
<script>
$(window).on('load', function() {
$('#myModal').modal('show');
});
</script>
<script type="module" src="MyScene.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
body{
margin: 0;
overflow: hidden;
}
</style>
</head>
<body>
<!-- Div which will hold the Output -->
<div style ="position:absolute; left:100px; top:10px" id="Messages">
</div>
<div id="WebGL-output">
</div>
</body>
</html>