Test-HTML / index.html
GilbertClaus's picture
Ark
1138c88
raw
history blame
1.45 kB
<!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>