Team:CityU HK/Team/Member testing
From 2014.igem.org
(Difference between revisions)
(23 intermediate revisions not shown) | |||
Line 11: | Line 11: | ||
<link rel="stylesheet" href="https://2014.igem.org/Team:CityU_HK/Team/Member_testing_css2?action=raw&ctype=text/css" type="text/css" /> | <link rel="stylesheet" href="https://2014.igem.org/Team:CityU_HK/Team/Member_testing_css2?action=raw&ctype=text/css" type="text/css" /> | ||
+ | <link rel="stylesheet" href="https://2014.igem.org/Team:CityU_HK/Team/Member_testing_js?action=raw&ctype=text/javascript" type="text/javascript" /> | ||
+ | |||
+ | <link href='http://fonts.googleapis.com/css?family=Rock+Salt' rel='stylesheet' type='text/css' /> | ||
+ | <link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css' /> | ||
- | |||
- | |||
</head> | </head> | ||
+ | |||
<body> | <body> | ||
- | + | <div class="content"> | |
- | + | ||
<h1>Expanding Image Menu with jQuery</h1> | <h1>Expanding Image Menu with jQuery</h1> | ||
<h3>feat. Automatic Redial <a href="http://www.flickr.com/people/robnas/" target="_blank">by Robert Bejil Photography</a></h3> | <h3>feat. Automatic Redial <a href="http://www.flickr.com/people/robnas/" target="_blank">by Robert Bejil Photography</a></h3> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<div id="ei_menu" class="ei_menu"> | <div id="ei_menu" class="ei_menu"> | ||
<ul> | <ul> | ||
Line 155: | Line 148: | ||
</div> | </div> | ||
</div> | </div> | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<!-- The JavaScript --> | <!-- The JavaScript --> | ||
- | + | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
- | + | <script type="text/javascript" src="https://static.igem.org/mediawiki/2014/d/df/CityU_HK_member_jquery.easing.1.3.txt"></script> | |
- | + | ||
+ | |||
+ | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
var $menu = $('#ei_menu > ul'), | var $menu = $('#ei_menu > ul'), | ||
Line 302: | Line 289: | ||
*/ | */ | ||
ExpandingMenu.init(); | ExpandingMenu.init(); | ||
- | + | ||
/* | /* | ||
if later on you want to open / close a specific item you could do it like so: | if later on you want to open / close a specific item you could do it like so: | ||
ExpandingMenu.openItem(3); // toggles item 3 (zero-based indexing) | ExpandingMenu.openItem(3); // toggles item 3 (zero-based indexing) | ||
*/ | */ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}); | }); | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 12:35, 22 September 2014