Skip to content

Commit be56cfc

Browse files
author
Wade Penistone
committed
added unversioned salvaged original files
0 parents  commit be56cfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2565
-0
lines changed

Custom_keys(defaultMAP).png

12.7 KB
Loading

README

Whitespace-only changes.

ajax.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div id="get">
2+
<div class="toolbar">
3+
<h1>GET Example</h1>
4+
<a class="back" href="#">AJAX</a>
5+
</div>
6+
<div class="info">
7+
This page was loaded via AJAX.
8+
</div>
9+
<ul class="rounded">
10+
<li><a href="#livetest">Test live events</a></li>
11+
</ul>
12+
</div>
13+
<div id="livetest">
14+
<div class="toolbar">
15+
<h1>Events test</h1>
16+
<a class="back" href="#">AJAX</a>
17+
<a class="button goback" href="#home">Home</a>
18+
</div>
19+
<div class="info">
20+
This is a test of live events.
21+
</div>
22+
</div>

app_icon.png

727 Bytes
Loading

boardbuilder.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<html>
2+
<head manifest="customkeys.manifest">
3+
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0" />
4+
<meta name="apple-mobile-web-app-capable" content="yes" />
5+
<link rel="stylesheet" type="text/css" href="iphone.css" media="only screen and (max-width: 480px)" />
6+
<link rel="apple-touch-icon" href="http://mediacityonline.net/store/Products/product_1/appicon.png" />
7+
<title> Custom Keys app (Board builder) </title>
8+
</head>
9+
<body>
10+
<div id="header">
11+
<div class=leftButton>Menu</div>
12+
<h1> <a href="iphone.html">Custom Keys</a> </h1>
13+
<h2> Build a keyboard specific to an application </h2>
14+
<ul>
15+
<li>
16+
<a href="#"> Application name: </a> <input type="text" />
17+
</li>
18+
<li>
19+
<a href"#"> Board color: </a>
20+
</li>
21+
<li>
22+
<a href="#"> Keys: </a>
23+
</li>
24+
</ul>
25+
<ul>
26+
<li>
27+
<a href="#"> Default layout: </a>
28+
</li>
29+
<li>
30+
<a href="" onclick="testa()" id="logout">Log out </a>
31+
</li>
32+
</ul>
33+
</div>
34+
</body>
35+
</html>

customkeys.manifest

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
CACHE MANIFEST
2+
3+
jqtouch/jqtouch.min.css
4+
jqtouch/jqtouch.min.js
5+
jqtouch/jquery.1.3.2.min.js
6+
themes/jqt/img/back_button.png
7+
themes/jqt/img/back_button_clicked.png
8+
themes/jqt/img/button.png
9+
themes/jqt/img/button_clicked.png
10+
themes/jqt/img/chevron.png
11+
themes/jqt/img/chevron_circle.png
12+
themes/jqt/img/grayButton.png
13+
themes/jqt/img/loading.gif
14+
themes/jqt/img/on_off.png
15+
themes/jqt/img/rowhead.png
16+
themes/jqt/img/toggle.png
17+
themes/jqt/img/toggleOn.png
18+
themes/jqt/img/toolbar.png
19+
themes/jqt/img/whiteButton.png
20+
themes/jqt/theme.min.css
21+
Custom_keys(defaultMAP).png
22+
key_up.png
23+
key_down.png
24+
iphone.js
25+
iphone.css

