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 addrUrl = "http://maps.googleapis.com/maps/api/geocode/json?sensor=true&latlng="+e.coords.latitude+","+e.coords.longitude; | |
| var addrReq = Titanium.Network.createHTTPClient(); | |
| addrReq.open("GET",addrUrl); | |
| addrReq.send(null); | |
| addrReq.onload = function() | |
| { |
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 Cloud = require('ti.cloud'); | |
| var currentSessionMode = Ti.Media.audioSessionCategory; | |
| Ti.Media.audioSessionCategory = Ti.Media.AUDIO_SESSION_CATEGORY_PLAY_AND_RECORD; | |
| var record = false; | |
| var file; | |
| var idSound; | |
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
| /*** | |
| * Appcelerator Titanium example of custom confirm dialog for TableView's delete events. | |
| * Asks to confirm/cancel a delete operation. On cancel restores the deleted row in | |
| * its former position in the table data. | |
| * | |
| * @Copyleft 2013 Patrick De Marta | |
| * @License GNU GPL | |
| */ |
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
| ----------------------------------------------------------------------------------------- | |
| -- | |
| -- main.lua | |
| -- | |
| ----------------------------------------------------------------------------------------- | |
| -- Your code here | |
| local physics = require('physics') | |
| physics.start() |
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> | |
| <header> | |
| </header> | |
| <body> | |
| <div style="position: relative; top: 50px;"> | |
| <input type="text" id="inputWeb"/> | |
| <button id="botonWeb"> | |
| click |
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
| $.index.open(); | |
| $.botonNuevaVentana.addEventListener('click', function(e){ | |
| var ventana2 = Alloy.createController('ventana2').getView(); | |
| ventana2.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
| $.index.open(); | |
| var MapModule = require('ti.map'); | |
| Ti.Geolocation.addEventListener('authorization', function(e) { | |
| Ti.API.info('authorization event:' + JSON.stringify(e)); | |
| }); |
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 ventana = Titanium.UI.createWindow({ | |
| backgroundColor:'green', | |
| top:10, | |
| left:10, | |
| right:10, | |
| bottom:10, | |
| borderRadius:15, | |
| borderColor:'#fff', | |
| borderWidth:3, |
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> | |
| <body> | |
| <h1>10 +</h1> | |
| <input id="input" /> | |
| <button id="boton">click</button> | |
| <script> | |
| var fijo = 10; | |
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 inicio (data){ | |
| var seg = data; | |
| function cronometro(){ | |
| if(seg!=0){ | |
| Titanium.API .info(seg); | |
| seg--; | |
| var m = seg/60; | |
| var s = seg % 60; |