# HG changeset patch # User HIROSE Yuuji # Date 1611040334 -32400 # Node ID 1221335459c667ea5b21388b3141527bc3615dce # Parent b78409b5a3b9926b8c56d21e09d2e2c66499abe5 Add evaluation code of opening files in normal window diff -r b78409b5a3b9 -r 1221335459c6 s4-main.js --- a/s4-main.js Mon Jan 18 18:48:32 2021 +0900 +++ b/s4-main.js Tue Jan 19 16:12:14 2021 +0900 @@ -418,6 +418,16 @@ box.appendChild(p1); p1.appendChild(sl); p1.appendChild(bt); p1.appendChild(sr); + { // TEST: Normal mode + let only = document.createElement("button"), + h = location.href; + only.textContent = ".oO□"; + only.setAttribute("title", "Open in Normal Window"); + only.addEventListener("click", function() { + location.replace(iframe.src); + }); + p1.appendChild(only); + } p1.appendChild(loading); info.appendChild(info1); info.appendChild(info2); loading.textContent=" Loading...";