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
/* | |
* jQuery Mobile Framework : events | |
* Copyright (c) jQuery Project | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
*/ | |
(function($, undefined ) { | |
$.extend( $.support, { | |
orientation: "orientation" in window, |
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> | |
<!-- | |
Created using JS Bin | |
Source can be edited via /uzuzaj/latest/edit | |
--> | |
<!DOCTYPE html> | |
<html> |
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
$.cachedGetScript = $.cacheFactory(function(dfd, url) { | |
$.getScript(url).then(dfd.resolve, dfd.reject); | |
}); |
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
/** | |
* @return {Object.<function>} | |
*/ | |
function Deferred() { | |
/*------------------------------------------- | |
INIT | |
-------------------------------------------*/ | |
var queue = []; | |
/*------------------------------------------- |
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 charset=utf-8> | |
<title></title> | |
<style> | |
html, body {height:100%;} | |
body { | |
background-color:#269; | |
background-image: -webkit-linear-gradient(white 2px, transparent 2px), |
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
// requires jquery.js, tested with reqwest.js with jquery compat mode | |
// uses http://geoplugin.net/json.gp | |
// lowercase arguments are just string placeholder | |
// F = Function placeholder | |
// Z = Cache placeholder | |
;(function(N,g,c,x,y,u,j,F,Z) { | |
F=function(s,e){Z?s(Z):$.ajax({url:'//'+u+'.net/'+j+'.gp',dataType:j+'p',jsonp:j+'callback',error:e,success:function(R){Z={};Z[c]={};Z[c][x]=R[u+'_'+x];Z[c][y]=R[u+'_'+y];s(Z)}})} | |
N[g]=N[g]||{getCurrentPosition:F,watchPosition:F,clearWatch:function(){Z=undefined}} |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Alexander Prinzhorn (@Prinzhorn) https://github.com/Prinzhorn | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
/** | |
* @namespace pera1 | |
*/ | |
;(function(win, doc) { | |
"use strict"; | |
///////////////////////////////////////////////// | |
/** |
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(){ | |
var isGridActive = false; | |
var lineHeight = function(){ | |
return parseInt(window.getComputedStyle(document.body).lineHeight, 10); | |
}; | |
var gridDataURL = function(){ | |
var size = lineHeight(); |
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
$(document).ready(function() { | |
var speedLimit = 4; // higher allows the spin to jump frames faster. More speed. | |
var sensitivity = 10; // higher numbers makes it *less* sensitive, i.e. get to the speed limit slower. | |
var dragCoefficient = 3; // higher numbers = more drag. Slows down faster after a drag-to-spin. % of speed to lose. | |
$.fn.animator = function() { | |
var that = this; | |
that.container = $(this).find('.frame-container'); | |
that.frames = that.container.children(); | |
that.totalFrames = that.frames.length - 1; |
OlderNewer