Add wordle support, temporary, Pita to move

pull/35/head
John McLear 2011-07-20 16:38:03 +01:00
parent 802866a5da
commit 4f06d4688f
2 changed files with 16 additions and 1 deletions

View File

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

View File

@ -234,7 +234,10 @@ We removed this feature cause its not worth the space it needs in the editbar
<a id="exportworda" target="_blank" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a>
<a id="exportpdfa" target="_blank" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a>
<a id="exportopena" target="_blank" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a>
<a id="exportwordlea" target="_blank" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
<a id="exportwordlea" target="_blank" onClick="loadCont();return false;" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
<form id="wordlepost" name="wall" action="http://wordle.net/advanced" method="POST" style="margin-left:0px;">
<div id="hidetext" style=""><textarea id="text" name="text" id="text" style="display:none;">Coming soon!</textarea></div>
</form>
</div>
</div>