html
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
<!-- Created by Charbel -->
<!DOCTYPE HTML>
<html lang="en">
<head>
<title> </title>
</head>
<body>
<script src="code.js" defer> </script>
<link rel="stylesheet" href="style.css">
<div class="jeu">
<div>
<span class="case one"> <img src="https://clipart-library.com/2023/3-30047_square-clip-art-blue-square-clip-art.png" > </span>
<span class="case two"> <img src="https://clipart-library.com/2023/3-30047_square-clip-art-blue-square-clip-art.png" > </span>
<span class="case three"> <img src="https://clipart-library.com/2023/3-30047_square-clip-art-blue-square-clip-art.png" > </span>
</div>
<div>
<span class="case four"> <img src="https://clipart-library.com/2023/3-30047_square-clip-art-blue-square-clip-art.png" > </span>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
/* Created by Charbel */
img {
display :inline-block;
width: 50px;
}
.jeu {
text-align: center;
}
Enter to Rename, Shift+Enter to Preview
js
js
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
// Created by Charbel
// Created by Charbel
// Created by Charbel
// Created by Charbel
// Created by Charbel
// Created by Charbel
// Created by Charbel
window.onload = ()=>{
//here
var caze= document.getElementsByTagName("img")
let fin=0;
for(var i=0;i<caze.length;i++){
caseActu=caze[i]
if(fin===0){
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run