JSFiddle - React, Tailwind, and code Playground
by Cone
CSS
.dark {
}
#overlay {
z-index:1000;
height:100%;
width:100%;
color:red;
background:#333;
position:absolute;
opacity:0.5;
}
JavaScript
(function($){
// Default setting
var defaults = {
color : '#dfdfd',
imgId : 'thumb',
theme : 'dark',
divOver : 'overlay'
};
//actual settings global
var options;
method = {
click : function(color){
$(this).css('color' : color);
}
};
$.fn.diver = function(params){
var options = $.extend({} , defaults , options , params);
// код плагина ...
return this;
};
})(jQuery);