Initial Commit N° : 001 - V.4.3.3
This commit is contained in:
commit
238e5d7999
809 files changed
+371149
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
jQuery.cookie=function(e,n,o){if(arguments.length>1&&"[object Object]"!==String(n)){if(o=jQuery.extend({},o),(null===n||void 0===n)&&(o.expires=-1),"number"==typeof o.expires){var t=o.expires,r=o.expires=new Date;r.setDate(r.getDate()+t)}return n=String(n),document.cookie=[encodeURIComponent(e),"=",o.raw?n:encodeURIComponent(n),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=n||{};var i,c=o.raw?function(e){return e}:decodeURIComponent;return(i=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?c(i[1]):null};
|
||||
@@ -0,0 +1 @@
|
||||
!function(e){var t=(e.browser.msie?"paste":"input")+".mask",n=void 0!=window.orientation;e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}},e.fn.extend({caret:function(e,t){if(0!=this.length){if("number"==typeof e)return t="number"==typeof t?t:e,this.each(function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(e,t);else if(this.createTextRange){var n=this.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select()}});if(this[0].setSelectionRange)e=this[0].selectionStart,t=this[0].selectionEnd;else if(document.selection&&document.selection.createRange){var n=document.selection.createRange();e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length}return{begin:e,end:t}}},unmask:function(){return this.trigger("unmask")},mask:function(a,r){if(!a&&this.length>0){var i=e(this[0]),o=i.data("tests");return e.map(i.data("buffer"),function(e,t){return o[t]?e:null}).join("")}r=e.extend({placeholder:"_",completed:null},r);var c=e.mask.definitions,o=[],s=a.length,l=null,u=a.length;return e.each(a.split(""),function(e,t){"?"==t?(u--,s=e):c[t]?(o.push(new RegExp(c[t])),null==l&&(l=o.length-1)):o.push(null)}),this.each(function(){function i(e){for(;++e<=u&&!o[e];);return e}function f(e){for(;!o[e]&&--e>=0;);for(var t=e;u>t;t++)if(o[t]){k[t]=r.placeholder;var n=i(t);if(!(u>n&&o[t].test(k[n])))break;k[t]=k[n]}g(),p.caret(Math.max(l,e))}function h(e){for(var t=e,n=r.placeholder;u>t;t++)if(o[t]){var a=i(t),c=k[t];if(k[t]=n,!(u>a&&o[a].test(c)))break;n=c}}function d(t){var a=e(this).caret(),r=t.keyCode;return y=16>r||r>16&&32>r||r>32&&41>r,a.begin-a.end==0||y&&8!=r&&46!=r||m(a.begin,a.end),8==r||46==r||n&&127==r?(f(a.begin+(46==r?0:-1)),!1):27==r?(p.val(w),p.caret(0,b()),!1):void 0}function v(t){if(y)return y=!1,8==t.keyCode?!1:null;t=t||window.event;var n=t.charCode||t.keyCode||t.which,a=e(this).caret();if(t.ctrlKey||t.altKey||t.metaKey)return!0;if(n>=32&&125>=n||n>186){var c=i(a.begin-1);if(u>c){var s=String.fromCharCode(n);if(o[c].test(s)){h(c),k[c]=s,g();var l=i(c);e(this).caret(l),r.completed&&l==u&&r.completed.call(p)}}}return!1}function m(e,t){for(var n=e;t>n&&u>n;n++)o[n]&&(k[n]=r.placeholder)}function g(){return p.val(k.join("")).val()}function b(e){for(var t=p.val(),n=-1,a=0,i=0;u>a;a++)if(o[a]){for(k[a]=r.placeholder;i++<t.length;){var c=t.charAt(i-1);if(o[a].test(c)){k[a]=c,n=a;break}}if(i>t.length)break}else k[a]==t[i]&&a!=s&&(i++,n=a);return!e&&s>n+1?(p.val(""),m(0,u)):(e||n+1>=s)&&(g(),e||p.val(p.val().substring(0,n+1))),s?a:l}var p=e(this),k=e.map(a.split(""),function(e){return"?"!=e?c[e]?r.placeholder:e:void 0}),y=!1,w=p.val();p.data("buffer",k).data("tests",o),p.attr("readonly")||p.one("unmask",function(){p.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){w=p.val();var e=b();g(),setTimeout(function(){e==a.length?p.caret(0,e):p.caret(e)},0)}).bind("blur.mask",function(){b(),p.val()!=w&&p.change()}).bind("keydown.mask",d).bind("keypress.mask",v).bind(t,function(){setTimeout(function(){p.caret(b(!0))},0)}),b()})}})}(jQuery);
|
||||
+1
@@ -0,0 +1 @@
|
||||
!function(t){function i(t,i){return"function"==typeof t?t.call(i):t}function e(i,e){this.$element=t(i),this.options=e,this.enabled=!0,this.fixTitle()}e.prototype={show:function(){var e=this.getTitle();if(e&&this.enabled){var s=this.tip();s.find(".tipsy-inner")[this.options.html?"html":"text"](e),s[0].className="tipsy",s.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var n,o=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),l=s[0].offsetWidth,a=s[0].offsetHeight,f=i(this.options.gravity,this.$element[0]);switch(f.charAt(0)){case"n":n={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-l/2};break;case"s":n={top:o.top-a-this.options.offset,left:o.left+o.width/2-l/2};break;case"e":n={top:o.top+o.height/2-a/2,left:o.left-l-this.options.offset};break;case"w":n={top:o.top+o.height/2-a/2,left:o.left+o.width+this.options.offset}}2==f.length&&(n.left="w"==f.charAt(1)?o.left+o.width/2-15:o.left+o.width/2-l+15),s.css(n).addClass("tipsy-"+f),s.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+f.charAt(0),this.options.className&&s.addClass(i(this.options.className,this.$element[0])),this.options.fade?s.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):s.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,i=this.$element,e=this.options;this.fixTitle();var t,e=this.options;return"string"==typeof e.title?t=i.attr("title"==e.title?"original-title":e.title):"function"==typeof e.title&&(t=e.title.call(i[0])),t=(""+t).replace(/(^\s*|\s*$)/,""),t||e.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(i){function s(s){var n=t.data(s,"tipsy");return n||(n=new e(s,t.fn.tipsy.elementOptions(s,i)),t.data(s,"tipsy",n)),n}function n(){var t=s(this);t.hoverState="in",0==i.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},i.delayIn))}function o(){var t=s(this);t.hoverState="out",0==i.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},i.delayOut)}if(i===!0)return this.data("tipsy");if("string"==typeof i){var l=this.data("tipsy");return l&&l[i](),this}if(i=t.extend({},t.fn.tipsy.defaults,i),i.live||this.each(function(){s(this)}),"manual"!=i.trigger){var a=i.live?"live":"bind",f="hover"==i.trigger?"mouseenter":"focus",h="hover"==i.trigger?"mouseleave":"blur";this[a](f,n)[a](h,o)}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.elementOptions=function(i,e){return t.metadata?t.extend({},e,t(i).metadata()):e},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(i,e){return function(){var s={ns:e[0],ew:e.length>1?e[1]:!1},n=t(document).scrollTop()+i,o=t(document).scrollLeft()+i,l=t(this);return l.offset().top<n&&(s.ns="n"),l.offset().left<o&&(s.ew="w"),t(window).width()+t(document).scrollLeft()-l.offset().left<i&&(s.ew="e"),t(window).height()+t(document).scrollTop()-l.offset().top<i&&(s.ns="s"),s.ns+(s.ew?s.ew:"")}}}(jQuery);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
jQuery.noConflict(),_msie=!1,_msie_version=0,"undefined"==typeof navigator.userAgentData&&navigator.userAgent.match(/MSIE ([0-9]+)\./)&&(_msie=!0,_msie_version=RegExp.$1);var _disable_save=!1;jQuery(document).ready(function(e){function t(e){return decodeURI((RegExp(e+"=(.+?)(&|$)").exec(location.search)||[,""])[1])}function i(t){var i=t;return this.timer&&clearTimeout(i.timer),this.timer=setTimeout(function(){e(i).parent().prev().find("strong").text(i.value)},100),!0}function o(t,i){var o=e(t).val(),a="style_link_"+i,n=i+"_ggf_previewer";if(o)if(e("."+n).fadeIn(),"none"!==o&&"Select a font"!==o){e("."+a).remove();var s=o.replace(/\s+/g,"+"),r=["Arial","Trebuchet","Times","Tahoma","Helvetica"];-1===r.indexOf(s)&&e("head").append('<link href="https://fonts.googleapis.com/css?family='+s+'" rel="stylesheet" type="text/css" class="'+a+'">'),e("."+n).css("font-family",o+", sans-serif")}else e("."+n).css("font-family",""),e("."+n).fadeOut()}function a(t,i){var o,a=(e(".uploaded-file"),e(this));return t.preventDefault(),o?(o.open(),void 0):(o=wp.media({title:a.data("choose"),button:{text:a.data("update"),close:!1}}),o.on("select",function(){var e=o.state().get("selection").first();o.close(),i.find(".upload").val(e.attributes.url),"image"==e.attributes.type&&i.find(".screenshot").empty().hide().append('<img class="of-option-image" src="'+e.attributes.url+'" />').slideDown("fast"),i.find(".media_upload_button").trigger("off"),i.find(".remove-image").show().removeClass("hide"),i.find(".of-background-properties").slideDown(),s()}),o.open(),void 0)}function n(t){t.find(".remove-image").hide().addClass("hide"),t.find(".upload").val(""),t.find(".of-background-properties").hide(),t.find(".screenshot").slideUp(),t.find(".remove-file").trigger("off"),e(".section-upload .upload-notice").length>0&&e(".media_upload_button").remove(),s()}function s(){e(".remove-image, .remove-file").on("click",function(){n(e(this).parents(".section-upload, .section-media, .slide_body"))}),e(".media_upload_button").off("click").on("click",function(t){a(t,e(this).parents(".section-upload, .section-media, .slide_body"))})}if(e(".fld").on("click",function(){var t=".f_"+this.id;e(t).slideToggle("normal","swing")}),e(".of-color").wpColorPicker(),e("#js-warning").hide(),e(".group").hide(),""!=t("tab")&&e.cookie("of_current_opt","#"+t("tab"),{expires:7,path:"/"}),null===e.cookie("of_current_opt"))e(".group:first-child").fadeIn(200),e("#of-nav li:first-child").addClass("current");else{var r=e("#hooks").html();r=JSON.parse(r),e.each(r,function(t,i){e.cookie("of_current_opt")=="#of-option-"+i&&(e(".group#of-option-"+i).fadeIn(200),e("#of-nav li."+i).addClass("current"))})}e("#of-nav li a").on("click",function(t){t.preventDefault(),e("#of-nav li").removeClass("current"),e(this).parent().addClass("current");var i=e(this).attr("href");return e.cookie("of_current_opt",i,{expires:7,path:"/"}),e(".group").hide(),e(i).fadeIn(200),!1});var d=0;e("#expand_options").on("click",function(){0==d?(d=1,e("#of_container #of-nav").hide(),e("#of_container #content").width("100%"),e("#of_container .group").add("#of_container .group h2").show(),e(this).removeClass("expand"),e(this).addClass("close"),e(this).text("Close")):(d=0,e("#of_container #of-nav").show(),e("#of_container #content").width("75%"),e("#of_container .group").add("#of_container .group h2").hide(),e("#of_container .group:first-child").show(),e("#of_container #of-nav li").removeClass("current"),e("#of_container #of-nav li:first-child").addClass("current"),e(this).removeClass("close"),e(this).addClass("expand"),e(this).text("Expand"),e("#content").removeClass("opt-searching"),e("body").trigger("clear-search-otp"))}),e.fn.center=function(){return this.animate({top:(e(window).height()-this.height()-200)/2+e(window).scrollTop()+"px"},100),this.css("left",e("#of_container").length&&e("#of_container").width()>270?(e("#of_container").width()-270)/2:250),this},e("#of-popup-save").center(),e("#of-popup-reset").center(),e("#of-popup-fail").center(),e(window).on("scroll",function(){e("#of-popup-save").center(),e("#of-popup-reset").center(),e("#of-popup-fail").center()}),e(".of-radio-img-img").on("click",function(){e(this).parent().parent().find(".of-radio-img-img").removeClass("of-radio-img-selected"),e(this).addClass("of-radio-img-selected")}),e(".of-radio-img-label").hide(),e(".of-radio-img-img").show(),e(".of-radio-img-radio").hide(),e(".of-radio-tile-img").on("click",function(){e(this).parent().parent().find(".of-radio-tile-img").removeClass("of-radio-tile-selected"),e(this).addClass("of-radio-tile-selected")}),e(".of-radio-tile-label").hide(),e(".of-radio-tile-img").show(),e(".of-radio-tile-radio").hide(),function(e){styleSelect={init:function(){e(".select_wrapper").each(function(){e(this).prepend("<span>"+e(this).find(".select option:selected").text()+"</span>")}),e("body").on("change",".select",function(){e(this).prev("span").replaceWith("<span>"+e(this).find("option:selected").text()+"</span>")}),e(".select").on(Line truncated
|
||||
Reference in new issue
Block a user