File size: 1,436 Bytes
b3d622e
 
 
 
 
fb311a1
b3d622e
 
 
 
 
fb311a1
b3d622e
 
 
 
 
 
 
 
 
 
 
fb311a1
b3d622e
 
 
 
 
 
 
 
 
 
 
 
 
 
098b395
b3d622e
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
 
<style>
  .omni_container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
  .omni_container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
</style>
</head>
<body>
<div class="omni_container">
<iframe 
  id="myIframe" 
  frameborder="0"
  class="container p-0 flex-grow space-iframe"
  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" 
  sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"
></iframe>
</div>
    <script>
    const queryString = window.location.search;
    const urlParams = new URLSearchParams(queryString);
    const model_url = urlParams.get("url");
    console.log(model_url);
    let myIframe = document.getElementById("myIframe");
    let url_string = "https://omnibus-social-card-maker-ez.hf.space/";
    let mod_url = model_url;
    let adsURL = url_string+"?url="+mod_url;
    console.log(adsURL);
    myIframe.src = adsURL;
    </script>
  </body>
</html>