File size: 1,452 Bytes
31d903b
b05b4ac
0bcdffe
b05b4ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9b11c4a
b05b4ac
 
9b11c4a
 
b05b4ac
 
 
 
9b11c4a
 
b05b4ac
 
 
 
 
 
 
 
 
 
 
 
 
0bcdffe
9b11c4a
 
 
1138c88
9b11c4a
0bcdffe
9b11c4a
0bcdffe
9b11c4a
 
 
 
 
 
 
 
b05b4ac
9b11c4a
1138c88
 
1d818b8
1138c88
9b11c4a
0bcdffe
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Website Viewer</title>
  <style>
    body {
      margin: 0;
      font-family: sans-serif;
      background-color: #121212;
      color: #eee;
      display: flex;
      flex-direction: column;
      height: 100vh;
    }
    header {
      padding: 10px;
      background-color: #1f1f1f;
      display: flex;
      gap: 10px;
    }
    input {
      flex: 1;
      padding: 8px;
      background: #2a2a2a;
      color: white;
      border: 1px solid #444;
      border-radius: 4px;
    }
    button {
      padding: 8px 16px;
      background: #333;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    iframe {
      flex: 1;
      border: none;
      width: 100%;
    }
  </style>
</head>
<body>

<header>
  <input type="text" id="urlInput" placeholder="Masukkan URL">
  <button onclick="loadWebsite()">Load</button>
  <button onclick="ark()">Ark ReCode</button>
</header>

<iframe id="viewer"></iframe>

<script>
  function loadWebsite() {
    const url = document.getElementById("urlInput").value;
    const iframe = document.getElementById("viewer");
    if (url.startsWith("http://") || url.startsWith("https://")) {
      iframe.src = url;
    } else {
      alert("URL harus diawali dengan http:// atau https://");
    }
  }
  
  function ark() {
    window.location.href = "./Ark%20ReCode";
  }
</script>

</body>
</html>