extensions/database.js

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// javascript database
2+
try {
3+
if (!window.openDatabase) {
4+
alert('not supported');
5+
} else {
6+
var shortName = 'storedinformation';
7+
var version = '1.0';
8+
var displayName = 'Custom keys data';
9+
var maxSize = 65536; // in bytes
10+
var db = openDatabase(shortName, version, displayName, maxSize);
11+
12+
// You should have a database instance in db.
13+
}
14+
} catch(e) {
15+
// Error handling code goes here.
16+
if (e == 2) {
17+
// Version number mismatch.
18+
alert("Invalid database version.");
19+
} else {
20+
alert("Unknown error "+e+".");
21+
}
22+
return;
23+
}
24+
alert("Database is: "+db);
25+
// insert data
26+
function nullDataHandler(transaction, results) { }
27+
28+
function createTables(db)
29+
{
30+
db.transaction(
31+
function (transaction) {
32+
33+
/* The first query causes the transaction to (intentionally) fail if the table exists. */
34+
transaction.executeSql('CREATE TABLE keyboards(id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL DEFAULT "Untitled", icon TEXT NOT NULL DEFAULT "/images/appicon.png");', [], nullDataHandler, errorHandler);
35+
/* These insertions will be skipped if the table already exists. */
36+
transaction.executeSql('insert into keyboards (name, icon) VALUES ("Itunes", "/itunes.png");', [], nullDataHandler, errorHandler);
37+
transaction.executeSql('insert into keyboards (name, icon) VALUES ("QuickTime", "/quicktime.png");', [], nullDataHandler, errorHandler);
38+
transaction.executeSql('insert into keyboards (name, icon) VALUES ("Safari", "/safari.png");', [], nullDataHandler, errorHandler);
39+
}
40+
);
41+
}
42+
createTables(db);
43+
function errorHandler(transaction, error)
44+
{
45+
// error.message is a human-readable string.
46+
// error.code is a numeric error code
47+
alert('Oops. Error was '+error.message+' (Code '+error.code+')');
48+
49+
// Handle errors here
50+
var we_think_this_error_is_fatal = true;
51+
if (we_think_this_error_is_fatal) return true;
52+
return false;
53+
}
54+
55+
function dataHandler(transaction, results)
56+
{
57+
// Handle the results
58+
var string = "icon list contains the following keyboards:\n\n";
59+
for (var i=0; i<results.rows.length; i++) {
60+
// Each row is a standard JavaScript array indexed by
61+
// column names.
62+
var row = results.rows.item(i);
63+
string = string + row['name'] + " (ID "+row['id']+")\n";
64+
}
65+
alert(string);
66+
}
67+
68+
db.transaction(
69+
function (transaction) {
70+
transaction.executeSql("SELECT * from keyboards",
71+
[], // array of values for the ? placeholders
72+
dataHandler, errorHandler);
73+
}
74+
);

extensions/jqt.autotitles.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
3+
_/ _/_/ _/_/_/_/_/ _/
4+
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
5+
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
6+
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
7+
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
8+
_/
9+
_/
10+
11+
Created by David Kaneda <http://www.davidkaneda.com>
12+
Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/>
13+
14+
Special thanks to Jonathan Stark <http://jonathanstark.com/>
15+
and pinch/zoom <http://www.pinchzoom.com/>
16+
17+
(c) 2009 by jQTouch project members.
18+
See LICENSE.txt for license.
19+
20+
*/
21+
22+
(function($) {
23+
if ($.jQTouch)
24+
{
25+
$.jQTouch.addExtension(function AutoTitles(jQT){
26+
27+
var titleSelector='.toolbar h1';
28+
29+
$(function(){
30+
$('body').bind('pageAnimationStart', function(e, data){
31+
if (data.direction === 'in'){
32+
var $title = $(titleSelector, $(e.target));
33+
var $ref = $(e.target).data('referrer');
34+
if ($title.length && $ref){
35+
$title.html($ref.text());
36+
}
37+
}
38+
});
39+
});
40+
41+
function setTitleSelector(ts){
42+
titleSelector=ts;
43+
}
44+
45+
return {
46+
setTitleSelector: setTitleSelector
47+
}
48+
49+
});
50+
}
51+
})(jQuery);

