-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.html
More file actions
43 lines (41 loc) · 1.23 KB
/
Copy pathmain.html
File metadata and controls
43 lines (41 loc) · 1.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lander</title>
<style>
body {
font-size:2em;
}
p {
color: green;
}
.button {
border-radius: 16px;
font-size: 1em;
width: 270px;
height: 60px;
background-color: #03fca1;
border-style: none;
}
</style>
</head>
<body>
<center>
<p>By continuing, I agree to the<br><a href="https://rpicode.github.io/tos.html">ToS</a><br>and neccessary cookies<br>(<a href="https://rpicode.github.io/cookie.html">here</a>)</p>
<button class="button" id="tos-consent">I give consent</button>
</center>
<script>
function call() {
localStorage.setItem("HI3_43", "HI2_34");
const url = window.location.href;
const urlObj = new URL(url);
const queryParams = new URLSearchParams(urlObj.search);
const query = queryParams.get("q");
window.location.href='https://rpicode.github.io?q='+query;
}
const button = document.getElementById("tos-consent")
button.addEventListener("click", call)
</script>
</body>
</html>