Template:Regional Europe 2013 mainmenubar
From 2013.igem.org
(Difference between revisions)
(AJout lien vers styles) |
(AJout images du bandeau haut) |
||
Line 4: | Line 4: | ||
<link rel="stylesheet" type="text/css" href="/Template:Regional_Europe_2013_Page_CSS?action=raw&ctype=text/css" > | <link rel="stylesheet" type="text/css" href="/Template:Regional_Europe_2013_Page_CSS?action=raw&ctype=text/css" > | ||
+ | <!-- jQuery library (served from Google) --> | ||
+ | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | |||
+ | addImageLink("/Europe", "https://static.igem.org/mediawiki/2013/0/01/EuJamLogoiGemLyon.png", $("#p-logo")); | ||
+ | addImageLink("/", "https://static.igem.org/mediawiki/2013/d/dc/EuJamLogoiGem.png", $("#p-logo"), "floatRight"); | ||
+ | |||
+ | var socialLinkDiv = $("<div id='socialLinks'></div>"); | ||
+ | addImageLink("https://www.facebook.com/JamboreeLyonIgem?fref=ts", "https://static.igem.org/mediawiki/2013/3/38/EuJamFacebookLogo.png", socialLinkDiv); | ||
+ | addImageLink("https://twitter.com/intent/user?screen_name=iGEM_Lyon", "https://static.igem.org/mediawiki/2013/2/21/EuJamTwitterLogo.png", socialLinkDiv); | ||
+ | |||
+ | $("#search-controls").prepend(socialLinkDiv); | ||
+ | |||
+ | function addImageLink(link, image, node, imageClass) { | ||
+ | var linkNode = $("<a href='" + link + "'></a>"); | ||
+ | var imageNode = new Image(); | ||
+ | imageNode.src = image; | ||
+ | imageNode.className = imageClass; | ||
+ | node.append(linkNode.append(imageNode)); | ||
+ | |||
+ | } | ||
+ | |||
+ | }); | ||
+ | </script> | ||
<div id="navbarcontainer"> | <div id="navbarcontainer"> |
Revision as of 09:55, 23 June 2013