Template:Team:HokkaidoU Japan/javascripts
From 2012.igem.org
(Difference between revisions)
(3 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(){ | ||
Line 15: | Line 22: | ||
$('#hokkaidou-index-cross1').hover( | $('#hokkaidou-index-cross1').hover( | ||
function(){ | function(){ | ||
- | $('.hokkaidou-index-image-cross1 | + | $('.hokkaidou-index-image-cross1').animate({opacity: 'toggle'}, function(){ |
$('#hokkaidou-index-wet1').css('display', 'none'); | $('#hokkaidou-index-wet1').css('display', 'none'); | ||
$('#hokkaidou-index-wet2').css('display', 'block'); | $('#hokkaidou-index-wet2').css('display', 'block'); | ||
Line 22: | Line 29: | ||
}, | }, | ||
function(){ | function(){ | ||
- | $('.hokkaidou-index-image-cross1:not(:animated)').animate({opacity: 'toggle', function(){ | + | $('.hokkaidou-index-image-cross1:not(:animated)').animate({opacity: 'toggle'}, function(){ |
$('#hokkaidou-index-wet1').css('display', 'block'); | $('#hokkaidou-index-wet1').css('display', 'block'); | ||
$('#hokkaidou-index-wet2').css('display', 'none'); | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
Line 31: | Line 38: | ||
$('#hokkaidou-index-cross2').hover( | $('#hokkaidou-index-cross2').hover( | ||
function(){ | function(){ | ||
- | $('.hokkaidou-index-image-cross2 | + | $('.hokkaidou-index-image-cross2').animate({opacity: 'toggle'}, function(){ |
$('#hokkaidou-index-wet1').css('display', 'none'); | $('#hokkaidou-index-wet1').css('display', 'none'); | ||
$('#hokkaidou-index-wet2').css('display', 'none'); | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
Line 38: | Line 45: | ||
}, | }, | ||
function(){ | function(){ | ||
- | $('.hokkaidou-index-image-cross2:not(:animated)').animate({opacity: 'toggle', function(){ | + | $('.hokkaidou-index-image-cross2:not(:animated)').animate({opacity: 'toggle'}, function(){ |
$('#hokkaidou-index-wet1').css('display', 'block'); | $('#hokkaidou-index-wet1').css('display', 'block'); | ||
$('#hokkaidou-index-wet2').css('display', 'none'); | $('#hokkaidou-index-wet2').css('display', 'none'); | ||
Line 45: | Line 52: | ||
} | } | ||
); | ); | ||
+ | $('.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