Template:Team:HokkaidoU Japan/Book/JS

From 2014.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 848: Line 848:
$navNext : $( '#bb-nav-next' ),
$navNext : $( '#bb-nav-next' ),
$navPrev : $( '#bb-nav-prev' ),
$navPrev : $( '#bb-nav-prev' ),
-
$navFirst : $( '#bb-nav-first' ),
 
-
$navLast : $( '#bb-nav-last' )
 
},
},
init = function() {
init = function() {
Line 876: Line 874:
} );
} );
-
config.$navFirst.on( 'click touchstart', function() {
 
-
config.$bookBlock.bookblock( 'first' );
 
-
return false;
 
-
} );
 
-
 
-
config.$navLast.on( 'click touchstart', function() {
 
-
config.$bookBlock.bookblock( 'last' );
 
-
return false;
 
-
} );
 
-
 
// add swipe events
// add swipe events
$slides.on( {
$slides.on( {
Line 923: Line 911:
})();
})();
Page.init();
Page.init();
-
$(function() {
+
 
-
(".right-page").( 'click touchstart', function() {
+
-
config.$bookBlock.bookblock( 'next' );
+
-
return false;
+
-
} );
+
});
});
 +
</script>
</script>
</html>
</html>

Latest revision as of 14:06, 15 October 2014