Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | (function($){ | ||
var checkwidth = function() { | var checkwidth = function() { | ||
var browserwidth = $(window).width(); | var browserwidth = $(window).width(); | ||
Line 16: | Line 17: | ||
//active要素を指定して開く | //active要素を指定して開く | ||
var no=0; | var no=0; | ||
- | + | accordionItem.find('h3').eq(no).addClass('active').next('.sentence').show(); | |
//click-action | //click-action | ||
Line 32: | Line 33: | ||
}; | }; | ||
}; | }; | ||
- | + | }); | |
$(function(){ | $(function(){ | ||
checkwidth(); | checkwidth(); |
Revision as of 17:08, 21 September 2014