Skip to content

Instantly share code, notes, and snippets.

body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
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;
var a = require('x.js');
var b = require('y.js');
$rgb = 'rgb('.join(',',array(
hexdec(substr($hex,0,2)),
hexdec(substr($hex,2,2)),
hexdec(substr($hex,4,2))
)).')';
@jos3000
jos3000 / gist:894102
Created March 30, 2011 09:10
PhoneGap module suggestion
/*
* 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.
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 ) {
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)
<h1>Result</h1>
<p>Peep peep</p>
<YForm>
<name>register.dw</name>
<legend>Register</legend>
<submit_label>Register</submit_label>
<InputList>
<Input>
<name>email</name>
<label>Email</label>
<type>text</type>
{ window:
{ document:
{ _attributes: [Object]
, _ownerDocument: [Circular]
, _children: [Object]
, _nodeValue: null
, _parentNode: null
, _nodeName: '#document'
, _readonly: false
, style: [Object]