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 sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// create tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win = Ti.UI.currentWindow; | |
var alertDialog = Titanium.UI.createAlertDialog({ | |
title : 'System Message', |
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
<project name="calc" default="cleanup"> | |
<description> | |
Ant build script for Titanium Android module calc | |
</description> | |
<property name="modcopy" location="/home/oto/TitaniumStudioWorkspace1/tweetie/modules/android"/> | |
<property name="module.archive" value="org.appcelerator.calc-android-0.1.zip" /> | |
<property name="build.dir" value="${basedir}/build"/> |
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
package eu.erikw.pulltorefresh.sample; | |
import java.util.ArrayList; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.ViewGroup.LayoutParams; | |
import android.widget.ArrayAdapter; | |
import android.widget.LinearLayout; | |
import eu.erikw.PullToRefreshListView; |
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
Titanium.Geolocation.getCurrentPosition(function (e) { | |
if (e.success && e.coords) { | |
webview.evalJS("reloadMap(" + JSON.stringify(e.coords) + ")"); | |
var banksJson = require('mapsAjax').banksJson; | |
banksJson(function (points) { | |
webview.evalJS("putMarker(" + JSON.stringify(points) + ")"); | |
}); | |
} |
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
<html> | |
<head> | |
<title>OpenLayers Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<script src="http://openlayers.org/api/2.12/OpenLayers.js" type="text/javascript"></script> | |
<style type="text/css"> | |
body { | |
background: url("http://itblog.ge/pin/map-background.png") |
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
body { | |
background: url("http://itblog.ge/pin/map-background.png") | |
} | |
* { | |
padding: 0; | |
margin: 0; | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; /* Disable selection/Copy of UIWebView */ | |
} |
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
E/TiJSError(12660): (main) [166,4426] ----- Titanium Javascript Runtime Error ----- | |
E/TiJSError(12660): (main) [0,4426] - In ti:/window.js:284,15 | |
E/TiJSError(12660): (main) [0,4426] - Message: Uncaught TypeError: Object #<ActivityWindow> has no method 'on' | |
E/TiJSError(12660): (main) [1,4427] - Source: this.window.on("open", function () { | |
E/V8Exception(12660): Exception occurred at ti:/window.js:284: Uncaught TypeError: Object #<ActivityWindow> has no method 'on' | |
E/JNIUtil (12660): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! | |
E/JNIUtil (12660): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! | |
E/JNIUtil (12660): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!! | |
I/ActivityManager(24380): Displayed ti.paymobile/ti.actionbar.TiTabActivity: +1s534ms | |
W/TiApplication(12660): (KrollRuntimeThread) [337,4764] Registering module with name already in use. |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Studio - Web, Mobile & FB Apps</title> | |
<link rel="stylesheet" href="less/reset.less" type="text/css" media="all"> | |
<link rel="stylesheet" href="docs/assets/css/bootstrap.css" type="text/css" media="all"> | |
<link rel="stylesheet" href="css/studio.css" type="text/css" media="all"> | |
</head> | |
<body> |
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
a:focus { | |
outline: none; | |
} | |
body > header { | |
margin-left: 0px; | |
background: url("../img/bg_header.png"); | |
border-bottom-style: solid; | |
border-bottom-width: 4px; | |
border-bottom-color: #769af2; |
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
private boolean IsPrime(int n) { | |
int f = n-1; | |
while(f!=1) { | |
int k=n%f; | |
f=f-1; | |
if(k==0) { | |
return false; | |
} | |
} | |
return true; |
OlderNewer