Drag and throw elements and watch them continue naturally with momentum, respect bounds and optionally snap to a grid. This is the demo seen at http://www.greensock.com/draggable/
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
// xhrPool - async xml requests pool, with sequent callbacks per xhr | |
// | |
$.xhrPool = []; | |
$.xhrPool.callbacks = []; | |
$.xhrPool.starthandlers = []; | |
$.xhrPool.onEnd = function (name, obj, opts) { |
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 underscore = (function(underscore){ | |
// Build several namespaces, globally... | |
var UUID = {}; | |
var Sha1 = function(str){return Sha1.hash(str, true);}; | |
var Utf8 = {}; | |
var extend = function() { | |
var options, name, src, copy, copyIsArray, clone, |
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 lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Getting Started Form</title> | |
<!-- The required Stripe lib --> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<!-- jQuery is used only for this example; it isn't required to use Stripe --> |
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 uuid = function() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
return v.toString(16); | |
}); | |
} |
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 { | |
min-height: 100%; | |
backgroud-src: url('http://29a.ch/slides/2012/webglwater/photos/juska_190113291_291164d962_o.jpg'); | |
background: none; | |
} | |
ul{ | |
display:none; | |
} |
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
/* New navigation */ | |
/* Some stylesheet reset */ | |
#cssmenu > ul { | |
list-style: none; | |
/* margin: -95px 0 0 0;*/ | |
padding: 0; | |
line-height: 1; | |
float: left; | |
display:inline; |
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
angular.module('angular-snap', []) | |
.directive('snap', function() { | |
var parseBoolean = function(attrValue, defaultValue) { | |
var strValue = '' + attrValue; | |
if (strValue === 'true' || | |
strValue === 'yes' || | |
strValue === '1') return true; | |
if (strValue === 'false' || |
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
@import url(http://fonts.googleapis.com/css?family=Coda:400,800); | |
.high { | |
color:yellow; | |
} | |
.lb { | |
line-height: 65px; | |
position: absolute; | |
display: block; |
OlderNewer