From cca3cd3b0d4fcf11a51352d756a1561e7e2030c8 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 2 Mar 2020 16:38:46 -0500 Subject: [PATCH] Minimalist interface, iframe support --- public/index.html | 37 ++++++++++++++++++------------------- public/js/main.js | 7 +++++++ 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/public/index.html b/public/index.html index 13f62e8..d2360c0 100644 --- a/public/index.html +++ b/public/index.html @@ -10,9 +10,11 @@ @@ -36,17 +47,9 @@ - - -
-
-
+
+
+
@@ -140,7 +143,7 @@
-
+
@@ -200,10 +203,6 @@
-
-
- This window can be closed after uploading a task. The process will continue running on the server. -
diff --git a/public/js/main.js b/public/js/main.js index 9b6e53e..7a6ca61 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -16,6 +16,13 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ $(function() { + if ( window.location !== window.parent.location ) { + // The page is in an iframe, broadcast height + setInterval(function() { + window.parent.postMessage(document.body.scrollHeight, "*"); + }, 200); + } + function App(){ this.mode = ko.observable("file"); this.filesCount = ko.observable(0);