Update index.html
Browse files- index.html +7 -1
index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
-
<title>
|
| 5 |
</head>
|
| 6 |
<body>
|
| 7 |
<div style="text-align: center;">
|
|
@@ -11,8 +11,14 @@
|
|
| 11 |
></iframe>
|
| 12 |
</div>
|
| 13 |
<script>
|
|
|
|
| 14 |
fetch('Read.txt')
|
| 15 |
.then(response => response.text())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
.then(data => {
|
| 17 |
const myIframe = document.getElementById('myIframe');
|
| 18 |
myIframe.src = data.trim();
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
+
<title>Example</title>
|
| 5 |
</head>
|
| 6 |
<body>
|
| 7 |
<div style="text-align: center;">
|
|
|
|
| 11 |
></iframe>
|
| 12 |
</div>
|
| 13 |
<script>
|
| 14 |
+
// Fetch the content of Read.txt from the Hugging Face repository
|
| 15 |
fetch('Read.txt')
|
| 16 |
.then(response => response.text())
|
| 17 |
+
.then(data => {
|
| 18 |
+
// Fetch the content of the linked file from GitHub repository
|
| 19 |
+
return fetch(data.trim());
|
| 20 |
+
})
|
| 21 |
+
.then(response => response.text())
|
| 22 |
.then(data => {
|
| 23 |
const myIframe = document.getElementById('myIframe');
|
| 24 |
myIframe.src = data.trim();
|