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
// http://mooshell.net/tbdZW/ | |
(function(){ | |
var parseDimensions = function(element){ | |
var array = element.get('class').match(/mooshell:[0-9]+:?([0-9]+)?/)[0].split(':'); | |
var dimensions = { height: array[1] }; | |
dimensions.width = (array[2]) ? dimensions.width = array[2] : '100%'; | |
return dimensions; | |
}; |
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 HashEvents = new Class({ | |
Implements: [Options, Events], | |
options: { | |
/* | |
onChange: $empty, | |
*/ | |
delimiter: '&', | |
poll: 200 |
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(){ | |
Class.Mutators.jQuery = function(name){ | |
var self = this; | |
jQuery.fn[name] = function(arg){ | |
var args = Array.prototype.slice.call(arguments, 1); | |
if ($type(arg) == 'string'){ | |
var instance = jQuery(this).data(name); | |
if (instance) instance[arg].apply(instance, args); |
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
Class.Mutators.jQuery = function(name){ | |
var self = this; | |
jQuery.fn[name] = function(arg){ | |
if ($type(arg) == 'string'){ | |
var instance = this.data(name); | |
if($type(instance[arg]) == 'function'){ | |
var returns = instance[arg].apply(instance, Array.slice(arguments, 1)); | |
return (returns == instance) ? this : returns; | |
} | |
if(arguments[1] != null){ |
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
// create a database | |
var myDB = new DB('html5_database_with_mootools',{ | |
adapter: 'html5' | |
/* | |
// gears? | |
adapter: 'gears', | |
// node.js ? | |
adapter: 'MySQL' | |
user: 'root', |
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
class Override < ActiveRecord::Base | |
belongs_to :recruiter, :class_name => "Rep" | |
belongs_to :signer, :class_name => "Rep" | |
end |
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
// app reflects server-side pages | |
var App = { | |
Store: { | |
Index: {}, | |
Product: {}, | |
Category: {}, | |
ContentPage: {} | |
} | |
}; |
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
['pushTest2', function(previous, next, duration, instance){ | |
var distance = instance.element.getStyle('width').toInt(); | |
next.setStyle('left', distance); | |
new Fx.Elements.start({ | |
0: { left: [-distance] }, | |
1: { left: [0] } | |
}); | |
return this; | |
}], |
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
/*! | |
* Copyright yayQuery Peoples, 2010 | |
* | |
* Licensed under the MIT license | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* This plugin is loosely based on Ben Almans BBQ Plugin, but without the extra fluff. Just | |
* plain onhashchange cross-browser support through jQuery Special Event API. | |
* | |
* http://yayquery.com/ - http://github.com/yayquery/ |
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
/* | |
--- | |
script: Browser.Features.extras | |
description: Taken directly from jQuery 1.4.2 and adapted for MooTools. A collection of properties that represent the presence of different browser features or bugs. | |
license: MIT-style license. | |
authors: "The jQuery Core Developers", Ryan Florence (http://ryanflorence.com) |
OlderNewer