Template:Biomod/2012/TU Dresden/Nanosaurs/Header: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 40: Line 40:
//start plugins for navigation
//start plugins for navigation
$("ul.sf-menu").superfish({
$("ul.sf-menu").superfish({
delay:      1000,                            // one second delay on mouseout  
delay:      200,                            // one second delay on mouseout  
animation:  {opacity:'show',height:'show'},  // fade-in and slide-down animation  
animation:  {opacity:'show',height:'show'},  // fade-in and slide-down animation  
speed:      'fast',                          // faster animation speed  
speed:      'fast',                          // faster animation speed  

Revision as of 11:32, 21 October 2012

<html> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript" src="http://dl.dropbox.com/s/fa87eh50zvh51sh/jquery.queryloader2.js"></script> <script type="text/javascript" src="http://dl.dropbox.com/s/hl66ufoubiyyzj9/superfish.js"></script> <script type="text/javascript" src="http://dl.dropbox.com/s/1zn3fwk61zo5zl7/jquery.hoverIntent.minified.js"></script>

<link href='http://fonts.googleapis.com/css?family=Merriweather:400,700' rel='stylesheet' type='text/css'> <link href='http://dl.dropbox.com/s/6x4aw0yhvpce6jz/Light.css' rel='stylesheet' type='text/css'> <link href='http://dl.dropbox.com/s/hj8l0glgd1c1z3l/nivo-slider.css rel='stylesheet' type='text/css'>

<script type"text/javascript"> // Main function that waits for the browser to be ready $(document).ready(function(){ //make css accesible, please change the alter_css to chnage the style $("body").queryLoader2(); var alter_css = $("#alter_css").html(); $("style").remove(); $('head').append('<link rel="stylesheet" href="/skins/monobook/shared.css?164" type="text/css" />'); $('head').append('<link rel="stylesheet" href="http://dl.dropbox.com/sh/0msyro9qoqo06s6/xcIgU48EXN/nanos.css" type="text/css" />'); //additional divs

$(".firstHeading").wrap('

'); $(".firstHeading").wrap('

'); $(".firstHeading").wrap('

');

var nav = $("#nav").html(); $('#inner_header').append(nav);

$('#inner_header').append('

');

//clean up wiki framework $("#sidebar-main").remove(); $(".portlet").remove(); //fix breadcrumbs var breadcrumbs = $('#contentSub').remove(); breadcrumbs.appendTo('#header'); var bread = $("#contentSub").html().replace(/\|/g,">").replace(">TU Dresden/Nanosaurs</a>",">Nanosaurs</a>").replace("< ",""); $(".subpages").replaceWith(bread); //fix heading var h1 = $(".firstHeading").text().split("/"); $(".firstHeading").text(h1[h1.length-1]); //start plugins for navigation $("ul.sf-menu").superfish({ delay: 200, // one second delay on mouseout animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation speed: 'fast', // faster animation speed }); }); </script>

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-35720700-1']); _gaq.push(['_trackPageview']);

(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>

<script id="nav">