Template:North America 2013 mainmenubar
From 2013.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<!--Design provided by <a href="https://igem.org/Main_Page">iGEM Main page</a>/--> | <!--Design provided by <a href="https://igem.org/Main_Page">iGEM Main page</a>/--> | ||
+ | |||
+ | <link rel="stylesheet" type="text/css" href="/Template:North_America_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", "", $("#p-logo")); | ||
+ | addImageLink("/", "https://static.igem.org/mediawiki/2013/d/dc/EuJamLogoiGem.png", $("#p-logo"), "floatRight igemLogo"); | ||
+ | |||
+ | $("#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> | ||
Revision as of 17:31, 11 September 2013