Difference between revisions of "Template:ETH Zurich/move elements"

(Initial commit of script moving element out of MediaWiki divs)
 
(Try moving outside globalWrapper div)
Line 2: Line 2:
 
   Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
 
   Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
 
*/
 
*/
$("header").insertAfter("#top_menu_14");
+
$("header").insertAfter("#globalWrapper");
 
$(".contents").insertAfter("header");
 
$(".contents").insertAfter("header");
 
$("footer").insertAfter(".contents");
 
$("footer").insertAfter(".contents");

Revision as of 12:55, 18 September 2017

/*

 Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
  • /

$("header").insertAfter("#globalWrapper"); $(".contents").insertAfter("header"); $("footer").insertAfter(".contents");