-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathmenu-of-projects.htm
151 lines (115 loc) · 2.95 KB
/
menu-of-projects.htm
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
<!DOCTYPE html>
<!--
ESP Projects consolidator - 14May21
edit the section below <div class="navbar"> with your project details
-->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ESP Projects</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background-color: rgb(128, 64, 0);
height: 100%;
margin: 0;
}
#iframe1 {
height: calc(100vh - 40px);
width: calc(100vw - 5px);
}
.navbar {
overflow: hidden;
background-color: rgb(128, 64, 0);
}
.navbar a {
float: left;
padding: 4px 12px;
font-size: 17px;
color: white;
text-align: center;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
padding: 4px 12px;
font-size: 17px;
border: none;
outline: none;
color: white;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
background-color: rgb(100, 0, 0);
}
.dropdown-content {
display: none;
position: absolute;
background-color: rgb(128, 64, 0);
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
color: white;
text-align: left;
}
.dropdown-content a:hover {
background-color: rgb(100, 0, 0);
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
</head>
<body>
<div class="navbar">
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.106')">module1</a>
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.183')">module2</a>
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.166')">module3</a>
<!-- dropdown menu -->
<div class="dropdown">
<button class="dropbtn">LIST1
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.104')">module4</a>
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.156')">module5</a>
</div>
</div>
<!-- dropdown menu -->
<div class="dropdown">
<button class="dropbtn">LIST2
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.4')">module6</a>
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.4')">module7</a>
<a class="menuitem" onclick="openPage(this, 'http://1.2.3.4')">module8</a>
</div>
</div>
</div>
<iframe id='iframe1' width='100%' src=''></iframe>
<script>
function openPage(elmnt,target) {
var i, tablinks;
tablinks = document.getElementsByClassName('menuitem');
for (i = 0; i < tablinks.length; i++) {
tablinks[i].style.backgroundColor = '';
}
elmnt.style.backgroundColor = 'rgb(180, 0, 0)';
document.getElementById("iframe1").src = target;
}
</script>
</body>
</html>