Mercurial > hgrepos > hgweb.cgi > s4
changeset 930:1221335459c6 draft
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 wrap: on
line diff
--- 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...";