Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
var ua = navigator.userAgent; | var ua = navigator.userAgent; | ||
if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 || ua.indexOf('BlackBerry') > 0 || ua.indexOf('Windows Phone') > 0){ | if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 || ua.indexOf('BlackBerry') > 0 || ua.indexOf('Windows Phone') > 0){ | ||
- | + | $(".accordion").addClass('ac_active'); | |
+ | } | ||
+ | $(".ac_active label").click(function(){ | ||
$(".ac").animate({'height':'auto'},'slow','swing'); | $(".ac").animate({'height':'auto'},'slow','swing'); | ||
$(".accordion label::after").css({'margin-top':'-3px','-webkit-transform':'rotate(-45deg)','transform':'rotate(-45deg)'}); | $(".accordion label::after").css({'margin-top':'-3px','-webkit-transform':'rotate(-45deg)','transform':'rotate(-45deg)'}); | ||
- | |||
}); | }); | ||
</script> | </script> |
Revision as of 18:23, 21 September 2014