Fix dòng
•
/
home
/
barbar84
/
public_h...
/
wp-conte...
/
themes
/
Divi
/
js
•
File:
custom.unified.js
•
Dòng [
11
/
56
]:
!function(){var t,e={frameRate:150,animationTime:400,stepSize:80,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},n=e,r=!1,i={x:0,y:0},o=!1,a=document.documentElement,s=[120,120,120],c=37,u=38,l=39,d=40,f=32,p=33,_=34,h=35,v=36;n=e;function g(){if(document.body){var e,i=document.body,s=document.documentElement,c=window.innerHeight,u=i.scrollHeight;if(a=document.compatMode.indexOf("CSS")>=0?s:i,t=i,(e=document.body.classList.contains("et-fb"))&&T("keydown",x),n.keyboardSupport&&!e&&P("keydown",x),o=!0,top!=self)r=!0;else if(u>c&&(i.offsetHeight<=c||s.offsetHeight<=c)){var l=!1;if(s.style.height="auto",setTimeout((function(){l||s.scrollHeight==document.height||(l=!0,setTimeout((function(){s.style.height=document.height+"px",l=!1}),500))}),10),a.offsetHeight<=c){var d=document.createElement("div");d.style.clear="both",i.appendChild(d)}}n.fixedBackground||(i.style.backgroundAttachment="scroll",s.style.backgroundAttachment="scroll")}}var m=[],b=!1,y=+new Date;function w(t,e,r,o){var a,s;if(o||(o=1e3),a=(a=e)>0?1:-1,s=(s=r)>0?1:-1,(i.x!==a||i.y!==s)&&(i.x=a,i.y=s,m=[],y=0),1!=n.accelerationMax){var c=+new Date-y;if(c<n.accelerationDelta){var u=(1+30/c)/2;u>1&&(u=Math.min(u,n.accelerationMax),e*=u,r*=u)}y=+new Date}if(m.push({x:e,y:r,lastX:e<0?.99:-.99,lastY:r<0?.99:-.99,start:+new Date}),!b){var l=t===document.body;A((function i(a){for(var s=+new Date,c=0,u=0,d=0;d<m.length;d++){var f=m[d],p=s-f.start,_=p>=n.animationTime,h=_?1:p/n.animationTime;n.pulseAlgorithm&&(h=L(h));var v=f.x*h-f.lastX>>0,g=f.y*h-f.lastY>>0;c+=v,u+=g,f.lastX+=v,f.lastY+=g,_&&(m.splice(d,1),d--)}l?window.scrollBy(c,u):(c&&(t.scrollLeft+=c),u&&(t.scrollTop+=u)),e||r||(m=[]),m.length?A(i,t,o/n.frameRate+1):b=!1}),t,0),b=!0}}function x(e){var r=e.target,i=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==f;if(/input|textarea|select|embed/i.test(r.nodeName)||r.isContentEditable||e.defaultPrevented||i)return!0;if(E(r,"button")&&e.keyCode===f)return!0;var o=0,a=0,s=S(t),g=s.clientHeight;switch(s==document.body&&(g=window.innerHeight),e.keyCode){case u:a=-n.arrowScroll;break;case d:a=n.arrowScroll;break;case f:a=-(e.shiftKey?1:-1)*g*.9;break;case p:a=.9*-g;break;case _:a=.9*g;break;case v:a=-window.pageYOffset;break;case h:var m=s.scrollHeight-s.scrollTop-g;a=m>0?m+10:0;break;case c:o=-n.arrowScroll;break;case l:o=n.arrowScroll;break;default:return!0}w(s,o,a),e.preventDefault()}var C={};setInterval((function(){C={}}),1e4);var k,O=(k=0,function(t){return t.uniqueID||(t.uniqueID=k++)});function j(t,e){for(var n=t.length;n--;)C[O(t[n])]=e;return e}function S(t){var e=[],n=a.scrollHeight;do{var i=C[O(t)];if(i)return j(e,i);if(e.push(t),n===t.scrollHeight){if(!r||a.clientHeight+10<n)return j(e,document.body)}else if(t.clientHeight+10<t.scrollHeight){var o=getComputedStyle(t,"").getPropertyValue("overflow-y");if("scroll"===o||"auto"===o)return j(e,t)}}while(t=t.parentNode)}function P(t,e,n){window.addEventListener(t,e,n||!1)}function T(t,e,n){window.removeEventListener(t,e,n||!1)}function E(t,e){return(t.nodeName||"").toLowerCase()===e.toLowerCase()}function I(t,e){return Math.floor(t/e)==t/e}var A=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t,e,n){window.setTimeout(t,n||1e3/60)};function M(t){var e,r;return(t*=n.pulseScale)<1?e=t-(1-Math.exp(-t)):(t-=1,e=(r=Math.exp(-1))+(1-Math.exp(-t))*(1-r)),e*n.pulseNormalize}function L(t){return t>=1?1:t<=0?0:(1==n.pulseNormalize&&(n.pulseNormalize/=M(1)),M(t))}var z=/chrome/i.test(window.navigator.userAgent),F=null;"onwheel"in document.createElement("div")?F="wheel":"onmousewheel"in document.createElement("div")&&(F="mousewheel");var H=document.body.className.split(" ").filter((function(t){return"et_smooth_scroll"===t})).length>0;F&&z&&H&&(window.addEventListener(F,(function(e){o||g();var r=e.target,i=S(r),a=document.documentElement.className.split(" ").filter((function(t){return"et-fb-preview--tablet"===t||"et-fb-preview--phone"===t||"et-fb-preview--zoom"===t})).length>0;if(!i||e.defaultPrevented||E(t,"embed")||E(r,"embed")&&/\.pdf/i.test(r.src)||a)return!0;var c=e.wheelDeltaX||0,u=e.wheelDeltaY||0;if(c||u||(u=e.wheelDelta||0),!n.touchpadSupport&&function(t){if(!t)return;return t=Math.abs(t),s.push(t),s.shift(),clearTimeout(void 0),!(I(s[0],120)&&I(s[1],120)&&I(s[2],120))}(u))return!0;Math.abs(c)>1.2&&(c*=n.stepSize/120),Math.abs(u)>1.2&&(u*=n.stepSize/120),w(i,-c,-u),e.preventDefault()}),{passive:!1}),P("mousedown",(function(e){t=e.target})),P("load",g)),window.ET_SmoothScroll={toggleKeydown:function(t){t?P("keydown",x):T("keydown",x)}}}()},function(t,e,n){var r=n(5).Symbol;t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(14),i=n(16);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(2),i=n(12);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(38))},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(73),i=n(77);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(34),i=n(13),o=n(41),a=n(42),s=n(45),c=Math.max;t.exports=function(t,e,n,u){t=i(t)?t:s(t),n=n&&!u?a(n):0;var l=t.length;return n<0&&(n=c(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},function(t,e,n){var r=n(63);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e){var n;(n=jQuery).fn.et_shortcodes_switcher=function(t){return t=n.extend({slides:">div",activeClass:"active",linksNav:"",findParent:!0,lengthElement:"li",useArrows:!1,arrowLeft:"a#prev-arrow",arrowRight:"a#next-arrow",auto:!1,autoSpeed:5e3,slidePadding:"",pauseOnHover:!0,fx:"fade",sliderType:""},t),this.each((function(){var e,r,i,o=jQuery(this).parent().css("position","relative"),a=jQuery(this).css({overflow:"hidden",position:"relative"}),s=o.find(".et-tabs-content-wrapper"),c=s.parent(),u=a.find(".et-tabs-content-wrapper"+t.slides),l=u.length,d=1,f=c.width();if("slide"===t.fx&&(s.width(200*(l+2)+"%"),u.css({width:f,visibility:"visible"}),s.append(u.filter(":first").clone().removeClass().addClass("et_slidecontent_cloned")),s.prepend(u.filter(":last").clone().removeClass().addClass("et_slidecontent_cloned")),s.css("left",-f)),u.filter(":first").css({display:"block"}).addClass("et_shortcode_slide_active"),""!=t.slidePadding&&u.css("padding",t.slidePadding),""!=t.linksNav){var p=jQuery(t.linksNav),_="";(_=t.findParent?p.parent():p).filter(".active").length||_.filter(":first").addClass("active"),p.click((function(){var e;return m(e=(t.findParent?jQuery(this).parent():jQuery(this)).prevAll(t.lengthElement).length+1,e>d?1:-1),!1}))}if(t.useArrows){var h=jQuery(t.arrowRight),v=jQuery(t.arrowLeft);h.click((function(){return w(),!1})),v.click((function(){return x(),!1}))}function g(){""!=_&&(_.siblings().removeClass("active"),_.filter(":eq("+(d-1)+")").addClass("active"))}function m(n,o){if(!u.filter(":animated").length&&(e=u.parent().find(".et_slidecontent").filter(":eq("+(d-1)+")"),d!==n))return e.removeClass("et_shortcode_slide_active"),r=u.parent().find(".et_slidecontent").filter(":eq("+(n-1)+")").addClass("et_shortcode_slide_active"),(d>n||1===d)&&-1===o?("slide"===t.fx&&(a=r.prevAll(".et_slidecontent").length+1,f=!1,e.prev(".et_slidecontent_cloned").length&&(a=0,f=!0),s.animate({left:-c.width()*a},500,(function(){f&&s.css("left",-c.width()*l)}))),"fade"===t.fx&&y()):("slide"===t.fx&&function(t){var n=r.prevAll(".et_slidecontent").length+1,i=!1;e.next(".et_slidecontent_cloned").length&&(n=e.prevAll().length+1,i=!0),s.animate({left:-c.width()*n},500,(function(){i&&s.css("left",-c.width())}))}(),"fade"===t.fx&&y()),d=r.prevAll(".et_slidecontent").length+1,""!=t.linksNav&&g(),"images"!==t.sliderType&&"simple"!==t.sliderType||(i.find("li").removeClass("et_shortcodes_active_control"),i.find("li").eq(d-1).addClass("et_shortcodes_active_control")),!1;var a,f}if(t.auto){interval_shortcodes=setInterval((function(){b||(m(d===l?1:d+1,1),""!=t.linksNav&&g())}),t.autoSpeed);var b=!1}function y(t){e.css({display:"none",opacity:"0"}),r.css({opacity:"0",display:"block"}).animate({opacity:1},700)}function w(){m(d===l?1:d+1,1),""!=t.linksNav&&g()}function x(){m(1===d?l:d-1,-1),""!=t.linksNav&&g()}t.pauseOnHover&&o.hover((function(){b=!0}),(function(){b=!1})),"slide"===t.fx&&n(window).resize((function(){s.find(">div").css({width:c.width()}),s.css("left",-c.width()*d)})),function(){var e=o.find(".et_slidecontent").length,r="";if(e>1&&("images"===t.sliderType||"simple"===t.sliderType)){o.append('<div class="et_shortcodes_controller_nav"><ul class="et_shortcodes_controls"></ul><ul class="et_shortcodes_controls_arrows"><li><a href="#" class="et_sc_nav_next">'+et_shortcodes_strings.next+'<span></span></a></li><li><a href="#" class="et_sc_nav_prev">'+et_shortcodes_strings.previous+"<span></span></a></li></ul></div>"),i=o.find(".et_shortcodes_controls");for(var a=0;a<e;a++)r+='<li><a href="#"></a></li>';i.prepend(r),i.find("li:first").addClass("et_shortcodes_active_control"),i.find("a").click((function(){var t=n(this).parent("li").prevAll().length+1;return t==d||m(t,t>d?1:-1),!1})),o.find(".et_shortcodes_controls_arrows").find("a").click((function(){var t,e=jQuery(this);return e.hasClass("et_sc_nav_next")&&w(),e.hasClass("et_sc_nav_prev")&&x(),i.find("li").removeClass("et_shortcodes_active_control"),t=d-1,i.find("li").eq(t).addClass("et_shortcodes_active_control"),!1}))}else"images"!==t.sliderType&&"simple"!==t.sliderType&&(o.prepend('<ul class="et_shortcodes_mobile_nav"><li><a href="#" class="et_sc_nav_next">'+et_shortcodes_strings.next+'<span></span></a></li><li><a href="#" class="et_sc_nav_prev">'+et_shortcodes_strings.previous+"<span></span></a></li></ul>"),o.find(".et_shortcodes_mobile_nav").find("a").click((function(){var t=jQuery(this);return t.hasClass("et_sc_nav_next")&&w(),t.hasClass("et_sc_nav_prev")&&x(),!1})))}()}))},window.et_shortcodes_init=function(t){var e=void 0!==t?t:n("body"),r=e.find(".pricing-table a.icon-button");$et_tooltip=e.find(".et-tooltip"),$et_tooltip.on("mouseover mouseout",(function(t){"mouseover"==t.type?n(this).find(".et-tooltip-box").stop(!0,!0).animate({opacity:"show",bottom:"25px"},300):n(this).find(".et-tooltip-box").delay(200).animate({opacity:"hide",bottom:"35px"},300)})),$et_learn_more=e.find(".et-learn-more .heading-more"),$et_learn_more.on("click",(function(){n(this).hasClass("open")?n(this).removeClass("open"):n(this).addClass("open"),n(this).parent(".et-learn-more").find(".learn-more-content").animate({opacity:"toggle",height:"toggle"},300)})),e.find(".et-learn-more").not(".et-open").find(".learn-more-content").css({visibility:"visible",display:"none"}),r.each((function(){var t=n(this),e=t.width(),r=t.innerWidth();t.css({width:e,marginLeft:"-"+r/2+"px",visibility:"visible"})})),e.find(".et-tabs-container, .tabs-left, .et-simple-slider, .et-image-slider").each((function(t){var e=n(this).attr("class"),r=/et_sliderauto_speed_(\d+)/g.exec(e),i=/et_sliderauto_(\w+)/g.exec(e),o=/et_slidertype_(\w+)/g.exec(e),a=/et_sliderfx_(\w+)/g.exec(e),s=".et-tabs-content",c={};c.linksNav=n(this).find(".et-tabs-control li a"),c.findParent=!0,c.fx=a[1],c.auto="false"!==i[1],c.autoSpeed=r[1],"simple"===o[1]?((c={}).fx=a[1],c.auto="false"!==i[1],c.autoSpeed=r[1],c.sliderType="simple",s=".et-simple-slides"):"images"===o[1]&&(c.sliderType="images",c.linksNav="#"+n(this).attr("id")+" .controllers a.switch",c.findParent=!1,c.lengthElement="#"+n(this).attr("id")+" a.switch",s=".et-image-slides"),n(this).find(s).et_shortcodes_switcher(c)}))},jQuery(document).ready((function(t){window.et_shortcodes_init()}))},function(t,e){!function(t){"use strict";t.fn.fitVids=function(e){var n={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("div");i.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',r.appendChild(i.childNodes[1])}return e&&t.extend(n,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var r=".fitvidsignore";n.ignore&&(r=r+", "+n.ignore);var i=t(this).find(e.join(","));(i=(i=i.not("object object")).not(r)).each((function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var n=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var i="fitvid"+t.fn.fitVids._count;e.attr("name",i),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},function(t,e){
Delete
Ấn tiếp tục để lưu lại ở lại trang và ấn lưu để lưu lại và quay về List dòng
Function
Delete dòng
Edit by line
Edit text
Download
Information
Rename
Copy
Move
Delete
Chmod
List