This repository was archived by the owner on Apr 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (129 loc) · 5.75 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
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html manifest="Manifest.appcache">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://www.psdr3.org/images/logos/psd.png" rel="shortcut icon" type="text/css">
<script type="text/javascript" src="pathing/pathfinding-browser.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
<script type="text/javascript" src="data/Level1.js"></script>
<script type="text/javascript" src="data/Level2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<title>PHS Map</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body class="lightmodebg" onload="start()">
<header class="w3-container w3-theme w3-padding-16" id="myHeader">
<i onclick="w3_open()" class="fa fa-bars w3-xlarge w3-button w3-theme"></i>
<div class="w3-center">
<h1 class="w3-animate-top phs">PHS</h1>
<h5 id="gradeLvl" class="w3-large w3-animate-top"></h5>
<h2 class="w3-xxxlarge w3-animate-left">Treasure Map</h2>
<h2 class="lgreen w3-xxlarge w3-animate-left">Class Schedules</h2>
</div>
<a class="w3-text-white" href="#myFooter"><span class="w3-xlarge">
<i class="fa fa-chevron-circle-down"></i></span></a>
</header>
<div class="w3-row">
<div id="c" class="lightMode w3-half w3-container w3-padding-16">
<img id="LVL0" src="Schooloverlayl0color.jpg" style="display:none;" />
<img id="LVL1" src="Schooloverlayl1color.jpg" style="display:none;" />
<img id="LVL2" src="Schooloverlayl2color.jpg" style="display:none;" />
<script src="script.js"></script>
<div class="item">
<canvas id="myCanvas" style="border:2px solid #000000;" class="" </canvas>
</div>
<!-- <button id="lvl0" onclick="lvl0()">Level 0</button> -->
<button id="lvl1" onclick="lvl1()">Level 1</button>
<button id="lvl2" onclick="lvl2()">Level 2</button>
<a id="download" download="PHS-Map.jpg" href="" onclick="download_img(this);">Download Current Map</a>
</div>
<div id="c2" class="lightMode w3-half w3-container w3-padding-16">
<h3>How to use!</h3>
<li>Press the "+" button below to add a schedule</li>
<li>Type in the number of classes in that schedule</li>
<li>Press "Submit"</li>
<li>Fill out the class information</li>
<li>Press "Save Courses"</li>
<li>Now use the passing time button in-bettween classes to show a path between those classes!</li>
<li>Use the "Level 1" and "Level 2" buttons below the map to view different floors</li>
<p></p>
<div id="profiles">
<div class="" id="tempProf1"></div>
</div>
<button id="add" onclick="addProf()">+</button>
<p>Passing Time Currently Does Not Work for the Band, Orchestra, and Choir rooms.</p>
<p>Schedule Names do not currently save</p>
<p></p>
<p>Only have one place to go?</p>
<a href="/One-time-use.html">Try One Time Use Mode!</a>
</div>
</div>
</body>
<footer class="footer w3-container w3-theme-dark w3-padding-16" id="myFooter">
<a class="w3-text-white" href="#myHeader"><span class="w3-xlarge">
<i class="fa fa-chevron-circle-up"></i></span></a>
<h3>About</h3>
<h5>Created by Parker Hasenkamp and Ethan Arana for the <a href="https://psdr3.org" target="_blank">Pattonville School
District</a></h5>
<h5>Found a Bug? <a href="https://forms.gle/AtFo1ixfryVuKAEU7" target="_blank"> Submit a Bug Report!</a></h5>
</footer>
<!-- Side Navigation -->
<nav class="w3-sidebar w3-bar-block w3-card w3-animate-left w3-center" style="display:none" id="mySidebar">
<button class="smallbutton w3-text-theme w3-padding-16" onclick="w3_close()">Close <i
class="fa fa-remove"></i></button>
<p></p>
<button id="darkModeButton" onclick="darkMode()" class="smallbutton w3-button w3-theme">Dark Mode</button>
<p></p>
<button class="clearDataButton smallbutton w3-button w3-theme" onclick="clearAll()">Clear All Site Data</button>
<p></p>
<div id="google_translate_element"></div>
<script type="text/javascript">// <![CDATA[
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
// ]]></script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
type="text/javascript"></script>
<script>
function w3_open() {
var x = document.getElementById("mySidebar");
x.style.width = "30%";
x.style.fontSize = "40px";
x.style.paddingTop = "10%";
x.style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
}
</script>
</nav>
<!--Smooth Scroll Buttons-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
// Add smooth scrolling to all links
$("a").on('click', function (event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 1000, function () {
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
});
</script>
</html>