This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Ghost Blog: Next & Previous Posts Workaround | |
| */ | |
| // Step 1: Insert at end of default.hbs. Requires jQuery. | |
| $(function(){ | |
| var NextPrevLinksModule = function(){ | |
| var curr, | |
| $prevLink, | |
| $nextLink; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // easing functions http://goo.gl/5HLl8 | |
| Math.easeInOutQuad = function (t, b, c, d) { | |
| t /= d/2; | |
| if (t < 1) { | |
| return c/2*t*t + b | |
| } | |
| t--; | |
| return -c/2 * (t*(t-2) - 1) + b; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rootWin = Ti.UI.createWindow(); | |
| var navGroup = Ti.UI.iPhone.createNavigationGroup({ | |
| window: rootWin | |
| }); | |
| var button = Ti.UI.createButton({ | |
| title: 'Open ListView Tests' | |
| }); | |
| button.addEventListener('click', function() { | |
| openTestsWindow(); | |
| }); |