-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
106 lines (91 loc) · 2.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SuperBrowser</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
text-align: center;
}
.header {
background-color: #4285f4;
color: white;
padding: 10px 0;
font-size: 20px;
}
.search-bar {
margin: 40px auto;
}
input[type="text"] {
width: 80%;
padding: 15px;
font-size: 18px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: white;
color: #333;
}
.newtab-links {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.newtab-links a {
text-decoration: none;
color: #4285f4;
font-size: 16px;
font-weight: bold;
}
.content {
margin: 50px auto;
width: 80%;
max-width: 1000px;
}
.content h1 {
font-size: 36px;
}
.content p {
font-size: 18px;
}
</style>
</head>
<body>
<div class="header">
SuperBrowser
</div>
<div class="content">
<h1>Welcome to SuperBrowser</h1>
<p>You are using SuperBrowser, your trusted browser!</p>
<p>Search or access links directly below:</p>
<div class="search-bar">
<input type="text" id="searchBox" placeholder="Search...">
</div>
<div class="newtab-links">
<a href="#">Google</a>
<a href="#">YouTube</a>
<a href="#">Gmail</a>
</div>
</div>
<script>
// Detecting the User-Agent
const userAgent = navigator.userAgent.toLowerCase();
const isPS4 = userAgent.includes('playstation 4');
const isWii = userAgent.includes('wii');
const isNintendo3DS = userAgent.includes('nintendo 3ds');
// Redirecting based on User-Agent
if (isPS4) {
window.location.href = 'ps4.html';
} else if (isWii) {
window.location.href = 'wii.html';
} else if (isNintendo3DS) {
window.location.href = '3ds.html';
}
</script>
</body>
</html>