-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
113 lines (94 loc) · 3.32 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<title>Download Box</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<style>
* {box-sizing: border-box}
/* Set height of body and the document to 100% */
body, html {
height: 100%;
margin: 0;
font-family: Arial;
}
/* Style tab links */
.tablink {
background-color: #555;
color: white;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
font-size: 17px;
width: 14%;
}
.tablink:hover {
background-color: #777;
}
/* Style the tab content (and add height:100% for full page content) */
.tabcontent {
color: white;
display: none;
padding: 0;
width: 100%;
height: 100%;
}
#radarr {background-color: green;}
#sonarr {background-color: green;}
#plex {background-color: green;}
#deluge {background-color: green;}
#nzbget {background-color: green;}
#jackett {background-color: green;}
#bazarr {background-color: green;}
</style>
</head>
<body>
<button class="tablink" onclick="openPage('radarr', this, 'green')" id="defaultOpen">Radarr</button>
<button class="tablink" onclick="openPage('sonarr', this, 'green')">Sonarr</button>
<button class="tablink" onclick="openPage('plex', this, 'green')">Plex-web</button>
<button class="tablink" onclick="openPage('deluge', this, 'green')">Deluge</button>
<button class="tablink" onclick="openPage('nzbget', this, 'green')">Nzbget</button>
<button class="tablink" onclick="openPage('jackett', this, 'green')">Jackett</button>
<button class="tablink" onclick="openPage('bazarr', this, 'green')">Bazarr</button>
<div id="radarr" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./radarr" allowfullscreen></iframe>
</div>
<div id="sonarr" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./sonarr" allowfullscreen></iframe>
</div>
<div id="deluge" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./deluge" allowfullscreen></iframe>
</div>
<div id="plex" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./web" allowfullscreen></iframe>
</div>
<div id="nzbget" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./nzbget" allowfullscreen></iframe>
</div>
<div id="jackett" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./jackett" allowfullscreen></iframe>
</div>
<div id="bazarr" class="tabcontent">
<iframe style="width: 100%; height: 95vh; border:none; position: relative" src="./bazarr" allowfullscreen></iframe>
</div>
<script>
function openPage(pageName,elmnt,color) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].style.backgroundColor = "";
}
document.getElementById(pageName).style.display = "block";
elmnt.style.backgroundColor = color;
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>
</body>
</html>