-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
93 lines (88 loc) · 3.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Teach this dog a trick!</title>
<link rel="shortcut icon" type="img/ico" href="favicon.ico" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link rel="stylesheet" type="text/css" href="tdstyle.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="./js/three/three.js"></script>
<script src="./js/three/libs/ColladaLoader.js"></script>
<script src="./js/three/WebGL.js"></script>
<script src="./js/three/libs/OrbitControls.js"></script>
<script src="./js/three/libs/stats.min.js"></script>
<script src="./js/three/libs/tweenjs.js"></script>
</head>
<body>
<nav>
<h1>
loading... Come here doggie!
</h1>
<!-- <div id="menu-btn">
<span>Menu</span>
</div> -->
</nav>
<div class="clear"></div>
<div id="content-container">
<div id="content">
<div id="loadingScreen">
Come here doggie!!
<h2>Loading...</h2>
</div>
<div
class="btn-group-vertical"
id="buttone"
role="group"
aria-label="Button group with nested dropdown"
>
<button type="button" id="fetchButton" class="btn btn-secondary">Fetch!</button>
<button type="button" id="deadButton" class="btn btn-secondary">
Play dead!
</button>
<!-- <button type="button" id="moveButton" class="btn btn-secondary active">move arround</button> -->
<button type="button" id="comeButton" class="btn btn-secondary">Come here!</button>
<button type="button" id="japanButton" class="btn btn-secondary">Japan park</button>
</div>
</div>
</div>
<script>
const header = document.getElementById("buttone");
console.log(header);
const btns = header.getElementsByClassName("btn btn-secondary");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function() {
var current = document.getElementsByClassName("active");
current[0].className = current[0].classList = ["btn btn-secondary"];
this.className += " active";
});
}
</script>
<div class="footer" id="footer"></div>
<script src="./js/init.js"></script>
<script src="./js/menu.js"></script>
<script src="./js/dog.js"></script>
<script src="./js/scene.js"></script>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"
></script>
</body>
</html>