Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions closin/cache/jqt-r109/jqtouch/jqtouch.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ body > .current {
}

.dissolve.out {
-webkit-animation-name: fadeout;
-webkit-animation-name: fadeout;
}


Expand Down Expand Up @@ -278,7 +278,7 @@ body > .current {
-webkit-transform-origin: 100% 50%;
}
.cube.in.reverse {
-webkit-animation-name: cubeinfromleft;
-webkit-animation-name: cubeinfromleft;
-webkit-transform-origin: 100% 50%;
}
.cube.out.reverse {
Expand Down
114 changes: 57 additions & 57 deletions closin/cache/jqt-r109/jqtouch/jqtouch.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/*

_/ _/_/ _/_/_/_/_/ _/
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
_/
_/ _/_/ _/_/_/_/_/ _/
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
_/
_/

Created by David Kaneda <http://www.davidkaneda.com>
Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/>

Special thanks to Jonathan Stark <http://jonathanstark.com/>
and pinch/zoom <http://www.pinchzoom.com/>

(c) 2009 by jQTouch project members.
See LICENSE.txt for license.

$Revision: 109 $
$Date: 2009-10-06 12:23:30 -0400 (Tue, 06 Oct 2009) $
$LastChangedBy: davidcolbykaneda $
Expand All @@ -25,36 +25,36 @@

(function($) {
$.jQTouch = function(options) {

// Set support values
$.support.WebKitCSSMatrix = (typeof WebKitCSSMatrix == "object");
$.support.touch = (typeof Touch == "object");
$.support.WebKitAnimationEvent = (typeof WebKitTransitionEvent == "object");

// Initialize internal variables
var $body,
$head=$('head'),
hist=[],
newPageCount=0,
jQTSettings={},
hashCheck,
currentPage,
orientation,
isMobileWebKit = RegExp(" Mobile/").test(navigator.userAgent),
var $body,
$head=$('head'),
hist=[],
newPageCount=0,
jQTSettings={},
hashCheck,
currentPage,
orientation,
isMobileWebKit = RegExp(" Mobile/").test(navigator.userAgent),
tapReady=true,
lastAnimationTime=0,
touchSelectors=[],
publicObj={},
extensions=$.jQTouch.prototype.extensions,
defaultAnimations=['slide','flip','slideup','swap','cube','pop','dissolve','fade','back'],
animations=[],
defaultAnimations=['slide','flip','slideup','swap','cube','pop','dissolve','fade','back'],
animations=[],
hairextensions='';

// Get the party started
init(options);

function init(options) {

var defaults = {
addGlossToIcon: true,
backSelector: '.back, .cancel, .goback',
Expand All @@ -81,7 +81,7 @@
useFastTouch: true // Experimental.
};
jQTSettings = $.extend({}, defaults, options);

// Preload images
if (jQTSettings.preloadImages) {
for (var i = jQTSettings.preloadImages.length - 1; i >= 0; i--){
Expand Down Expand Up @@ -122,7 +122,7 @@
$.extend(publicObj, fn(publicObj));
}
}

// Add animations
for (var i in defaultAnimations)
{
Expand All @@ -142,7 +142,7 @@
$(jQTSettings.submitSelector).tap(submitParentForm);

$body = $('body');

if (jQTSettings.fullScreenClass && window.navigator.standalone == true) {
$body.addClass(jQTSettings.fullScreenClass + ' ' + jQTSettings.statusBar);
}
Expand All @@ -153,7 +153,7 @@
.bind('orientationchange', updateOrientation)
.trigger('orientationchange')
.submit(submitForm);

if (jQTSettings.useFastTouch && $.support.touch)
{
$body.click(function(e){
Expand All @@ -165,7 +165,7 @@
return false;
}
});

// This additionally gets rid of form focusses
$body.mousedown(function(e){
var timeDiff = (new Date()).getTime() - lastAnimationTime;
Expand All @@ -183,7 +183,7 @@
currentPage = $('body > .current:first');
$('body > .current').removeClass('current');
}

// Go to the top of the "current" page
$(currentPage).addClass('current');
location.hash = $(currentPage).attr('id');
Expand All @@ -192,7 +192,7 @@
dumbLoopStart();
});
}

// PUBLIC FUNCTIONS
function goBack(to) {
// Init the param
Expand Down Expand Up @@ -226,7 +226,7 @@

// Make the animations
animatePages(fromPage, toPage, animation, true);

return publicObj;
} else {
console.error('No pages in history.');
Expand All @@ -235,7 +235,7 @@
}
function goTo(toPage, animation) {
var fromPage = hist[0].page;

if (typeof(toPage) === 'string') {
toPage = $(toPage);
}
Expand Down Expand Up @@ -264,28 +264,28 @@

// PRIVATE FUNCTIONS
function liveTap(e){

// Grab the clicked element
var $el = $(e.target);

if ($el.attr('nodeName')!=='A'){
$el = $el.parent('a');
}
var target = $el.attr('target'),
hash = $el.attr('hash'),

var target = $el.attr('target'),
hash = $el.attr('hash'),
animation=null;

if (tapReady == false || !$el.length) {
console.warn('Not able to tap element.')
return false;
}

if ($el.attr('target') == '_blank' || $el.attr('rel') == 'external')
{
return true;
}

// Figure out the animation to use
for (var i = animations.length - 1; i >= 0; i--){
if ($el.is(animations[i].selector)) {
Expand All @@ -310,7 +310,7 @@
$el.addClass('loading active');
showPageByHref($el.attr('href'), {
animation: animation,
callback: function(){
callback: function(){
$el.removeClass('loading'); setTimeout($.fn.unselect, 250, $el);
},
$referrer: $el
Expand All @@ -324,8 +324,8 @@

// Prepend info to page history
hist.unshift({
page: page,
animation: animation,
page: page,
animation: animation,
id: pageId
});
}
Expand All @@ -336,13 +336,13 @@
console.error('Target element is missing.');
return false;
}

// Collapse the keyboard
$(':focus').blur();

// Make sure we are scrolled up to hide location bar
scrollTo(0, 0);

// Define callback to run after animation completes
var callback = function(event){

Expand All @@ -358,7 +358,7 @@

toPage.trigger('pageAnimationEnd', { direction: 'in' });
fromPage.trigger('pageAnimationEnd', { direction: 'out' });

clearInterval(dumbLoop);
currentPage = toPage;
location.hash = currentPage.attr('id');
Expand Down Expand Up @@ -430,7 +430,7 @@
callback: null,
$referrer: null
};

var settings = $.extend({}, defaults, options);

if (href != '#')
Expand Down Expand Up @@ -510,7 +510,7 @@
if (!$(e.target).is(touchSelectors.join(', ')))
{
var $link = $(e.target).closest('a');

if ($link.length){
$el = $link;
} else {
Expand All @@ -533,16 +533,16 @@
hoverTimeout = setTimeout(function(){
$el.makeActive();
}, 100);

}

// Private touch functions (TODO: insert dirty joke)
function touchmove(e) {

updateChanges();
var absX = Math.abs(deltaX);
var absY = Math.abs(deltaY);

// Check for swipe
if (absX > absY && (absX > 35) && deltaT < 1000) {
$el.trigger('swipe', {direction: (deltaX < 0) ? 'left' : 'right'}).unbind('touchmove touchend');
Expand All @@ -551,11 +551,11 @@
}

clearTimeout(hoverTimeout);
}
}

function touchend(){
updateChanges();

if (deltaY === 0 && deltaX === 0) {
$el.makeActive();
// New approach:
Expand All @@ -575,7 +575,7 @@
$el.unbind('touchmove touchend');
clearTimeout(hoverTimeout);
}

function updateChanges(){
var first = event.changedTouches[0] || null;
deltaX = first.pageX - startX;
Expand All @@ -600,7 +600,7 @@
if ($.isFunction(fn))
{
return this.each(function(i, el){
$(el).bind('swipe', fn);
$(el).bind('swipe', fn);
});
}
}
Expand All @@ -613,7 +613,7 @@
$(this).trigger('tap');
}
}

publicObj = {
getOrientation: getOrientation,
goBack: goBack,
Expand All @@ -624,7 +624,7 @@

return publicObj;
}

// Extensions directly manipulate the jQTouch object, before it's initialized.
$.jQTouch.prototype.extensions = [];
$.jQTouch.addExtension = function(extension){
Expand Down
22 changes: 11 additions & 11 deletions closin/cache/jqt-r109/jqtouch/jqtouch.transitions.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/*

_/ _/_/ _/_/_/_/_/ _/
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
_/
_/ _/_/ _/_/_/_/_/ _/
_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/
_/
_/

Created by David Kaneda <http://www.davidkaneda.com>
Documentation and issue tracking on Google Code <http://code.google.com/p/jqtouch/>

Special thanks to Jonathan Stark <http://jonathanstark.com/>
and pinch/zoom <http://www.pinchzoom.com/>

(c) 2009 by jQTouch project members.
See LICENSE.txt for license.

*/

(function($) {

$.fn.transition = function(css, options) {
return this.each(function(){
var $el = $(this);
Expand All @@ -41,8 +41,8 @@
s.push(i);
}
$el.css({
webkitTransitionProperty: s.join(", "),
webkitTransitionDuration: settings.speed,
webkitTransitionProperty: s.join(", "),
webkitTransitionDuration: settings.speed,
webkitTransitionTimingFunction: settings.ease
});
if (settings.callback) {
Expand Down
Loading