RadouxArthur (Talk | contribs) (Created page with "<html> <body> <header> <nav> <div id="menu"> <ul> <li class="project"><a href="#menu_sous1">Project</a> <ul id="m...") |
RadouxArthur (Talk | contribs) |
||
Line 15: | Line 15: | ||
</li> | </li> | ||
</html> | </html> | ||
+ | |||
+ | |||
+ | |||
+ | <script> | ||
+ | const cssreq = new XMLHttpRequest(); | ||
+ | cssreq.open('GET', 'https://static.igem.org/mediawiki/2018/2/22/T--GO_Paris-Saclay--maincss.txt', false); | ||
+ | console.log("Sending CSS XHR..."); | ||
+ | cssreq.send(null); | ||
+ | console.log("Received CSS results"); | ||
+ | var b64_csstext = cssreq.responseText; | ||
+ | var css_text = atob(b64_csstext); | ||
+ | $('head').append("<style>"+css_text+"</style>"); | ||
+ | |||
+ | const req = new XMLHttpRequest(); | ||
+ | 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> |
Revision as of 08:45, 20 September 2018