-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmountain.html
More file actions
80 lines (76 loc) · 2.2 KB
/
Copy pathmountain.html
File metadata and controls
80 lines (76 loc) · 2.2 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
<!DOCTYPE html>
<html lang = "en">
<head>
<title> The Mountain </title>
<meta charset = "utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="icon" type="image/jpg" href="icon.jpg">
</head>
<body>
<div id="wrapper">
<header>
<h1> Mount Olympus </h1>
</header>
<nav>
<ul class="navigation">
<li> <a href="index.html"> Home </a></li>
<li> <a href="tickets.html" onmouseover="OpenMenu('tsubmenu')"> Ticket Pricing </a>
<ul id="tsubmenu" onmouseover="KeepSubMenu()" onmouseout="CloseMenu()">
<li><a href="rent.html"> Rental Equipment</a></li>
</ul>
</li>
<li> <a href="contact.html" onmouseover="CloseMenu()"> Contact Page </a></li>
<li> <a href="schedule.html" onmouseover="CloseMenu()"> Schedule </a> </li>
</ul>
</nav>
<div id="m-content">
<div id="map-left">
<div id="slope-map"></div>
</div>
<div id ="right">
<h3>This is the layout of the trails found on Mount Olympus</h3>
<br><br>
<div id="inlink"><a href="history.html"> History </a></div>
</div>
</div>
<footer>
@ Warren and Jordan
</footer>
</div>
<script>
var Item; //Hold current open menu item
var Timer; //Hold timeout value
document.onclick=CloseMenu(); //Hide the menu after clicking outside it
document.onload=CloseMenu();
function OpenMenu(Menu)
{
//if open, close it
if(Item)
{
Item.style.visibility="hidden";
}
//setup new menu item
Item=document.getElementById(Menu);
Item.style.visibility="visible";
}
function CloseMenu()
{
//setup a timer to close menu
Timer = window.setTimeout(PerformClose, 500);
}
function PerformClose()
{
if(Item)
{
Item.style.visibility="hidden";
}
}
function KeepSubMenu()
{
//reset the timer
window.clearTimeout(Timer);
}
</script>
</body>
</html>