soiz commited on
Commit
7354610
·
verified ·
1 Parent(s): de7487c

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +14 -0
index.html ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script>
2
+ const htmlContent = '<iframe style="width:100vw; height:100vh; border:none; margin:0; padding:0; display:block;" src="https://soiz-cookie2.hf.space/"></iframe>';
3
+ // 新しいタブを開く
4
+ const newTab = window.open("about:blank", "_blank");
5
+ if (newTab) {
6
+ // 新しいタブのドキュメントにHTMLを挿入
7
+ newTab.document.open();
8
+ newTab.document.write(htmlContent);
9
+ newTab.document.close();
10
+ window.close();
11
+ } else {
12
+ alert("新しいタブを開けませんでした。ポップアップブロッカーを無効にしてください。");
13
+ }
14
+ </script>