cookie / index.html
soiz's picture
Update index.html
acea4dc verified
raw
history blame contribute delete
884 Bytes
<script>
const htmlContent = '<!DOCTYPE html><html lang="ja"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Full Screen iFrame</title><style>html,body{margin:0;padding:0;overflow:hidden;width:100vw;height:100vh}</style><iframe src="https://soiz-cookie2.hf.space/" style="width:100vw;height:100vh;border:none;display:block;margin:0;padding:0"></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>