extensions/jqt.floaty.js

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
3+
_/ _/_/ _/_/_/_/_/ _/
4+
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
5+
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
6+
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
7+
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
8+
_/
9+
_/
10+
11+
Created by David Kaneda <http://www.davidkaneda.com>
12+
Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/>
13+
14+
Special thanks to Jonathan Stark <http://jonathanstark.com/>
15+
and pinch/zoom <http://www.pinchzoom.com/>
16+
17+
(c) 2009 by jQTouch project members.
18+
See LICENSE.txt for license.
19+
20+
*/
21+
22+
(function($) {
23+
if ($.jQTouch)
24+
{
25+
$.jQTouch.addExtension(function Floaty(jQT){
26+
27+
$.fn.makeFloaty = function(options){
28+
var defaults = {
29+
align: 'top',
30+
spacing: 20,
31+
time: '.3s'
32+
}
33+
var settings = $.extend({}, defaults, options);
34+
settings.align = (settings.align == 'top') ? 'top' : 'bottom';
35+
36+
return this.each(function(){
37+
var $el = $(this);
38+
39+
$el.css({
40+
'-webkit-transition': 'top ' + settings.time + ' ease-in-out',
41+
'display': 'block',
42+
'min-height': '0 !important'
43+
}).data('settings', settings);
44+
45+
$(document).bind('scroll', function(){
46+
if ($el.data('floatyVisible') === true)
47+
{
48+
$el.scrollFloaty();
49+
}
50+
});
51+
$el.scrollFloaty();
52+
});
53+
}
54+
55+
$.fn.scrollFloaty = function(){
56+
return this.each(function(){
57+
var $el = $(this);
58+
var settings = $el.data('settings');
59+
var wHeight = $('html').attr('clientHeight'); // WRONG
60+
61+
var newY = window.pageYOffset +
62+
((settings.align == 'top') ?
63+
settings.spacing : wHeight - settings.spacing - $el.get(0).offsetHeight);
64+
65+
$el.css('top', newY).data('floatyVisible', true);
66+
});
67+
}
68+
69+
$.fn.hideFloaty = function(){
70+
return this.each(function(){
71+
var $el = $(this);
72+
var oh = $el.get(0).offsetHeight;
73+
74+
$el.css('top', -oh-10).data('floatyVisible', false);
75+
});
76+
}
77+
78+
$.fn.toggleFloaty = function(){
79+
return this.each(function(){
80+
var $el = $(this);
81+
if ($el.data('floatyVisible') === true){
82+
$el.hideFloaty();
83+
}
84+
else
85+
{
86+
$el.scrollFloaty();
87+
}
88+
});
89+
}
90+
});
91+
}
92+
})(jQuery);

extensions/jqt.location.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
3+
_/ _/_/ _/_/_/_/_/ _/
4+
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
5+
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
6+
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
7+
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
8+
_/
9+
_/
10+
11+
Created by David Kaneda <http://www.davidkaneda.com>
12+
Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/>
13+
14+
Special thanks to Jonathan Stark <http://jonathanstark.com/>
15+
and pinch/zoom <http://www.pinchzoom.com/>
16+
17+
(c) 2009 by jQTouch project members.
18+
See LICENSE.txt for license.
19+
20+
*/
21+
22+
(function($) {
23+
if ($.jQTouch)
24+
{
25+
$.jQTouch.addExtension(function Location(){
26+
27+
var latitude, longitude, callback;
28+
29+
function checkGeoLocation() {
30+
return navigator.geolocation;
31+
}
32+
function updateLocation(fn) {
33+
if (checkGeoLocation())
34+
{
35+
callback = fn;
36+
navigator.geolocation.getCurrentPosition(savePosition);
37+
return true;
38+
} else {
39+
console.log('Device not capable of geo-location.');
40+
fn(false);
41+
return false;
42+
}
43+
}
44+
function savePosition(position) {
45+
latitude = position.coords.latitude;
46+
longitude = position.coords.longitude;
47+
if (callback) {
48+
callback(getLocation());
49+
}
50+
}
51+
function getLocation() {
52+
if (latitude && longitude) {
53+
return {
54+
latitude: latitude,
55+
longitude: longitude
56+
}
57+
} else {
58+
console.log('No location available. Try calling updateLocation() first.');
59+
return false;
60+
}
61+
}
62+
return {
63+
updateLocation: updateLocation,
64+
getLocation: getLocation
65+
}
66+
});
67+
}
68+
})(jQuery);

0 commit comments

Comments
 (0)