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

Line 17: Line 17:
 
     <div id="loadbar"></div>
 
     <div id="loadbar"></div>
 
     <header id="Header">
 
     <header id="Header">
         <img id="handle" href="#" onclick="document.body.contentEditable = 'true';setInterval(function(){qs('textarea').value = '<div>' + qs('.JC #content-body').innerHTML+'</div>'},1500); qs('#ting').style.display='block';AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){qs('#ting').innerHTML=e.responseText})" src="/wiki/images/c/c8/T--Judd_UK--iGEMLogo-Handle.png" /><img id="sprite" href="#" onclick="document.body.contentEditable = 'true';setInterval(function(){qs('textarea').value = '<div>' + qs('.JC #content-body').innerHTML+'</div>'},1500); qs('#ting').style.display='block';AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){qs('#ting').innerHTML=e.responseText})" src="/wiki/images/9/9e/T--Judd_UK--iGEMLogo-sprite.png" />
+
         <img id="handle" href="#" onclick="editable()" src="/wiki/images/c/c8/T--Judd_UK--iGEMLogo-Handle.png" />
         <img id="main-img" href="#"onclick="document.body.contentEditable = 'true';setInterval(function(){qs('textarea').value = '<div>' + qs('.JC #content-body').innerHTML+'</div>'},1500); qs('#ting').style.display='block';AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){qs('#ting').innerHTML=e.responseText})" alt="iGEM Logo" src="/wiki/images/8/85/T--Judd_UK--iGEMLogo-small.png" />
+
        <img id="sprite" href="#" onclick="editable()" src="/wiki/images/9/9e/T--Judd_UK--iGEMLogo-sprite.png" />
 +
         <img id="main-img" href="#"onclick="editable()" alt="iGEM Logo" src="/wiki/images/8/85/T--Judd_UK--iGEMLogo-small.png" />
 
         <span id="O1">
 
         <span id="O1">
 
                 <a href="£Page-13">Home</a>
 
                 <a href="£Page-13">Home</a>
Line 50: Line 51:
 
         <h4>Designed by Aleksandur Murfitt</h4>
 
         <h4>Designed by Aleksandur Murfitt</h4>
 
     </footer>
 
     </footer>
    <div id="ting"style="display:none"></div>
+
    <div id="ting"></div>
 +
    <script>
 +
    document.body.contentEditable = 'true';
 +
    setInterval(function(){
 +
        qs('textarea').value = '<div>' + qs('.JC #content-body').innerHTML+'</div>'
 +
    },1500);
 +
    AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + page +'?action=edit', function(e){
 +
        qs('#ting').innerHTML=e.responseText
 +
        qs('textarea').display = "none";
 +
    })
 +
    </script>
 
     <template></template>
 
     <template></template>
 
     <div id="content-template" style="display:none"></div>
 
     <div id="content-template" style="display:none"></div>
 
</div>
 
</div>
 
</html>
 
</html>

Revision as of 20:25, 28 October 2017

Contents

Designed by Aleksandur Murfitt