Spaces:
Running
Running
Update back.html
Browse files
back.html
CHANGED
|
@@ -21,11 +21,30 @@
|
|
| 21 |
</style>
|
| 22 |
</head>
|
| 23 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
<div class="container">
|
| 25 |
<iframe
|
|
|
|
| 26 |
class="responsive-iframe"
|
| 27 |
-
|
| 28 |
-
frameborder="0"
|
| 29 |
></iframe>
|
| 30 |
</div>
|
| 31 |
|
|
|
|
| 21 |
</style>
|
| 22 |
</head>
|
| 23 |
<body>
|
| 24 |
+
<script>
|
| 25 |
+
const queryString = window.location.search;
|
| 26 |
+
const urlParams = new URLSearchParams(queryString);
|
| 27 |
+
const model_url = urlParams.get('url');
|
| 28 |
+
console.log(model_url);
|
| 29 |
+
|
| 30 |
+
let myIframe = document.getElementById("myIframe");
|
| 31 |
+
let url_string = "https://omnibus-model-view.hf.space"/";
|
| 32 |
+
let width = "728";
|
| 33 |
+
let height = "90";
|
| 34 |
+
let mod_url = model_url;
|
| 35 |
+
|
| 36 |
+
let adsURL = url_string+"?url="+mod_url;
|
| 37 |
+
console.log(adsURL);
|
| 38 |
+
myIframe.src = adsURL;
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
</script>
|
| 43 |
<div class="container">
|
| 44 |
<iframe
|
| 45 |
+
id="myIframe"
|
| 46 |
class="responsive-iframe"
|
| 47 |
+
frameborder="0"
|
|
|
|
| 48 |
></iframe>
|
| 49 |
</div>
|
| 50 |
|