This file contains 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
Ti.UI.setBackgroundColor('#252525'); | |
var device = Ti.Platform.osname; | |
var ng = {}; | |
// start data | |
(function() { | |
ng.data = {}; | |
ng.data.device = Ti.Platform.osname; | |
ng.data.current_window = null; | |
ng.data.globalZ = 1; |
This file contains 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
// data starts @ line 10 | |
// functions starts @line 47 | |
// ui starts @ line 210 | |
Ti.UI.setBackgroundColor('#252525'); | |
var device = Ti.Platform.osname; | |
var ng = {}; | |
// start data |
This file contains 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
function handle_attachments() { | |
// make sure we have new args before firing | |
// prevents handling of the same file every time the app opens, resumes, etc | |
args = Ti.App.getArguments(); | |
var file = args.url; | |
var source = args.source; | |
// make sure we have something to work with | |
if(!file) { | |
return false; |
This file contains 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
/* | |
This goes in your Info.plist | |
it's been a while since I added this functionality so I'm not sure what was added and what was already there, you may already have some pieces of the code. | |
When you tap and hold a mail attachment your app will show up in the list of associated apps and switch to your app when selected. | |
*/ | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> |
This file contains 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 ns = {}; | |
(function(){ | |
ns.ui = {}; | |
ns.ui.createNewWindow = function(url){ | |
return Ti.UI.createWindow({url:url}); | |
} | |
ns.ui.createBaseWindow = function(_args) { |
This file contains 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
function animReset(line) | |
{ | |
play_sound = true; | |
animated = false; | |
startingLine = 0; | |
for(a=0;a<=line;a++) | |
{ | |
if(page1.children[0].children[a].animating) | |
{ |
This file contains 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
// Create all animations | |
bookSlideOut = false; | |
infoSlideOut = false; | |
// home up/down | |
var homeUp = Titanium.UI.createAnimation(); | |
homeUp.bottom = 239; | |
homeUp.duration = 800; | |
var homeDown = Titanium.UI.createAnimation(); |