-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
36 lines (29 loc) · 1.13 KB
/
example.php
File metadata and controls
36 lines (29 loc) · 1.13 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
<?php require_once "securearea.php"; ?>
<div id="container">
<div class="half left">
<div class="center">
<h2>Example JS page</h2>
<p><strong>Test Page</strong></p>
</div>
</div>
<div class="half right">
<?php require_once 'nav.php'; ?>
<div class="center">
<div id="mainMenuGroup" class="list-group centralContainer">
<label>Mouse Up and Mouse Down events are attached to this Div</label>
<button class="btn btn-primary" onclick='loadPage("order.php");'>Order Pizza</button>
<button class="btn btn-primary" onclick='loadPage("createPizza.php");'>Create Pizza</button>
<button class="btn btn-primary" onclick='loadPage("account.php");'>Account</button>
<button class="btn btn-danger" onclick='loadPage("logout.php");'>Logout</button>
</div>
</div>
</div>
</div>
<script>
document.getElementById("mainMenuGroup").addEventListener("mousedown", function(){
document.getElementById("mainMenuGroup").style.backgroundColor = "black";
});
document.getElementById("mainMenuGroup").addEventListener("mouseup", function(){
document.getElementById("mainMenuGroup").style.backgroundColor = "white";
});
</script>