all repos — retro-website @ 8362008c2a90a430cf4d088b3f7960b85b6bc3db

res/js/iframe.js (view raw)

 1
 2if (!parent.location.href.includes("plain")) {
 3    hide_all();
 4}
 5const page_height = {
 6    "about": 1500,
 7    "anime": 1000,
 8    "dragonquest": 1000,
 9    "earthbound": 1000,
10    "gf": 1600,
11    "indies": 1000,
12    "zelda": 1000
13}
14
15const page = document.body.getAttribute("data-page");
16const iframe = parent.document.getElementById("mainframe");
17
18iframe.height = page_height[page];
19iframe.scrolling = "no";