Skip to content

Instantly share code, notes, and snippets.

View aritztg's full-sized avatar
🏠
Working from home

Aritz Tusell aritztg

🏠
Working from home
View GitHub Profile
@aritztg
aritztg / JQuery Plugin bootstrap
Last active October 2, 2015 10:38
jQuery new plugin template
(function ($, window) {
var methods = {
init : function(options) {
return this.each(function (){
// Do things for each element within the passed selector
});
}
public_method: function(options) {
return this.each(function (){
(function ($) {
var data_store_var = 'jq-plugin';
var defaults = {
username: '',
password: '',
value: '',
init: false,
}