Template:Glasgow/wikijs

$(document).ready(function(){ $(document).foundation();

//Dirty sticky wiki toc hack var $toc = $("#toc"); //Retrieve TOC and cache

//Reposition TOC in DOM $toc.detach(); /* $toc.insertBefore("#article");

//Create container

$toc.wrap("
");

//Add necessary attributes and class $toc.attr("data-sticky", ""); $toc.attr("data-anchor", "article"); $toc.attr("data-margin-top", "2"); $toc.attr("data-sticky-on", "large"); $toc.addClass("sticky").foundation(); //Re-initialise foundation */ });