Template:Team:HokkaidoU Japan/javascripts
From 2012.igem.org
(Difference between revisions)
(11 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<html> | <html> | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | var _gaq = _gaq || []; | ||
+ | _gaq.push(['_setAccount', 'UA-33361926-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 type="text/javascript"> | <script type="text/javascript"> | ||
$(function(){ | $(function(){ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$('#hokkaidou-column-nav > ul > li').click(function(e){ | $('#hokkaidou-column-nav > ul > li').click(function(e){ | ||
$(this).children('ul').slideToggle(); | $(this).children('ul').slideToggle(); | ||
Line 21: | Line 20: | ||
$(this).children('.caret').toggleClass('caret-bottom'); | $(this).children('.caret').toggleClass('caret-bottom'); | ||
}).children('ul').hide(); | }).children('ul').hide(); | ||
+ | $('#hokkaidou-index-cross1').hover( | ||
+ | function(){ | ||
+ | $('.hokkaidou-index-image-cross1').animate({opacity: 'toggle'}, function(){ | ||
+ | $('#hokkaidou-index-wet1').css('display', 'none'); | ||
+ | $('#hokkaidou-index-wet2').css('display', 'block'); | ||
+ | $('#hokkaidou-index-wet3').css('display', 'none'); | ||
+ | }); | ||
+ | }, | ||
+ | function(){ | ||
+ | $('.hokkaidou-index-image-cross1:not(:animated)').animate({opacity: 'toggle'}, function(){ | ||
+ | $('#hokkaidou-index-wet1').css('display', 'block'); | ||
+ | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
+ | $('#hokkaidou-index-wet3').css('display', 'none'); | ||
+ | }); | ||
+ | } | ||
+ | ); | ||
+ | $('#hokkaidou-index-cross2').hover( | ||
+ | function(){ | ||
+ | $('.hokkaidou-index-image-cross2').animate({opacity: 'toggle'}, function(){ | ||
+ | $('#hokkaidou-index-wet1').css('display', 'none'); | ||
+ | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
+ | $('#hokkaidou-index-wet3').css('display', 'block'); | ||
+ | }); | ||
+ | }, | ||
+ | function(){ | ||
+ | $('.hokkaidou-index-image-cross2:not(:animated)').animate({opacity: 'toggle'}, function(){ | ||
+ | $('#hokkaidou-index-wet1').css('display', 'block'); | ||
+ | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
+ | $('#hokkaidou-index-wet3').css('display', 'none'); | ||
+ | }); | ||
+ | } | ||
+ | ); | ||
+ | $('.hokkaidou-notebook-daily > h3').click(function(e){ | ||
+ | $(this).next('div.hokkaidou-section').slideToggle(); | ||
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 01:30, 27 September 2012