|
|
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><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:05, 28 October 2017
";
},1500);
AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){
qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left")}});
qs('#ting').innerHTML=e.responseText;
qs('textarea').style.display = "none";
qs('#wpSummary').style.display = "none";
qs('.editCheckboxes').style.display = "none";
qs('#editpage-copywarn').style.display = "none";
qs('#wpPreview').style.display = "none";
qs('#wpDiff').style.display = "none";
qs('.cancelLink').style.display = "none";
qs('.editHelp').style.display = "none";
})
}