Template:Team:HokkaidoU Japan/Book/JS
From 2014.igem.org
(Difference between revisions)
(Undo revision 118854 by Shimotuki.liu (talk)) |
|||
(21 intermediate revisions not shown) | |||
Line 839: | Line 839: | ||
} )( jQuery, window ); | } )( jQuery, window ); | ||
- | |||
- | |||
- | |||
</script> | </script> | ||
- | <script | + | <script> |
- | $(function() { | + | $(function(){ |
- | + | var Page = (function() { | |
- | var Page = (function() { | + | |
var config = { | var config = { | ||
Line 852: | Line 848: | ||
$navNext : $( '#bb-nav-next' ), | $navNext : $( '#bb-nav-next' ), | ||
$navPrev : $( '#bb-nav-prev' ), | $navPrev : $( '#bb-nav-prev' ), | ||
- | |||
- | |||
}, | }, | ||
init = function() { | init = function() { | ||
Line 872: | Line 866: | ||
return false; | return false; | ||
} ); | } ); | ||
+ | |||
+ | |||
config.$navPrev.on( 'click touchstart', function() { | config.$navPrev.on( 'click touchstart', function() { | ||
Line 878: | Line 874: | ||
} ); | } ); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
// add swipe events | // add swipe events | ||
$slides.on( { | $slides.on( { | ||
Line 924: | Line 910: | ||
})(); | })(); | ||
- | + | Page.init(); | |
- | + | ||
}); | }); | ||
- | |||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 14:06, 15 October 2014