40 lines
913 B
JavaScript
40 lines
913 B
JavaScript
/*
|
|
* Skeleton V1.1
|
|
* Copyright 2011, Dave Gamache
|
|
* www.getskeleton.com
|
|
* Free to use under the MIT license.
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
* 8/17/2011
|
|
*/
|
|
|
|
|
|
;(function ( $, window, document, undefined ) {
|
|
|
|
var pluginName = 'skeletonTabs',
|
|
defaults = {
|
|
propertyName: "value"
|
|
};
|
|
|
|
function Plugin( element, options ) {
|
|
this.element = element;
|
|
this.options = $.extend( {}, defaults, options) ;
|
|
|
|
this._defaults = defaults;
|
|
this._name = pluginName;
|
|
|
|
this.init();
|
|
}
|
|
|
|
Plugin.prototype.init = function () {
|
|
|
|
};
|
|
|
|
$.fn[pluginName] = function ( options ) {
|
|
return this.each(function () {
|
|
if (!$.data(this, 'plugin_' + pluginName)) {
|
|
$.data(this, 'plugin_' + pluginName, new Plugin( this, options ));
|
|
}
|
|
});
|
|
}
|
|
|
|
})(jQuery, window, document); |