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 { | |
font-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
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
function loadScript(url, callback){ | |
var script = document.createElement("script") | |
script.type = "text/javascript"; | |
if (script.readyState){ //IE | |
script.onreadystatechange = function(){ | |
if (script.readyState == "loaded" || | |
script.readyState == "complete"){ | |
script.onreadystatechange = null; |
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
var a = require('x.js'); | |
var b = require('y.js'); |
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
$rgb = 'rgb('.join(',',array( | |
hexdec(substr($hex,0,2)), | |
hexdec(substr($hex,2,2)), | |
hexdec(substr($hex,4,2)) | |
)).')'; |
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
/* | |
* PhoneGap is available under *either* the terms of the modified BSD license *or* the | |
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. | |
* | |
* Copyright (c) 2005-2010, Nitobi Software Inc. | |
* Copyright (c) 2010, IBM Corporation | |
*/ | |
/** | |
* This class provides access to notifications on the device. |
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
Lawnchair.prototype.allKeys = function(callback) {this.adaptor.allKeys(callback)}, | |
WebkitSQLiteAdaptor.prototype.allKeys = function(callback) { | |
var cb = this.terseToVerboseCallback(callback); | |
var that = this; | |
this.db.transaction(function(t) { | |
var sql = "SELECT id FROM " + that.table + " ORDER BY timestamp DESC"; | |
t.executeSql(sql, [], function(tx, results) { | |
if (results.rows.length == 0 ) { |
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
I/ActivityManager( 53): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.phonegap.www/.www } | |
I/ActivityManager( 53): Start proc com.phonegap.www for activity com.phonegap.www/.www: pid=330 uid=10026 gids={1006, 3003, 1015} | |
I/System.out( 330): Native Geolocation not supported - we're ok | |
I/System.out( 330): PluginManager() | |
I/System.out( 330): PluginManager.addPlugin(com.phonegap.Storage) | |
I/ActivityManager( 53): Displayed activity com.phonegap.www/.www: 1753 ms (total 1753 ms) | |
I/System.out( 330): PluginManager.exec(Device, getDeviceInfo, Device0, [], true) | |
I/System.out( 330): PluginManager.addPlugin(com.phonegap.Device) | |
I/System.out( 330): -- returning result: { status: 0, message: {"platform":"Android","phonegap":"pre-0.92 EDGE","version":"1.6","name":"google_sdk"} } | |
I/System.out( 330): PluginManager.exec(Storage, openDatabase, Storage1, ["Test","1.0","shed",65536], true) |
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
<h1>Result</h1> | |
<p>Peep peep</p> |
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
<YForm> | |
<name>register.dw</name> | |
<legend>Register</legend> | |
<submit_label>Register</submit_label> | |
<InputList> | |
<Input> | |
<name>email</name> | |
<label>Email</label> | |
<type>text</type> |
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
{ window: | |
{ document: | |
{ _attributes: [Object] | |
, _ownerDocument: [Circular] | |
, _children: [Object] | |
, _nodeValue: null | |
, _parentNode: null | |
, _nodeName: '#document' | |
, _readonly: false | |
, style: [Object] |
NewerOlder