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
| <body> | |
| <div id="page1" data-role="page" data-rockncoder-jspage="page1"> | |
| <header data-role="header"> | |
| <h1>RNC Slide Panel</h1> | |
| </header> | |
| <section data-role="content" style="margin: 25px;"> | |
| <div>This app doesn't do anything.</div> | |
| </section> | |
| <!-- panels always start hidden --> | |
| <div id="panel" class="panel" > |
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
| Plugin.prototype = { | |
| init:function () { | |
| var that = this; | |
| this.$ptr.css(this.options.side, this.collapsedX + 'px'); | |
| this.$ptr.css('top', this.options.top); | |
| /* hook the click/tap event */ | |
| this.$ptr.click(function (evt) { | |
| /* only activate if clicking on the panel not something on the panel */ | |
| if (event.target.id === that.$ptr.attr('id')) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="css/jquery.mobile-1.2.0.min.css" /> | |
| <script type='text/javascript' src='libs/jquery-1.8.3.js'></script> | |
| <script type='text/javascript' src="js/custom-script.js"></script> | |
| <script type='text/javascript' src="libs/jquery.mobile-1.2.0.min.js"></script> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" href="css/index.css" /> | |
| <title></title> | |
| </head> | |
| <body> |
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 Calc = {}; | |
| Calc.Logic = function () { | |
| var operator, | |
| displayControl = "", | |
| operatorSet = false, | |
| equalsPressed = false, | |
| accumulator = null, |
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
| /* Application Window Component Constructor */ | |
| function ApplicationWindow() { | |
| /* create component instance */ | |
| var self = Ti.UI.createWindow({ | |
| backgroundColor:'#000000' | |
| }); | |
| return self; | |
| } | |
| /* make constructor function the public component interface */ |
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
| //Application Window Component Constructor | |
| function ApplicationWindow() { | |
| //load component dependencies | |
| var KeyPad = require('ui/common/KeyPad'); | |
| //create component instance | |
| var self = Ti.UI.createWindow({ | |
| backgroundColor:'#000000' | |
| }); | |
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
| function KeyPad() { | |
| var isIOS = (Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad'), | |
| self = Ti.UI.createView({ | |
| width: '80%', | |
| height: '80%', | |
| top: '15%', | |
| left: '10%', | |
| backgroundColor:'#000' | |
| }), | |
| display = Ti.UI.createLabel({ |
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 RocknCoder = RocknCoder || {}; | |
| RocknCoder.Pages = RocknCoder.Pages || {}; | |
| // put all of the page events into one string | |
| RocknCoder.PageEvents = "pagebeforeshow pageshow pagebeforechange pagechange pagebeforehide pagehide"; | |
| // the kernel remains unchanged | |
| RocknCoder.Pages.Kernel = function (event) { | |
| var that = this, | |
| eventType = event.type, | |
| pageName = $(this).attr("data-rockncoder-jspage"); |
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 RocknCoder = RocknCoder || {}; | |
| RocknCoder.Pages = RocknCoder.Pages || {}; | |
| RocknCoder.Pages.Kernel = function (event) { | |
| var that = this, | |
| eventType = event.type, | |
| pageName = $(this).attr("data-rockncoder-jspage"); | |
| if (RocknCoder && RocknCoder.Pages && pageName && RocknCoder.Pages[pageName] && RocknCoder.Pages[pageName][eventType]) { | |
| RocknCoder.Pages[pageName][eventType].call(that); |