forked from ChromeGaming/Physi-c-Tech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (141 loc) · 5.7 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="monetization" content="$ilp.uphold.com/U9iHfppnha6L" />
<title>Physi-c Tech</title>
<link rel="stylesheet" href="./css/style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="icon" href="./images/atom.png" type="image/png" />
</head>
<body>
<div id="google_element"></div>
<!-- Load Google Translate script over HTTPS and handle errors -->
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=loadGoogleTranslate" onerror="handleError(this)"></script>
<script type="text/javascript">
function loadGoogleTranslate() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'en,hi,pa,sa,mr,ur,bn,es,fr,de,it',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_element');
}
function handleError(error) {
console.error('Error loading Google Translate script:', error);
}
</script>
<div class="preloader">
<div class="circle"></div>
</div>
<canvas id="ctmp" width="100" height="100" style="display: none"></canvas>
<canvas id="homecanvas" width="400" height="600" style="display: none"></canvas>
<div id="home" style="background-image: url('https://i.pinimg.com/originals/e6/c9/e3/e6c9e3d891aa56637847ba09c28fa00c.jpg'); background-size: cover;">
<div id="homecontent">
<h1 class="focusin">Physi-c<br />Tech</h1>
<div class="buttons">
<span id="playbutton" class="btn" onclick="play()">PLAY</span><br />
<span id="newgamebutton" class="btn" onclick="newgame()">NEW GAME</span><br />
<span id="soundbutton" class="btn" onclick="toggleSound()">SOUND ON</span><br />
<span class="btn" onclick="window.location.href='about.html'">ABOUT</span><br />
</div>
</div>
</div>
<button id="feedbackButton" class="feedback-btn" onclick="handleFeedback()">
Facing an Issue? Help Us Improve!
</button>
<div id="collection" class="trophy">
<div id="wincontent" class="trophy">
<h1>100% COMPLETE!</h1>
<h1>🏆</h1>
<h2 id="moves"></h2>
<span id="newgamebutton2">NEW GAME?</span>
</div>
<div id="collectioncontent" class="trophy"></div>
<div id="finalcontent" class="trophy"></div>
</div>
<div id="modal" class="modal">
<div id="modalcontent" class="modal">
<div class="cross">
<div class="upper-cross" style="padding: 4px">
<button onclick="document.getElementById('modal').style.display='none'">
<i class="fa-solid fa-xmark fa-beat" style="color: white"></i>
</button>
</div>
</div>
<h1 id="discovery" class="modal"></h1>
<div class="modal">
<img id="discoveryimage" class="modal" src="" width="100" height="100" />
</div>
<h2 class="modal" id="discoverydesc" style="padding: 10%"></h2>
</div>
</div>
<div class="outer">
<div class="upper">
<div id="btnhome">
<button id="homebutton" style="cursor: pointer" title="Home">🛖</button>
</div>
<div id="title">
<h1><span id="score">0</span>/<span id="max">0</span> discovered</h1>
</div>
<div id="btnhint">
<button id="hint" style="opacity: 0.3; font-size: 30px; cursor: pointer" title="Hint">💡</button>
</div>
<div id="btnsound">
<button id="soundbutton2" onclick="toggleSound2()" style="cursor: pointer" title="Sound">🔊</button>
</div>
<div id="btncollection">
<span id="collectionbutton" style="cursor: pointer" title="Collection">🏅</span>
<div id="collectionnumbers">0/13</div>
</div>
</div>
<div id="forge" class="forge drop move">
<div id="trash" style="cursor: pointer" title="Clear All">🚮</div>
</div>
<div class="lower">
<div class="nav">
<div>
<button><img id="upbutton" width="40" height="80" /></button>
</div>
<div>
<button><img id="downbutton" width="40" height="80" /></button>
</div>
</div>
<div id="pantry" class="copy">
<div style="position: relative; top: 5000px" id="spacer">.</div>
</div>
</div>
</div>
<div class="pop-up-container">
<div class="pop-up" style="display: none">
<div class="upper-cross" style="padding: 4px">
<button onclick="cross()">
<i class="fa-solid fa-xmark fa-beat" style="color: white"></i>
</button>
</div>
<div class="lower-content">
<img src="./images/scientist.png" alt="" style="height: 90px; width: 90px" />
<p id="speech-text">Hello, tech-enthusiasts!</p>
</div>
<div class="lower-button">
<button onclick="nextSpeech()">
<i class="fa-solid fa-forward fa-bounce fa-lg"></i>
</button>
</div>
</div>
</div>
<script src="./js/preloader.js"></script>
<script src="./js/elements.js"></script>
<script src="./js/game.js"></script>
<script src="./js/music.js"></script>
<script src="./js/svg.js"></script>
<script src="./js/index.js"></script>
<script src="./js/description.js"></script>
</body>
</html>