Spaces:
Running
Running
Upload back.html with huggingface_hub
Browse files
back.html
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
|
5 |
+
<style>
|
6 |
+
.container {
|
7 |
+
position: relative;
|
8 |
+
overflow: hidden;
|
9 |
+
width: 100%;
|
10 |
+
padding-top: 100%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
|
11 |
+
}
|
12 |
+
.responsive-iframe {
|
13 |
+
position: absolute;
|
14 |
+
top: 0;
|
15 |
+
left: 0;
|
16 |
+
bottom: 0;
|
17 |
+
right: 0;
|
18 |
+
width: 100%;
|
19 |
+
height: 100%;
|
20 |
+
}
|
21 |
+
</style>
|
22 |
+
</head>
|
23 |
+
<body>
|
24 |
+
<div class="container">
|
25 |
+
<iframe
|
26 |
+
id="myIframe"
|
27 |
+
frameborder="0"
|
28 |
+
class="container p-0 flex-grow space-iframe"
|
29 |
+
allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"
|
30 |
+
sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"
|
31 |
+
></iframe>
|
32 |
+
</div>
|
33 |
+
<script>
|
34 |
+
const queryString = window.location.search;
|
35 |
+
const urlParams = new URLSearchParams(queryString);
|
36 |
+
const model_url = urlParams.get("url");
|
37 |
+
console.log(model_url);
|
38 |
+
let myIframe = document.getElementById("myIframe");
|
39 |
+
let url_string = "https://omnibus-social-card-maker-ez.hf.space";
|
40 |
+
let mod_url = model_url;
|
41 |
+
let adsURL = url_string+"?url="+mod_url;
|
42 |
+
console.log(adsURL);
|
43 |
+
myIframe.src = adsURL;
|
44 |
+
</script>
|
45 |
+
</body>
|
46 |
+
</html>
|