Template:Team:Amsterdam/ernst/scripts

From 2012.igem.org

(Difference between revisions)
 
(113 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<script type='text/javascript' src='http://f.cl.ly/items/0E0N2k3R001J2T2q3A0D/jquery-1.2.3.min.js'></script>
+
<!-- Methode of injecting stuff into the header before page load! :D thank god that mediawiki includes jquery standard ;) -->
-
 
+
<script type='text/javascript'>
<script type='text/javascript'>
-
function mainmenu(){
+
$(document).ready( function() {
-
$(" #nav ul2 ").css({display: "none"}); // Opera Fix
+
    //$('head > style[media="screen, projection"]').remove();
-
$(" #nav li2").hover(function(){
+
    //$('head > script[src="/forum/forum_scripts.js"]').remove();
-
$(this).find('ul2:first').css({visibility: "visible",display: "none"}).show(400);
+
    //$('head > link[href="/wiki/skins/common/commonPrint.css?270"]').remove();
-
},function(){
+
    $("head").append("<link>");
-
$(this).find('ul2:first').css({visibility: "hidden"});
+
    css = $("head > :last");
-
});
+
    //css = $("head").children(":last");
-
}
+
    css.attr({
-
+
      rel: "stylesheet",
-
$(document).ready(function(){
+
      type: "text/css",
-
mainmenu();
+
      href: "/testcss.css"
 +
    });
});
});
</script>
</script>
-
<script type='text/javascript'>
+
<!-- Remove all empty <p> tags -->
-
  window.fbAsyncInit = function() {
+
<script type="text/javascript">
-
    FB.init({
+
    $(document).ready(function() {
-
      appId      : 'YOUR_APP_ID', // App ID
+
        $("p").filter( function() {
-
      channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
+
            return $.trim($(this).html()) == '';
-
      status    : true, // check login status
+
        }).remove()
-
      cookie    : true, // enable cookies to allow the server to access the session
+
-
      xfbml      : true  // parse XFBML
+
     });
     });
 +
</script>
-
    // Additional initialization code here
+
<!-- JQuery menu animations -->
-
  };
+
<script type='text/javascript' src ='http://cherne.net/brian/resources/jquery.hoverIntent.minified.js'></script>
 +
<script type='text/javascript'>
 +
function navmenu(){
 +
$(" #navmenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix
-
  // Load the SDK Asynchronously
+
var config = {   
-
  (function(d){
+
    over: function(){
-
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
+
$(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400});
-
    if (d.getElementById(id)) {return;}
+
},   
-
    js = d.createElement('script'); js.id = id; js.async = true;
+
    timeout: 2500, // number = milliseconds delay before onMouseOut   
-
    js.src = "//connect.facebook.net/en_US/all.js";
+
    out: function(){
-
    ref.parentNode.insertBefore(js, ref);
+
$(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400});
-
  }(document));
+
}
 +
};
 +
 
 +
$(" #navmenu ul li").hoverIntent(config);
 +
}
 +
 +
$(document).ready(function(){
 +
navmenu();
 +
});
</script>
</script>
 +
 +
<!-- Facebook RSS Feed Processor -->
 +
<script type='text/javascript' src='http://www.zazar.net/developers/jquery/zrssfeed/jquery.zrssfeed.min.js'></script>
 +
<script type='text/javascript' src='scripts/fb-feed-collector.js?action=raw'></script>
</html>
</html>

Latest revision as of 13:05, 12 September 2012