Team:UT Dallas/Notebook

From 2012.igem.org

(Difference between revisions)
Line 153: Line 153:
});
});
$("#book").bind("turned", function(event, page, view) {
$("#book").bind("turned", function(event, page, view) {
-
//alert("Page: "+page);
+
if(page==2)
 +
{
  $('#book').animate({
  $('#book').animate({
left: '112px'
left: '112px'
-
  }, 5000, function() {
+
  }, 500, function() {
// Animation complete.
// Animation complete.
-
  });
+
  });
 +
}
});
});
 +
$("#book").bind("first", function(event) {
 +
$('#book').animate({
 +
left: '-155px'
 +
  }, 500, function() {
 +
// Animation complete.
 +
  });
 +
});
 +
$("#book").bind("last", function(event) {
 +
$('#book').animate({
 +
left: '-155px'
 +
  }, 500, function() {
 +
// Animation complete.
 +
  });
 +
});
});
});
</script>
</script>
</html>
</html>

Revision as of 05:38, 28 September 2012