-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
53 lines (42 loc) · 1.41 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<title>Main Page</title>
<link rel = "stylesheet" type = "text/css" href = "main_styles.css">
<script>
function clearText() {
document.getElementById("search").value = "";
}
</script>
</head>
<body>
<div id = "main-border">
<input id = "search" type = "text" onclick = "clearText()" value = "Search receipts" style = "position: relative;"></input>
<div id = "field-border">
<div id = "recent" class = "field">
Recent
</div>
<div id = "category" class = "field">
Category
</div>
<div id = "folder" class = "field">
Folder
</div>
<div id = "account" class = "field">
My Account
</div>
<div id = "logout" class = "field">
Logout
</div>
</div>
<div id = "view-frame">
<iframe id = "viewWindow" src="recent.html" style = "position: relative; width: 100%; height: 97%">Your browser does not support our product.</iframe>
</div>
</div>
<script>
document.getElementById("recent").addEventListener("click", function() { document.getElementById("viewWindow").src = "recent.html" });
document.getElementById("category").addEventListener("click", function() { document.getElementById("viewWindow").src = "category.html" });
document.getElementById("folder").addEventListener("click", function() { document.getElementById("viewWindow").src = "folder.html" });
</script>
</body>
</html>