Difference between revisions of "Template:Team:Judd UK/TEMPLATE"

Line 59: Line 59:
 
     setInterval(function(){
 
     setInterval(function(){
 
         qs('textarea').value = "<div>" + qs('.JC #content-body').innerHTML+"<\/div><html><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'<\/script><\/html>";
 
         qs('textarea').value = "<div>" + qs('.JC #content-body').innerHTML+"<\/div><html><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'<\/script><\/html>";
 +
        qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left")}});
 
     },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){
        qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left")}});
 
 
         qs('#ting').innerHTML=e.responseText;
 
         qs('#ting').innerHTML=e.responseText;
 
         qs('textarea').style.display = "none";
 
         qs('textarea').style.display = "none";

Revision as of 23:29, 28 October 2017

Contents

Designed by Aleksandur Murfitt