-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (99 loc) · 3.45 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>採買達人 Smart Shopper</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<script src="https://cdn.jsdelivr.net/npm/phaser@3.55.1/dist/phaser.min.js"></script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "nfu25f462w");
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HNZZN12SE9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HNZZN12SE9');
</script>
<style>
* {
padding: 0;
margin: 0;
}
html, body {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
#content {
position: absolute;
top: 0;
left: 0;
}
#button {
position: absolute;
top: 20px;
right: 25px;
cursor: pointer;
transition: transform 0.2s ease-in-out; /* 添加過渡效果 */
}
#button:hover {
transform: scale(1.1); /* 略為放大 */
}
#annotateImage {
position: absolute;
top: 60%;
left: 50%;
width: 60%;
transform: translate(-50%, -50%);
display: none;
}
</style>
</head>
<body>
<div id="content"></div>
<img id="button" src="assets/button.png" alt="Button" width="60">
<img id="annotateImage" src="assets/annotate.png" alt="Annotate">
<script src="js/start.js"></script>
<script src="js/restart.js"></script>
<script src="js/scene1.js"></script>
<script src="js/success12.js"></script>
<script src="js/scene2.js"></script>
<script src="js/success23.js"></script>
<script src="js/scene3.js"></script>
<script src="js/success34.js"></script>
<script src="js/scene4.js"></script>
<script src="js/success45.js"></script>
<script src="js/scene5.js"></script>
<script src="js/success56.js"></script>
<script src="js/scene6.js"></script>
<script src="js/success67.js"></script>
<script src="js/scene7.js"></script>
<script src="js/success78.js"></script>
<script src="js/scene8.js"></script>
<script src="js/success89.js"></script>
<script src="js/scene9.js"></script>
<script src="js/success910.js"></script>
<script src="js/scene10.js"></script>
<script src="js/end.js"></script>
<script src="js/config.js"></script>
<script>
document.getElementById('button').addEventListener('click', function() {
const annotateImage = document.getElementById('annotateImage');
if (annotateImage.style.display === 'none' || annotateImage.style.display === '') {
annotateImage.style.display = 'block';
} else {
annotateImage.style.display = 'none';
}
});
</script>
</body>
</html>