s4
changeset 930:1221335459c6
Add evaluation code of opening files in normal window
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 19 Jan 2021 16:12:14 +0900 |
parents | b78409b5a3b9 |
children | 756c99e27d4f |
files | s4-main.js |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/s4-main.js Mon Jan 18 18:48:32 2021 +0900 1.2 +++ b/s4-main.js Tue Jan 19 16:12:14 2021 +0900 1.3 @@ -418,6 +418,16 @@ 1.4 1.5 box.appendChild(p1); 1.6 p1.appendChild(sl); p1.appendChild(bt); p1.appendChild(sr); 1.7 + { // TEST: Normal mode 1.8 + let only = document.createElement("button"), 1.9 + h = location.href; 1.10 + only.textContent = ".oO□"; 1.11 + only.setAttribute("title", "Open in Normal Window"); 1.12 + only.addEventListener("click", function() { 1.13 + location.replace(iframe.src); 1.14 + }); 1.15 + p1.appendChild(only); 1.16 + } 1.17 p1.appendChild(loading); 1.18 info.appendChild(info1); info.appendChild(info2); 1.19 loading.textContent=" Loading...";