Spaces:
Running
Running
Rename test1.html to test2.html
Browse files- test1.html → test2.html +10 -0
test1.html → test2.html
RENAMED
|
@@ -55,15 +55,25 @@ height: 100%;
|
|
| 55 |
sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"
|
| 56 |
></iframe>
|
| 57 |
</div>
|
|
|
|
|
|
|
| 58 |
<script>
|
| 59 |
const queryString = window.location.search;
|
| 60 |
const urlParams = new URLSearchParams(queryString);
|
| 61 |
const model_url = urlParams.get("url");
|
|
|
|
| 62 |
console.log(model_url);
|
| 63 |
let myIframe = document.getElementById("myIframe");
|
| 64 |
let url_string = "https://omnibus-model-view.hf.space/";
|
| 65 |
let mod_url = model_url;
|
| 66 |
let adsURL = url_string+"?url="+mod_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
console.log(adsURL);
|
| 68 |
myIframe.src = adsURL;
|
| 69 |
</script>
|
|
|
|
| 55 |
sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"
|
| 56 |
></iframe>
|
| 57 |
</div>
|
| 58 |
+
|
| 59 |
+
|
| 60 |
<script>
|
| 61 |
const queryString = window.location.search;
|
| 62 |
const urlParams = new URLSearchParams(queryString);
|
| 63 |
const model_url = urlParams.get("url");
|
| 64 |
+
|
| 65 |
console.log(model_url);
|
| 66 |
let myIframe = document.getElementById("myIframe");
|
| 67 |
let url_string = "https://omnibus-model-view.hf.space/";
|
| 68 |
let mod_url = model_url;
|
| 69 |
let adsURL = url_string+"?url="+mod_url;
|
| 70 |
+
|
| 71 |
+
var link = document.createElement('meta');
|
| 72 |
+
link.setAttribute('name', 'twitter:player');
|
| 73 |
+
link.content = adsURL;
|
| 74 |
+
document.getElementsByTagName('head')[0].appendChild(link);
|
| 75 |
+
|
| 76 |
+
|
| 77 |
console.log(adsURL);
|
| 78 |
myIframe.src = adsURL;
|
| 79 |
</script>
|