Spaces:
Running
Running
Rename test5.html to test6.html
Browse files- test5.html → test6.html +12 -8
test5.html → test6.html
RENAMED
|
@@ -6,8 +6,7 @@
|
|
| 6 |
<meta name="viewport" content="width=device-width" />
|
| 7 |
<meta name="twitter:card" content="player"/>
|
| 8 |
<meta name="twitter:site" content=""/>
|
| 9 |
-
|
| 10 |
-
<meta name="twitter:player:stream" content= "https://Omnibus-test-model-viewer.static.hf.space/test5.html/?" />
|
| 11 |
<meta name="twitter:player:width" content="100%"/>
|
| 12 |
<meta name="twitter:player:height" content="100%"/>
|
| 13 |
<meta property="og:title" content="Test Model Viewer"/>
|
|
@@ -15,7 +14,11 @@
|
|
| 15 |
<meta property="og:image" content="https://Omnibus-test-model-viewer.static.hf.space/card_im.png"/>
|
| 16 |
|
| 17 |
<style>
|
| 18 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
position: relative;
|
| 20 |
overflow: hidden;
|
| 21 |
width: 100%;
|
|
@@ -67,15 +70,16 @@ height: 100%;
|
|
| 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 |
-
|
|
|
|
| 72 |
link.setAttribute('name', 'twitter:player');
|
| 73 |
-
link.content =
|
| 74 |
document.getElementsByTagName('head')[0].appendChild(link);
|
| 75 |
var link_stream = document.createElement('meta');
|
| 76 |
link_stream.setAttribute('name', 'twitter:player:stream');
|
| 77 |
-
link_stream.content =
|
| 78 |
-
document.getElementsByTagName('head')[0].appendChild(link_stream);
|
| 79 |
|
| 80 |
console.log(adsURL);
|
| 81 |
myIframe.src = adsURL;
|
|
|
|
| 6 |
<meta name="viewport" content="width=device-width" />
|
| 7 |
<meta name="twitter:card" content="player"/>
|
| 8 |
<meta name="twitter:site" content=""/>
|
| 9 |
+
|
|
|
|
| 10 |
<meta name="twitter:player:width" content="100%"/>
|
| 11 |
<meta name="twitter:player:height" content="100%"/>
|
| 12 |
<meta property="og:title" content="Test Model Viewer"/>
|
|
|
|
| 14 |
<meta property="og:image" content="https://Omnibus-test-model-viewer.static.hf.space/card_im.png"/>
|
| 15 |
|
| 16 |
<style>
|
| 17 |
+
/*
|
| 18 |
+
|
| 19 |
+
<meta name="twitter:player" content= "https://Omnibus-test-model-viewer.static.hf.space/test5.html/?" />
|
| 20 |
+
<meta name="twitter:player:stream" content= "https://Omnibus-test-model-viewer.static.hf.space/test5.html/?" />
|
| 21 |
+
.container {
|
| 22 |
position: relative;
|
| 23 |
overflow: hidden;
|
| 24 |
width: 100%;
|
|
|
|
| 70 |
let url_string = "https://omnibus-model-view.hf.space/";
|
| 71 |
let mod_url = model_url;
|
| 72 |
let adsURL = url_string+"?url="+mod_url;
|
| 73 |
+
let metasURL = url_string+"/test6.html/?url="+mod_url;
|
| 74 |
+
|
| 75 |
+
var link = document.createElement('meta');
|
| 76 |
link.setAttribute('name', 'twitter:player');
|
| 77 |
+
link.content = metasURL;
|
| 78 |
document.getElementsByTagName('head')[0].appendChild(link);
|
| 79 |
var link_stream = document.createElement('meta');
|
| 80 |
link_stream.setAttribute('name', 'twitter:player:stream');
|
| 81 |
+
link_stream.content = metasURL;
|
| 82 |
+
document.getElementsByTagName('head')[0].appendChild(link_stream);
|
| 83 |
|
| 84 |
console.log(adsURL);
|
| 85 |
myIframe.src = adsURL;
|