-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.html
46 lines (33 loc) · 1005 Bytes
/
model.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="images/icon.ico">
<script src="p5/p5.js"></script>
<title>model</title>
</head>
<body>
<div class="graphic">
<img id="modelGraphic" src="images/models/model1.png" alt="modelGraphic" height="700">
</div>
<div class="pageButton">
<h1 id="nextButton" onclick="next()">walk</h1>
</div>
<div class="backButton"><a href="index.html">back</a></div>
<script>
var modelNum = 2;
function next() {
var nextModel = "images/models/model" + modelNum + ".png";
document.getElementById("modelGraphic").src = nextModel;
document.getElementById("modelGraphic").style.marginLeft = "margin: 0 " + 10 * modelNum + "0 0";
if (modelNum < 26) {
modelNum++
} else {
modelNum = 1
}
};
</script>
</body>
</html>