Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stewan Lheureux
Échecs féeriques
Commits
f72efb11
Commit
f72efb11
authored
Mar 17, 2020
by
sunye
Browse files
Add missing index.ejs file
parent
df464127
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/index.ejs
0 → 100644
View file @
f72efb11
<!DOCTYPE html>
<html
lang=
"fr"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Online Chess
</title>
<!-- Chargement des styles -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
>
<!-- Chargement des scripts -->
<script
src=
"status.js"
></script>
<!-- import de la partie actuelle -->
<script
src=
"script.js"
></script>
<!-- affichage et gestion de l'échiquier -->
</head>
<body
onload=
"init()"
>
<center>
<h1>
Online Chess
</h1>
<!-- L'échiquier est un tableau de 8 lignes x 8 colonnes -->
<table
class=
"chessboard"
>
<tr><th></th><th>
a
</th><th>
b
</th><th>
c
</th><th>
d
</th><th>
e
</th><th>
f
</th><th>
g
</th><th>
h
</th></tr>
<tr><th>
8
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
8
</th></tr>
<tr><th>
7
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
7
</th></tr>
<tr><th>
6
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
6
</th></tr>
<tr><th>
5
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
5
</th></tr>
<tr><th>
4
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
4
</th></tr>
<tr><th>
3
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
3
</th></tr>
<tr><th>
2
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
2
</th></tr>
<tr><th>
1
</th><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><th>
1
</th></tr>
<tr><th></th><th>
a
</th><th>
b
</th><th>
c
</th><th>
d
</th><th>
e
</th><th>
f
</th><th>
g
</th><th>
h
</th></tr>
</table><br/>
<!-- Formulaire de saisie et emission du coup à jouer
Envoie une requêtes sur '/ (POST)' au serveur -->
<form
method=
"POST"
>
<input
type=
"text"
name=
"move"
placeholder=
"Movement (d7-d6)"
autofocus
></input>
<input
type=
"submit"
value=
"Send"
></input>
</form>
<
%
if
(
error
!==
null
){
%
>
<p><
%=
error
%
></p>
<
%
}
%
>
</center>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment