-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (94 loc) · 2.91 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
114
115
<!DOCTYPE html>
<html>
<head>
<title>Notifications Help</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Tahoma;}
html,body {
height:100%;
}
/* Style the tab */
.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}
/* Style the buttons inside the tab */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
.tab button.active {
background-color: #ccc;
}
/* Style the tab content */
.tabcontent {
width: 100%;
height: 75%;
}
.tabcontent1 {
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
</style>
</head>
<body>
<center>
<h2>Notifications Help</h2>
<!--<div>Please Select your Mobile Model</div>-->
</center>
<div class="tab">
<button id="redmi" class="tablinks" onclick="loadPage(event)">Redmi</button>
<button id="huawei" class="tablinks" onclick="loadPage(event)">Huawei</button>
<button id="onePlus" class="tablinks" onclick="loadPage(event)">One Plus</button>
<button id="samsung" class="tablinks" onclick="loadPage(event)">Samsung</button>
<!--<button id="motorola" class="tablinks" onclick="loadPage(event)">Motorola</button>-->
<button id="lenovo" class="tablinks" onclick="loadPage(event)">Lenovo</button>
<button id="general" class="tablinks" onclick="loadPage(event)">Others/General</button>
<!--<button id="vivo" class="tablinks" onclick="loadPage(event)">Vivo</button>-->
</div>
<div class="tabcontent">
<iframe height="100%" width="100%" id="iframeMobileContent"></iframe>
</div>
<script>
function loadPage(e) {
//debugger;
var i, tabcontent, tablinks, btn = e.target || e.srcElement;
var deviceModel = btn.id;
document.getElementById("iframeMobileContent").src = deviceModel+'.html';
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
//document.getElementById(cityName).style.display = "block";
e.currentTarget.className += " active";
}
function get(name){
if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))
return decodeURIComponent(name[1]);
}
var requestdeviceModel = get('deviceModel');
console.log('Current Device = ' + requestdeviceModel);
if (typeof requestdeviceModel == 'undefined' || !requestdeviceModel) {
requestdeviceModel = 'redmi';
}
// Get the element with id="defaultOpen" and click on it
//document.getElementById("defaultOpen").click();
document.getElementById(requestdeviceModel).click();
</script>
</body>
</html>