Moved John's code to the correct place

This commit is contained in:
Peter 'Pita' Martischka 2011-07-22 14:07:13 +01:00
parent 73f97cc7d5
commit a717e07531
3 changed files with 22 additions and 20 deletions

View file

@ -21,13 +21,6 @@ var socket;
$(document).ready(function()
{
handshake();
// This is a temporary location, Peter to move
$("#exporthtmla").attr("href", document.location.href + "/export/html");
$("#exportplaina").attr("href", document.location.href + "/export/txt");
$("#exportworda").attr("href", document.location.href + "/export/doc");
$("#exportpdfa").attr("href", document.location.href + "/export/pdf");
$("#exportopena").attr("href", document.location.href + "/export/odt");
$("#exportwordlea").attr("href", document.location.href + "/export/wordle");
});
$(window).unload(function()
@ -35,18 +28,6 @@ $(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)