Creation of the world

This commit is contained in:
Chouchen
2010-09-14 21:38:29 +00:00
parent 5a50cdb2e4
commit 08469447cb
108 changed files with 4685 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?header('Content-type: application/javascript');
$token = $_GET['token'];
?>
function cbfunc(o){ ␍
var name = o[0].name;␍
var id = o[0].id;␍
if(id == undefined){␍
$('body').append('<span>ERROR</span>');␍
}else{␍
$.get('saveTodoist.php', {name: name, id: id}, function(){␍
window.location.reload();␍
}); ␍
}␍
}␍
$(document).ready(function(){␍
var token = "<?=$token?>";␍
var script = document.createElement('script');␍
script.type = 'text/javascript';␍
script.src = 'https://todoist.com/API/getProjects?token='+token+'&format=json&callback=cbfunc';␍
document.getElementsByTagName('head')[0].appendChild(script); ␍
});