Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sqndr
Created July 16, 2014 10:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sqndr/5d4ce3596eb7806b1f5d to your computer and use it in GitHub Desktop.
Save sqndr/5d4ce3596eb7806b1f5d to your computer and use it in GitHub Desktop.
jQuery plugin example (js)
(function($){
$.fn.extend({
example: function(options) {
var defaults = {
color: '#000000',
}
var options = $.extend(defaults, options);
return this.each(function(){
});
}
});
})(jQuery);
@keopx
Copy link

keopx commented Jul 16, 2014

Thanks for this reusable drupal jquery example

@sqndr
Copy link
Author

sqndr commented Jul 17, 2014

It's more of a jQuery plugin example; more about that here. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment