app/js/jquery.twoup.js in storys-0.0.6 vs app/js/jquery.twoup.js in storys-0.1.0

- old
+ new

@@ -54,20 +54,20 @@ return ($.browser.webkit || ($.browser.msie && $.browser.version >= 10)) && (!$.browser.android && !$.browser.iphone); } twoup.columns = function() { if(twoup.enabled()) { - return Math.max(1, Math.floor($(window).width() / (18 * padding_width))); + return Math.max(1, Math.floor($(window).width() / (26 * padding_width))); } else { return 1; } }; twoup.column_width = function() { if(twoup.enabled()) { - return parseInt(content.css("-webkit-column-width") || content.css("-moz-column-width") || content.css("column-width")); + return parseInt(content.css("-webkit-column-width") || content.css("-moz-column-width") || content.css("column-width")); } else { return content.width(); } }; @@ -80,10 +80,10 @@ return Math.ceil($(document).height() / ($(window).height() - 51 - 60)); } }; twoup.bound_page_number = function(number) { - var index = parseInt(number); + var index = parseInt(number); if(isNaN(index) || index < 1) index = 1; if(index > twoup.pages()) index = twoup.pages(); return index; };