Line 58: | Line 58: | ||
qs(".JC #content-body").contentEditable = 'true'; | qs(".JC #content-body").contentEditable = 'true'; | ||
setInterval(function(){ | setInterval(function(){ | ||
− | qs('textarea').value = "<div>" + qs('.JC #content-body').innerHTML+"</div><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'</script>"; | + | qs('textarea').value = "<div>" + qs('.JC #content-body').innerHTML+"</div>"; |
+ | qs('textarea').value += "<script>window.location=\'/Team:Judd_UK/" + page.replace("*", "/") + "\'</script>"; | ||
},1500); | },1500); | ||
AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){ | AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){ |
Revision as of 23:07, 28 October 2017