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

Line 61: Line 61:
 
         qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
         qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
     },1500);
 
     },1500);
     AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){
+
    var safety = page;
 +
     AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + safety +'?action=edit', function(e){
 
         qs('#ting').innerHTML=e.responseText;
 
         qs('#ting').innerHTML=e.responseText;
 
         qs('textarea').style.display = "none";
 
         qs('textarea').style.display = "none";
Line 71: Line 72:
 
         qs('.cancelLink').style.display = "none";
 
         qs('.cancelLink').style.display = "none";
 
         qs('.editHelp').style.display = "none";
 
         qs('.editHelp').style.display = "none";
 +
        qsa("label")[1].innerHTML="Editing " + safety;
 
     })
 
     })
 
     }
 
     }

Revision as of 23:44, 28 October 2017

Contents

Designed by Aleksandur Murfitt