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 MyWindow = require('somewindow'); | |
| MyWindow().open(); |
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
| /*global Ti, alert */ | |
| var SECS = 5; | |
| var URL = 'testservice.js'; | |
| var win = Ti.UI.createWindow({ | |
| fullscreen: false, | |
| navBarHidden: true, | |
| exitOnClose: true | |
| }); |
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
| Ti.UI.setBackgroundColor("#eee"); | |
| // Boot the app | |
| require('core').init(); |
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
| Ti.include('mylogin_window.js'); | |
| Notifications.registerDevice(); |
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
| [INFO] Here On Biz/1.0.1 (2.0.2.GA.2ff31a3) | |
| [DEBUG] loading: /var/mobile/Applications/7863E8CA-4A99-4431-8079-57F1EC245E69/Here On Biz.app/app.js, resource: app_js | |
| [DEBUG] loading: /var/mobile/Applications/7863E8CA-4A99-4431-8079-57F1EC245E69/Here On Biz.app/helperDebugger.js, resource: helperDebugger_js | |
| [INFO] LOG [ total time (ms) 28 mem use 0.015625 ] >>>> START <<<< | |
| [TIMESTAMP] 365565821.493912 0. LOG [ total time (ms) 28 mem use 0.015625 ] >>>> START <<<< | |
| [TIMESTAMP] 365565821.495050 >>>> START <<<< | |
| [INFO] LOG [ total time (ms) 99 mem use -2.4453125 ] Configure Defaults | |
| [TIMESTAMP] 365565821.561562 0. LOG [ total time (ms) 99 mem use -2.4453125 ] Configure Defaults | |
| [TIMESTAMP] 365565821.562647 app.js > Configure Defaults | |
| [INFO] LOG [ total time (ms) 143 mem use -1.94921875 ] PostCheckins |
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
| /** | |
| * Open the login window for user to get access key! | |
| * Once user has access key, will be redirect to the Active tab | |
| * | |
| * @param tabGroup | |
| */ | |
| function showLoginWindow() | |
| { | |
| purgeAll(); | |
| OF.mobile.UI.TabGroup.closeAllWindows(); |
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
| Ti.include( | |
| 'notify.js', | |
| 'settings.js', | |
| 'subscribe.js', | |
| 'unsubscribe.js' | |
| ); | |
| windowFunctions['Push Notifications'] = function () { | |
| var win = createWindow(); | |
| var offset = addBackButton(win); |
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 navigator = require ('ui/navigator').createNavigator(), | |
| mainWindow = require('ui/mainWindow').mainWindow(); | |
| navigator.open( mainWindow ); | |
| setTimeout(function(){ | |
| navigator.close(mainWindow); | |
| //mainWindow = null; | |
| //navigator = null; | |
| }, 15000); |
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 win = Ti.UI.createWindow({ | |
| backgroundColor: 'white' | |
| }); | |
| var data = []; | |
| // populate array with rows | |
| for (var i = 0; i < 40; i++) | |
| { | |
| var row = createRow(i); |
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 win = Ti.UI.createWindow({fullscreen:false}); | |
| //create some simple UI | |
| var textfield = Ti.UI.createTextField({width:300, height:'auto', top:40, left:20, hintText:'enter message'}); | |
| var button = Ti.UI.createButton({title:'Send Notification', width:'auto', top:120, left:20, height:'auto'}); | |
| var label = Ti.UI.createLabel({width:'auto', top:200, left:20, height:'auto', width:200, text:'Message from intent:'}); | |
| var msgLabel = Ti.UI.createLabel({width:'auto', top:240, left:20, height:'auto', width:200, backgroundColor:'lightgrey', text:'---'}); | |
| win.add(textfield); | |
| win.add(button); |