MySafeCode commited on
Commit
dc5b320
·
verified ·
1 Parent(s): f047192

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +22 -23
index.html CHANGED
@@ -1,32 +1,31 @@
1
  <!DOCTYPE html>
2
- <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
5
- <title>Redirecting to 1hit.no</title>
6
-
7
- <!-- Fallback for very old / JS-disabled browsers -->
8
- <meta http-equiv="refresh" content="0; url=https://1hit.no">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  <script>
11
- (function () {
12
- try {
13
- // Force redirect of the top-level browsing context
14
- if (window.top !== window.self) {
15
- window.top.location.replace("https://1hit.no");
16
- } else {
17
- window.location.replace("https://1hit.no");
18
- }
19
- } catch (e) {
20
- // If cross-origin access blocks top, fallback
21
- window.location.href = "https://1hit.no";
22
- }
23
- })();
24
  </script>
25
-
26
- <link rel="canonical" href="https://1hit.no">
27
- </head>
28
- <body>
29
- <p>Redirecting to <a href="https://1hit.no">1hit.no</a>…</p>
30
  </body>
31
  </html>
32
 
 
1
  <!DOCTYPE html>
2
+ <html>
3
  <head>
4
  <meta charset="UTF-8">
5
+ <title>Open 1hit.no</title>
6
+ <style>
7
+ body {
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ height: 100vh;
12
+ font-family: system-ui, sans-serif;
13
+ }
14
+ button {
15
+ font-size: 1.2rem;
16
+ padding: 1rem 2rem;
17
+ cursor: pointer;
18
+ }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <button onclick="openSite()">Enter 1hit.no</button>
23
 
24
  <script>
25
+ function openSite() {
26
+ window.open("https://1hit.no", "_top");
27
+ }
 
 
 
 
 
 
 
 
 
 
28
  </script>
 
 
 
 
 
29
  </body>
30
  </html>
31