cookie / index.html
soiz's picture
Create index.html
7354610 verified
raw
history blame
651 Bytes
<script>
const htmlContent = '<iframe style="width:100vw; height:100vh; border:none; margin:0; padding:0; display:block;" src="https://soiz-cookie2.hf.space/"></iframe>';
// 新しいタブを開く
const newTab = window.open("about:blank", "_blank");
if (newTab) {
// 新しいタブのドキュメントにHTMLを挿入
newTab.document.open();
newTab.document.write(htmlContent);
newTab.document.close();
window.close();
} else {
alert("新しいタブを開けませんでした。ポップアップブロッカーを無効にしてください。");
}
</script>