-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (80 loc) · 3.28 KB
/
index.html
File metadata and controls
87 lines (80 loc) · 3.28 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <title>NextBots Roller | Login</title> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background-color: black;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
const form = document.querySelector("form");
form.addEventListener("submit", function(event) {
event.preventDefault();
const username = document.getElementById("username").value;
document.cookie = `username=${username}; path=/`;
const isMobile = /Mobi|Android/i.test(navigator.userAgent);
if (isMobile) {
redirectToMobilePage();
}
else {
redirectToRollPage();
}
});
});
function redirectToRollPage() {
window.location.href = "roll.html";
}
function redirectToMobilePage() {
const isMobile = /Mobi|Android/i.test(navigator.userAgent);
if (isMobile) {
window.location.href = "./roll_mobile.html";
}
}
</script>
<!-- Primary Meta Tags -->
<title>NRoll - A small parody of Nico's RNG</title>
<meta name="title" content="NRoll - A small parody of Nico's RNG" />
<meta name="description" content="This site is based on the game Nico's Nexbots and Nico's RNG.
Developer: syirezz" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://kailuser.github.io/nroller/" />
<meta property="og:title" content="NRoll - A small parody of Nico's RNG" />
<meta property="og:description" content="This site is based on the game Nico's Nexbots and Nico's RNG.
Developer: syirezz" />
<meta property="og:image" content="./Roll.png" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://kailuser.github.io/nroller/" />
<meta property="twitter:title" content="NRoll - A small parody of Nico's RNG" />
<meta property="twitter:description" content="This site is based on the game Nico's Nexbots and Nico's RNG.
Developer: syirezz" />
<meta property="twitter:image" content="./Roll.png" />
</head>
<body>
<div class="container">
<div class="card">
<div class="card-body">
<h1 class="card-title">Login to the site</h1>
<form>
<label for="username">Username (Anything | Site doesn't scan):</label>
<input type="text" id="username" name="username" class="form-control">
<button type="submit" class="btn btn-primary mt-2">Login</button>
</form>
</div>
</div>
</div>
</body>
</html>
</html>