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

 
(39 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
     <link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/main?action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/main?action=raw&ctype=text/css">
 
     <script src="/Template:Judd_UK/Scripts/wiki?action=raw&ctype=text/javascript" defer></script>
 
     <script src="/Template:Judd_UK/Scripts/wiki?action=raw&ctype=text/javascript" defer></script>
 +
<script src="/Template:Judd_UK/Scripts/BSS?action=raw&ctype=text/javascript" defer></script>
 +
<link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/BSS?action=raw&ctype=text/css">
 
     <style id="topstyles"></style>
 
     <style id="topstyles"></style>
 
     <div id="loadbar"></div>
 
     <div id="loadbar"></div>
 
     <header id="Header">
 
     <header id="Header">
         <img id="handle" href="#" onclick="editable()" src="/wiki/images/c/c8/T--Judd_UK--iGEMLogo-Handle.png" />
+
         <img id="handle" href="#"src="/wiki/images/c/c8/T--Judd_UK--iGEMLogo-Handle.png" />
         <img id="sprite" href="#" onclick="editable()" src="/wiki/images/9/9e/T--Judd_UK--iGEMLogo-sprite.png" />
+
         <img id="sprite" href="#"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" />
+
         <img id="main-img" href="#" 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="https://2017.igem.org/Team:Judd_UK">Home</a>
 
         </span>
 
         </span>
 
         <div id="D2" class="D"></div>
 
         <div id="D2" class="D"></div>
Line 49: Line 51:
 
     </div>
 
     </div>
 
     <footer id="Footer">
 
     <footer id="Footer">
         <h4>Designed by Aleksandur Murfitt</h4>
+
         <h4>Created by <a style="color:inherit" href="mailto:11murfitta@judd.kent.sch.uk">Aleksandur Murfitt</a>, content by the Judd_UK team</h4>
 
     </footer>
 
     </footer>
    <div id="ting"></div>
 
 
     <template></template>
 
     <template></template>
 
     <div id="content-template" style="display:none"></div>
 
     <div id="content-template" style="display:none"></div>
    <script>
 
    function editable(){
 
    qs(".JC #content-body").contentEditable = 'true';
 
    qs(".JC #content-body").oninput = function(){
 
        qs('textarea').value = "<div" + (qs("#content-index").style.display=="none"?' data-wiki="false" data-templated="false"':"")+">" + 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");o.preventDefault()}});
 
    };
 
    var safety = page;
 
    AJAX('https://2017.igem.org/Team:Judd_UK/Pages/' + safety +'?action=edit', function(e){
 
        qs('#ting').innerHTML=e.responseText;
 
        qs('textarea').rows = "10";
 
        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";
 
        qsa("label")[1].innerHTML="Editing " + safety;
 
        qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
        qs("textarea").oninput = function(){
 
            qs('.JC #content-body').innerHTML = qs('textarea').value;
 
            qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
        };
 
        document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea").innerHTML;renderPage();qs("#ting").contentEditable="true"}}
 
    })
 
    }
 
    </script>
 
 
</div>
 
</div>
 
</html>
 
</html>

Latest revision as of 10:41, 15 December 2017

Contents