-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst_floor.html
More file actions
241 lines (190 loc) · 7.64 KB
/
first_floor.html
File metadata and controls
241 lines (190 loc) · 7.64 KB
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html>
<head>
<title>
FIRST FLOOR
</title>
<link rel="stylesheet" href="first_floor.css">
</head>
<body>
<div class="notice"><h1 class="header">Display Board</h1>
<div id="display">
</div>
<div id="container"><span id="time"></span></div>
</div>
<div class="class1left myDiv" onmouseover="go1(this)" onmouseout="out()">Classroom</div>
<div class="class2left" onmouseover="go1(this)" onmouseout="out()">Classroom</div>
<div class="class3left" onmouseover="go1(this)" onmouseout="out()">Classroom</div>
<div class="stair1" onmouseover="go2(this)" onmouseout="out()">Stairs
<div class="jas">
<nav>
<button id="btn">ground floor</button>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p><a class="link" href="ground_floor.html">Ground floor</a></p>
</div>
</div>
</div>
</nav>
<br>
<nav>
<button id="btn1">Second floor</button>
<div id="myModal1" class="modal1">
<div class="modal-content1">
<span class="close1">×</span>
<p><a class="link1" href="second_floor.html">Second floor</a></p>
</div>
</div>
</nav>
</div>
<div id="washroom" onmouseover="go3(this)" onmouseout="out()">Washroom</div>
<div class="staffroom" onmouseover="go(this)" onmouseout="out()">Staff Room</div>
<div class="class1right" onmouseover="go1(this)" onmouseout="out()">Classroom</div>
<div class="class2right" onmouseover="go1(this)" onmouseout="out()">Classroom</div>
<div class="lab" onmouseover="go4(this)" onmouseout="out()">Lab</div>
<div class="openspace" onmouseover="go5(this)" onmouseout="out()">Open Space</div>
<div class="conferenceroom" onmouseover="go6(this)" onmouseout="out()">Conference Room</div>
<div class="stairs2" onmouseover="go2(this)" onmouseout="out()">Stairs
<nav>
<button id="btn3">ground floor</button>
<div id="myModal3" class="modal3">
<div class="modal-content3">
<span class="close3">×</span>
<p><a class="link3" href="ground_floor.html">Ground floor</a></p>
</div>
</div>
</nav>
<br>
<nav>
<button id="btn4">Second floor</button>
<div id="myModal4" class="modal4">
<div class="modal-content4">
<span class="close4">×</span>
<p><a class="link4" href="second_floor.html">Second floor</a></p>
</div>
</div>
</nav>
</div>
<div class="examsec" onmouseover="go7()" onmouseout="out()">Examination Section</div>
<div class="academic" onmouseover="go8()" onmouseout="out()">Academic Section</div>
<script>
let now= new Date();
console.log(now)
setInterval(upDate, 1000);
function upDate() {
time.innerHTML= new Date();
}
function go1() {
document.getElementById("display").innerHTML="This is a classroom. "
}
function go2() {
document.getElementById("display").innerHTML="This is a Staircase which connects us to go to the second floor and ground foor. "
}
function go3() {
document.getElementById("display").innerHTML="This is Girl's Washroom and boys are strictly not allowed here. "
}
function go4() {
document.getElementById("display").innerHTML="This is Chemistry Lab. Don't Enter without your lab coat. And bring all the necessary item and don't borrow from others ."
}
function go5() {
document.getElementById("display").innerHTML="This is a OpenSpace . Its a corridor And students are requested not to rom in the corridor rather they are requested to be in their respected classrooms. "
}
function go6() {
document.getElementById("display").innerHTML="This is Conference hall and students are requested not to enter the room without permission. "
}
function go7() {
document.getElementById("display").innerHTML="This is Examination Section. You are not allowed to enter it without permission. Cheating is strictly prohabited here. Student caught cheating may be suspended or necessary action should be taken by teachers ."
}
function go8() {
document.getElementById("display").innerHTML="This is Academic Section. If you have any work Or any doubt with respect to the college procedure may came between 10am-2:30pm to solve anything regarding their college documents. "
}
function go() {
document.getElementById("display").innerHTML="This is Staffroom. Here teachers can sit and do their work. "
}
function out(){
document.getElementById("display").innerHTML="This is College of engineering and technology bhubaneswar. Hope you are getting to learn something here ";
}
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var btn = document.getElementById("btn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
// Get the modal
var modal1 = document.getElementById("myModal1");
// Get the button that opens the modal
var btn1 = document.getElementById("btn1");
// Get the <span> element that closes the modal
var span1 = document.getElementsByClassName("close1")[0];
// When the user clicks the button, open the modal
btn1.onclick = function() {
modal1.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span1.onclick = function() {
modal1.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal1) {
modal1.style.display = "none";
}
}
// Get the modal
var modal3 = document.getElementById("myModal3");
// Get the button that opens the modal
var btn3 = document.getElementById("btn3");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close3")[0];
// When the user clicks the button, open the modal
btn3.onclick = function() {
modal3.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal3.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal3) {
modal3.style.display = "none";
}
}
// Get the modal
var modal4 = document.getElementById("myModal4");
// Get the button that opens the modal
var btn4 = document.getElementById("btn4");
// Get the <span> element that closes the modal
var span4 = document.getElementsByClassName("close4")[0];
// When the user clicks the button, open the modal
btn4.onclick = function() {
modal4.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span4.onclick = function() {
modal4.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal4) {
modal4.style.display = "none";
}
}
</script>
</body>
</html>