Update index.html
Browse files- index.html +9 -1
index.html
CHANGED
@@ -5,10 +5,18 @@
|
|
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>
|
10 |
<div class="card">
|
11 |
-
<h1>Welcome to your static Space!</h1>
|
12 |
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
13 |
<p>
|
14 |
Also don't forget to check the
|
|
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
<title>My static Space</title>
|
7 |
<link rel="stylesheet" href="style.css" />
|
8 |
+
<script>
|
9 |
+
const queryString = window.location.search;
|
10 |
+
const urlParams = new URLSearchParams(queryString);
|
11 |
+
const main_url = "https://huggingface.co/datasets/Omnibus/game-data-1/resolve/main/images/"
|
12 |
+
const txt_s = urlParams.get("txtstrng")
|
13 |
+
document.getElementById("in_html").innerHTML()=txt_s
|
14 |
+
</script>
|
15 |
+
|
16 |
</head>
|
17 |
<body>
|
18 |
<div class="card">
|
19 |
+
<h1 id="in_html">Welcome to your static Space!</h1>
|
20 |
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
21 |
<p>
|
22 |
Also don't forget to check the
|