Add wordle support, temporary, Pita to move

This commit is contained in:
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)