5
5
< meta name ="viewport " content ="width=device-width " />
6
6
< base href ="/ " />
7
7
< title > GPA Calculator</ title >
8
- < link
9
- href ="/AppImages/android/android-launchericon-512-512.png "
10
- rel ="shortcut icon "
11
- />
12
8
< script type ="module " src ="/src/script.ts "> </ script >
13
9
< script src ="https://cdn.tailwindcss.com "> </ script >
14
10
</ head >
15
11
< body
16
12
id =""
17
13
class ="bg-[url('/GPA_Calculator/bground.png')] "
18
- onload ="getStorage () "
14
+ onload ="startApp () "
19
15
>
20
16
<!-- The overlay -->
21
- < div id ="mySidenav " class ="overlay ">
17
+ < div id ="mySidenav " class ="overlay w-0 ">
22
18
<!-- Button to close the overlay navigation -->
23
19
< a href ="javascript:void(0) " class ="closebtn " onclick ="toggleNav(false) "
24
20
> ×</ a
25
21
>
26
22
27
23
<!-- Overlay content -->
28
- < form class ="overlay-content text-white ">
29
- < label >
30
- < button
31
- type ="submit "
32
- id ="clearDataButton "
33
- style ="background-color: #00d5ff; color: black "
34
- onclick ="clearData() "
35
- >
36
- Clear Grade Data
37
- </ button >
38
- < p class ="text-sm mt-4 "> Note: This action refreshes the page.</ p >
39
- </ label >
40
-
41
- <!-- <button id="darkModeButton" onclick="darkMode()">Dark Mode</button> -->
42
- < p > </ p >
24
+ < form class ="overlay-content text-white flex flex-col ">
25
+ < p class ="text-white text-sm mt-4 "> These actions refresh the page.</ p >
43
26
< button
27
+ class ="text-white m-2 "
44
28
type ="submit "
45
- style =" background-color: #00d5ff; color: black "
46
- onclick ="clearAll () "
29
+ id =" clearDataButton "
30
+ onclick ="clearData () "
47
31
>
32
+ Clear Grade Data
33
+ </ button >
34
+ < button class ="text-white m-2 " type ="submit " onclick ="clearAll() ">
48
35
Clear All Site Data
49
36
</ button >
50
- < p > </ p >
51
37
</ form >
52
38
</ div >
53
39
59
45
type ="button "
60
46
onclick ="toggleNav(true) "
61
47
class ="pb-8 text-xl text-white rounded-full w-8 h-8 "
62
- style ="background-color: #00d5ff; color: black "
63
48
>
64
49
☰
65
50
</ button >
86
71
</ div >
87
72
</ div >
88
73
89
- <!-- Side Navigation -->
90
- <!-- <nav id="mySidebar">
91
- <button onclick="w3_close()">Close <i></i></button>
92
- <p></p>
93
- <button onclick="document.getElementById('id01').style.display='block'">
94
- Select Grade Level
95
- </button>
96
- <p></p>
97
- <button id="darkModeButton" onclick="darkMode()">Dark Mode</button>
98
- <p></p>
99
- <p></p>
100
-
101
- <p>Note: This action refreshes the page.</p>
102
- <p></p>
103
- <button onclick="clearAll()">Clear All Site Data</button>
104
- <p></p>
105
-
106
- <!- Google Translate -->
107
- <!-- <div id="google_translate_element"></div> -->
108
- <!-- <script type="text/javascript">
109
- // <![CDATA[
110
- function googleTranslateElementInit() {
111
- new google.translate.TranslateElement(
112
- {
113
- pageLanguage: "en",
114
- layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
115
- },
116
- "google_translate_element"
117
- );
118
- }
119
- // ]]>
120
- </script>
121
- <script
122
- src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
123
- type="text/javascript"
124
- ></script> -->
125
- <!-- </nav> -->
126
-
127
- <!-- Header -->
128
- < header id ="myHeader ">
129
- <!-- <i onclick="w3_open()"></i>
130
- <div>
131
- <h4 class="absolute top-0 left-0 shadow-lg p-4 text-white bg-black">
132
- Pattonville
133
- </h4>
134
- <input onclick="hsmsSwap()" type="checkbox" id="hsmsInput" checked />
135
-
136
- <h1>GPA Calculator</h1>
137
- </div> -->
138
- </ header >
74
+ < header id ="myHeader "> </ header >
139
75
< div class ="lg:pb-8 lg:flex h-full text-white ">
140
76
< div
141
77
class ="basis-1/3 lg:rounded-br-lg lg:px-10 lg:pt-8 p-8 bg-black lg:h-screen "
@@ -145,7 +81,6 @@ <h5>How to use!</h5>
145
81
Input number of classes you are taking and press "Submit", then input
146
82
your grades under "Grades".
147
83
</ p >
148
- < p > </ p >
149
84
< p id ="Directions2 ">
150
85
Your class data will then be saved to your device. This is so if you
151
86
refresh, your data is saved!
@@ -161,107 +96,23 @@ <h5>How to use!</h5>
161
96
< button
162
97
onclick ="classAmount() "
163
98
class ="text-black px-1 rounded-sm "
164
- style ="background-color: #00d5ff; color: black "
165
99
type ="submit "
166
100
>
167
101
Submit
168
102
</ button >
169
103
</ form >
170
- < p > </ p >
171
104
</ div >
172
105
173
106
< div class ="lg:w-2/3 lg:px-16 px-4 lg:p-8 p-4 " id ="c ">
174
107
< h5 > Grades:</ h5 >
175
- < p > </ p >
176
108
< div id ="temp1 "> </ div >
177
109
< div
178
110
class ="lg:drop-shadow-2xl lg:fixed static lg:right-16 lg:bottom-16 p-4 bg-black rounded-lg text-white "
179
111
>
180
112
< h2 class ="" id ="gpa "> No Data</ h2 >
181
113
</ div >
182
114
< p id ="saved "> </ p >
183
- <!-- <button id="gpaButton" onclick="loadgpa()">
184
- Calculate GPA and Save
185
- </button> -->
186
115
</ div >
187
116
</ div >
188
-
189
- <!-- <div id="id01" class="">
190
- <div class="">
191
- <header class="">
192
- <h3>Choose Your Grade Level</h3>
193
- </header>
194
- <div class="">
195
- <h4 id="modalClass">Middle School</h4>
196
- <label class="switch">
197
- <span></span>
198
- </label>
199
- <p></p>
200
- <span
201
- onclick="document.getElementById('id01').style.display='none'"
202
- class=""
203
- >Ok</span
204
- >
205
- <p></p>
206
- </div>
207
- <footer class="">
208
- <p>This can be changed later inside the menu.</p>
209
- </footer>
210
- </div>
211
- </div> -->
212
-
213
- <!-- Easter Egg -->
214
-
215
- <!-- Footer -->
216
- < footer id ="myFooter ">
217
- <!-- <h3>About</h3>
218
- Easter egg
219
- <p>.... . .-.. .-.. --- / - .... . .-. . -.-.--</p>
220
- <!- Info -->
221
- <!--
222
- <p>
223
- Created by Parker Hasenkamp for the
224
- <a href="https://psdr3.org" target="_blank"
225
- >Pattonville School District</a
226
- >
227
- </p>
228
- <p>
229
- My submission for the 2021
230
- <a href="https://www.congressionalappchallenge.us/" target="_blank"
231
- >Congressional App Challenge!</a
232
- >
233
- </p> -->
234
- </ footer >
235
- <!--Smooth Scroll Buttons-->
236
- <!-- <script type="module">
237
- import $ from "jquery";
238
-
239
- $(document).ready(function () {
240
- // Add smooth scrolling to all links
241
- $("a").on("click", function (event) {
242
- // Make sure this.hash has a value before overriding default behavior
243
- if (this.hash !== "") {
244
- // Prevent default anchor click behavior
245
- event.preventDefault();
246
-
247
- // Store hash
248
- var hash = this.hash;
249
-
250
- // Using jQuery's animate() method to add smooth page scroll
251
- // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
252
- $("html, body").animate(
253
- {
254
- scrollTop: $(hash).offset().top,
255
- },
256
- 1000,
257
- function () {
258
- // Add hash (#) to URL when done scrolling (default click behavior)
259
- window.location.hash = hash;
260
- }
261
- );
262
- } // #ENDIF
263
- });
264
- });
265
- </script> -->
266
117
</ body >
267
118
</ html >
0 commit comments