Spaces:
Running
Running
Rename index.php to index.html
Browse files- index.html +21 -0
- index.php +0 -18
index.html
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>User JSON Display</title>
|
| 5 |
+
<script>
|
| 6 |
+
// Fetch the user.json file
|
| 7 |
+
fetch('train.json')
|
| 8 |
+
.then(response => response.json())
|
| 9 |
+
.then(data => {
|
| 10 |
+
// Display the JSON data
|
| 11 |
+
document.getElementById('user-data').textContent = JSON.stringify(data, null, 2);
|
| 12 |
+
})
|
| 13 |
+
.catch(error => {
|
| 14 |
+
console.error('Error:', error);
|
| 15 |
+
});
|
| 16 |
+
</script>
|
| 17 |
+
</head>
|
| 18 |
+
<body>
|
| 19 |
+
<pre id="user-data"></pre>
|
| 20 |
+
</body>
|
| 21 |
+
</html>
|
index.php
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="utf-8" />
|
| 5 |
-
<meta name="viewport"content="width=device-width" />
|
| 6 |
-
<title>My static Space</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css" />
|
| 8 |
-
</head>
|
| 9 |
-
<body>rthrt
|
| 10 |
-
<div class="card">
|
| 11 |
-
<h1>Welcome to your 5gh app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
| 12 |
-
<p>eegergeger
|
| 13 |
-
Also don't forget to check t
|
| 14 |
-
<a href="https//hggirwefffweffwefngface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
| 15 |
-
</p>ergrertrthth
|
| 16 |
-
</div
|
| 17 |
-
</body>
|
| 18 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|