Add wordle support, temporary, Pita to move
parent
802866a5da
commit
4f06d4688f
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue