Spaces:
Running
Running
Commit ·
9fea1fd
1
Parent(s): 8e4f5f5
- index.html +3 -1
index.html
CHANGED
|
@@ -58,6 +58,8 @@
|
|
| 58 |
const iframe = document.getElementById("viewer");
|
| 59 |
if (url.startsWith("http://") || url.startsWith("https://")) {
|
| 60 |
iframe.src = url;
|
|
|
|
|
|
|
| 61 |
} else {
|
| 62 |
alert("URL harus diawali dengan http:// atau https://");
|
| 63 |
}
|
|
@@ -69,7 +71,7 @@
|
|
| 69 |
|
| 70 |
function ark() {
|
| 71 |
const urlInput = document.getElementById("urlInput");
|
| 72 |
-
urlInput.value = "
|
| 73 |
loadWebsite();
|
| 74 |
}
|
| 75 |
|
|
|
|
| 58 |
const iframe = document.getElementById("viewer");
|
| 59 |
if (url.startsWith("http://") || url.startsWith("https://")) {
|
| 60 |
iframe.src = url;
|
| 61 |
+
} else if (url.endsWith(".html")) {
|
| 62 |
+
iframe.src = url;
|
| 63 |
} else {
|
| 64 |
alert("URL harus diawali dengan http:// atau https://");
|
| 65 |
}
|
|
|
|
| 71 |
|
| 72 |
function ark() {
|
| 73 |
const urlInput = document.getElementById("urlInput");
|
| 74 |
+
urlInput.value = "./ArkReCode/index.html";
|
| 75 |
loadWebsite();
|
| 76 |
}
|
| 77 |
|