In a change, temporarily this
;(function($, window, document, undefined) {varTiance =function(element, opt) { This. Element =element; This. defaults = { ' str ': ' <p class= ' Ceshi ' >x</p> ', ' Close ': '. Ceshi ', ' Closecss ': {' position ': ' absolute ', ' left ': 0, ' top ': 0, ' width ': ' 100% ', ' height ': ' 100% '} }, This. Options = $.extend ({}, This. defaults, opt); } Tiance.prototype= { ' Repeal ':function(){ var_this = This; return This. Element.each (function(Index, item) {$ (item). CSS (' Position ', ' relative '). Append (_THIS.OPTIONS.STR); $ (_this.options.close). CSS (_THIS.OPTIONS.CLOSECSS). each (function(index, select) {$ (select). On (' Click ',function(EV) {_this.options.func ($ (this). Closest ($ (item)), $ (this)); })})}} $.fn.myplugin=function(options) {varTiance1 =NewTiance ( This, Options); returntiance1.repeal (); }}) (JQuery, window, document);
Small plugins written today