Team:UT Dallas/Notebook
From 2012.igem.org
(Difference between revisions)
Line 108: | Line 108: | ||
// Sample using dynamic pages with turn.js | // Sample using dynamic pages with turn.js | ||
- | var numberOfPages = | + | var numberOfPages = 100; |
Line 131: | Line 131: | ||
when: { | when: { | ||
turning: function(e, page, view) { | turning: function(e, page, view) { | ||
- | + | if(page==1 || page==100) | |
+ | $('#book').css('margin-left','-200px') | ||
+ | else | ||
+ | $('#book').css('margin-left','0px') | ||
var range = $(this).turn('range', page); | var range = $(this).turn('range', page); | ||
for (page = range[0]; page<=range[1]; page++) | for (page = range[0]; page<=range[1]; page++) |
Revision as of 18:06, 31 August 2012
Weeks |