all repos — retro-website @ main

res/js/iframe.js (view raw)

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