diff --git a/static/js/pad2.js b/static/js/pad2.js index 29c077d4..f57656c5 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -35,6 +35,18 @@ $(window).unload(function() pad.dispose(); }); +// Wordle code, Peter to move +function loadCont(){ + padUrl = location.pathname; + padHost = location.host; + var padUrl = "http://" + padHost + padUrl + "/export/txt"; + $.get(padUrl, function(data) { + $('.result').html(data); + $('#text').html(data); + $('#wordlepost').submit(); + }); +} + function createCookie(name, value, days) { if (days) diff --git a/static/pad.html b/static/pad.html index 5e0220cd..2b85009b 100644 --- a/static/pad.html +++ b/static/pad.html @@ -234,7 +234,10 @@ We removed this feature cause its not worth the space it needs in the editbar
Microsoft Word
PDF
OpenDocument
-
Wordle
+
Wordle
+
+
+