<title>$taitoru</title>
<script>
const sw = screen.width;
const sh = screen.height;
const w = window.innerWidth;
const h = window.innerHeight;
if(w < sw/2 - 20 || h < sh/2 - 20){
alert("ページが小さ過ぎます。");
top.location.href="./Work.cgi";
}
</script>
</head>
ページが1/4以下で開くと一回だけアラートが出ます。
<script>
const sw = screen.width;
const sh = screen.height;
const w = window.innerWidth;
const h = window.innerHeight;
if(w < sw/2 - 20 || h < sh/2 - 20){
alert("ページが小さ過ぎます。");
top.location.href="./Work.cgi";
}
</script>
</head>
ページが1/4以下で開くと一回だけアラートが出ます。