|
|
Line 6: |
Line 6: |
| <html> | | <html> |
| | | |
− | <!--Partie de william pour supprimer la bannière iGEM-->
| + | #contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo { |
− | | + | display:none;} |
− | <script>
| + | #top-section { |
− | const cssreq = new XMLHttpRequest();
| + | border: none; |
− | cssreq.open('GET', 'https://static.igem.org/mediawiki/2018/2/22/T--GO_Paris-Saclay--maincss.txt', false);
| + | height: 0px;} |
− | console.log("Sending CSS XHR...");
| + | #content { |
− | cssreq.send(null);
| + | border: none;} |
− | console.log("Received CSS results");
| + | /* Removes "teams" from the menubar */ |
− | var b64_csstext = cssreq.responseText;
| + | #menubar > ul > li:last-child { |
− | var css_text = atob(b64_csstext);
| + | display: none;} |
− | $('head').append("<style>"+css_text+"</style>");
| + | /* Resizes the menubar to fik the links (default is 400px) */ |
− | | + | #menubar { |
− | const req = new XMLHttpRequest();
| + | width: auto;} |
− | req.open('GET', 'https://static.igem.org/mediawiki/2018/e/ee/T--GO_Paris-Saclay--mainscript.txt', false);
| + | |
− | console.log("Sending JS XHR...");
| + | |
− | req.send(null);
| + | |
− | console.log("Received JS results");
| + | |
− | var b64_text = req.responseText;
| + | |
− | var js_text = atob(b64_text);
| + | |
− | eval(js_text);
| + | |
− | | + | |
− | setTimeout(function(){
| + | |
− | $(".body").append($("#bigmaindiv")); | + | |
− | | + | |
− | $('#top_title').remove();
| + | |
− | $('#removeme').remove();
| + | |
− | $('#bigmaindiv').insertBefore('#content'); }, 0);
| + | |
− | </script>
| + | |
− | | + | |
| | | |
| <!--Début du html--> | | <!--Début du html--> |
Revision as of 09:34, 20 September 2018
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
display:none;}
#top-section {
border: none;
height: 0px;}
#content {
border: none;}
/* Removes "teams" from the menubar */
#menubar > ul > li:last-child {
display: none;}
/* Resizes the menubar to fik the links (default is 400px) */
#menubar {
width: auto;}