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
exports.init = function() { | |
Ti.Geolocation.purpose = 'Mileage Calculate'; | |
checkGeoPermission(); | |
Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS; | |
// | |
// SET ACCURACY - THE FOLLOWING VALUES ARE SUPPORTED | |
// |
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> | |
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/polymer.js"></script> |
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
<script src="http://www.polymer-project.org/platform.js"></script> | |
<script src="http://www.polymer-project.org/polymer.js"></script> | |
<polymer-element name="bt-sortable-list" attributes="drag name list"> | |
<template> | |
<template repeat="{{list}}" id="repeatTemplate" ref="itemTemplate"> | |
<!-- filled by ref template --> | |
</template> | |
</template> |
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> | |
<meta name="description" content="polymer reusing elements in other elements" /> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.3/platform.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.3/polymer.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</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
<!DOCTYPE html> | |
<html><head> <script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/polymer.js"></script></head> | |
<meta name="description" content="1 component to include different templates and scripts instead of different components" /> | |
<body> | |
<script> | |
var fn1 = function(){ | |
alert("master"); | |
} | |
fn1(); | |
</script> |
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> | |
<meta name="description" content="youtube and iframe api poc" /> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="https://www.youtube.com/iframe_api"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> |
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> | |
<meta name="description" content="adding attributes to polymer model at runtime" /> | |
<script data-require="polymer@*" data-semver="0.5.1" src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.5.1/polymer.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="script.js"></script> | |
</head> |
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> | |
<meta name="description" content="Element based on the awesome Sortable.js library" /> | |
<link data-require="bootstrap-css@3.3.1" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" /> | |
<script data-require="polymer@0.5.1" data-semver="0.5.1" src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.5.1/polymer.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="script.js"></script> | |
</head> |
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
<template wid="true"> | |
<data class="wid" name="screen2" datatype="html" data-group="grp1"> | |
<style>[drawer] { | |
background-color: #B99588; | |
border-right: 1px solid #ccc; | |
} | |
[main] { | |
background-color: #4F7DC9; | |
} |
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> | |
<link rel="stylesheet" href="style.css"> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<!--<script src="script.js"></script>--> | |
<script> | |
var calculateClv = function(a, b, c, d, e, f) { |
OlderNewer