-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (123 loc) · 5.04 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
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<!-- <script type="text/javascript" src="event.js"></script> -->
<title>Accueil</title>
</head>
<body>
<!-- La musique, réutiliser le concept pour être moins chiant -->
<!--
<figure>
<figcaption>Shogi music</figcaption>
<audio controls loop src="SHOGI_DESUNE.mp3">
Your browser does not support the
<code>audio</code> element.
</audio>
</figure>
-->
<header>
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<h1 class="site-title">
<a class="navbar-brand" href="index.php">Shogi-Master</a>
</h1>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="jouer" role="button" data-bs-toggle="dropdown">
Jouer
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Créer une partie</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link dropdown-toggle" href="#" id="apprendre" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Apprendre
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Créer une partie</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container-fluid">
<div class="row text-center">
<div class="col-4"></div>
<div class="col-6">
<!-- <div class="caseBlanc2"></div> -->
<table>
<tr>
<td><div id="pionC2" class="compteurPieceMorte">0</div></td>
<td><div id = "fouC2" class="compteurPieceMorte">0</div></td>
<td><div id = "generalOrC2" class="compteurPieceMorte">0</div></td>
<td><div id = "generalArgentC2" class="compteurPieceMorte">0</div></td>
<td><div id = "tourC2" class="compteurPieceMorte">0</div></td>
<td><div id = "cavalierC2" class="compteurPieceMorte">0</div></td>
<td><div id = "lancierC2" class="compteurPieceMorte">0</div></td>
</tr>
<tr>
<td><div class="caseMorte2" type = "Pion" id = "pion2"></div></td>
<td><div class="caseMorte2" type = "Fou" id = "fou2"></div></td>
<td><div class="caseMorte2" type = "GeneralOr" id = "generalOr2"></div></td>
<td><div class="caseMorte2" type = "GeneralArgent" id = "generalArgent2"></div></td>
<td><div class="caseMorte2" type = "Tour" id = "tour2"></div></td>
<td><div class="caseMorte2" type = "Cavalier" id = "cavalier2"></div></td>
<td><div class="caseMorte2" type = "Lancier" id = "lancier2"></div></td>
</tr>
</table>
<br>
<table id ="echequier">
<script>
var cases = "";
var echequier = document.getElementById('echequier')
var i = 0
var j = 0
for (i;i < 9; i++){
cases += "<tr>"
for(j = 0;j<9;j++){
cases += "<td>"
cases += '<div class="caseBlanc" id="' + j + ', ' + i + '" x="' + j + '" y ="' + i +'"></div>'
cases += "</td>"
}
cases += "</tr>"
}
echequier.innerHTML = cases
</script>
</table>
<br>
<table>
<tr>
<td><div class="caseMorte" type = "Pion" id = "pion1"></div></td>
<td><div class="caseMorte" type = "Fou" id = "fou1"></div></td>
<td><div class="caseMorte" type = "GeneralOr" id = "generalOr1"></div></td>
<td><div class="caseMorte" type = "GeneralArgent" id = "generalArgent1"></div></td>
<td><div class="caseMorte" type = "Tour" id = "tour1"></div></td>
<td><div class="caseMorte" type = "Cavalier" id = "cavalier1"></div></td>
<td><div class="caseMorte" type = "Lancier" id = "lancier1"></div></td>
</tr>
<tr>
<td><div id = "pionC1" class="compteurPieceMorte">0</div></td>
<td><div id = "fouC1" class="compteurPieceMorte">0</div></td>
<td><div id = "generalOrC1" class="compteurPieceMorte">0</div></td>
<td><div id = "generalArgentC1" class="compteurPieceMorte">0</div></td>
<td><div id = "tourC1" class="compteurPieceMorte">0</div></td>
<td><div id = "cavalierC1" class="compteurPieceMorte">0</div></td>
<td><div id = "lancierC1" class="compteurPieceMorte">0</div></td>
</tr>
</table>
</div>
</div>
</div>
<script type="module" src="event.js"></script>
</html>