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);