Fix dòng
•
/
home
/
barbar84
/
public_h...
/
wp-conte...
/
themes
/
Divi
/
js
•
File:
custom.unified.js
•
Dòng [
55
/
56
]:
function S(t,e,n){var r,i,o,a,s,c=Date.now||(new Date).getTime(),u=function u(){var l=c-a;l<e&&l>=0?r=setTimeout(u,e-l):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=c;var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(s=t.apply(o,i),o=i=null),s}}if(t(".woocommerce .woocommerce-product-gallery").length>0){var P=t(".woocommerce-product-gallery")[0],T=P.outerHTML.replace("data-columns","data-cols");P.outerHTML=T}function E(e){var n,r=t("body"),i=t("#logo"),o=parseInt(i.attr("data-actual-width")),a=parseInt(i.attr("data-actual-height")),s=parseInt(i.attr("data-height-percentage")),c=t("#et-top-navigation"),u=parseInt(c.attr("data-height")),l=parseInt(c.attr("data-fixed-height")),d=t("#main-header"),f=r.hasClass("et_header_style_split"),p=d.hasClass("et-fixed-header"),_=r.hasClass("et_hide_primary_logo"),h=r.hasClass("et_hide_fixed_logo"),v=p?u:l;e=void 0!==e&&e,f&&!window.et_is_vertical_nav&&(e&&(v=u),n=o*((v*(s/100)+22)/a),_&&(p||e)&&(n=0),!h||p||e||(n=0),t(".et_header_style_split .centered-inline-logo-wrap").css({width:n}))}function I(e){var n=t(".et_header_style_slide .et_slide_in_menu_container"),r=t(".et_header_style_slide #page-container, .et_header_style_slide.et_fixed_nav #main-header"),i=t(".et_header_style_slide #main-header"),o=n.hasClass("et_pb_slide_menu_opened"),s=void 0!==e?e:"auto",c=t("body").hasClass("et_boxed_layout"),u=c?parseFloat(t("#page-container").css("margin-left")):0,l=n.innerWidth(),d=t("body").hasClass("rtl");"auto"!==s&&(o&&"open"===s||!o&&"close"===s)||(o?(d?(n.css({left:"-"+l+"px"}),r.css({right:"0"})):(n.css({right:"-"+l+"px"}),r.css({left:"0"})),c&&a&&(d?i.css({right:u+"px"}):i.css({left:u+"px"})),setTimeout((function(){n.css({display:"none"})}),700)):(n.css({display:"block"}),setTimeout((function(){if(d?(n.css({left:"0"}),r.css({right:"-"+(l-u)+"px"})):(n.css({right:"0"}),r.css({left:"-"+(l-u)+"px"})),c&&a){var t=0>l-2*u?Math.abs(l-2*u):"-"+(l-2*u);t<l&&(d?i.css({right:t+"px"}):i.css({left:t+"px"}))}}),50)),t("body").toggleClass("et_pb_slide_menu_active"),n.toggleClass("et_pb_slide_menu_opened"))}function A(){if(a&&!(980>=parseInt(b.width()))){var e=parseInt(t("#main-header").innerHeight());t("html, body").animate({scrollTop:t("form.checkout").offset().top-100-e},1e3)}}function M(){var e=t(".et_header_style_fullscreen .et_slide_in_menu_container"),n=e.find(".et_slide_menu_top").innerHeight();e.toggleClass("et_pb_fullscreen_menu_opened"),t("body").toggleClass("et_pb_fullscreen_menu_active"),L(),e.hasClass("et_pb_fullscreen_menu_opened")?(e.addClass("et_pb_fullscreen_menu_animated"),e.css({"padding-top":n+20})):setTimeout((function(){e.removeClass("et_pb_fullscreen_menu_animated")}),1e3)}function L(t){if(l){var n=jQuery(".et_header_style_fullscreen .et_slide_in_menu_container.et_pb_fullscreen_menu_opened");if(n.length>0){var r=jQuery(e).height();r-=parseInt(n.css("padding-top"),10),n.closest(".admin-bar").length>0&&(r-=32),n.find(".et_pb_fullscreen_nav_container").css("max-height",r)}}}if(j.length>0&&t(".shop_table.cart").length>0&&t(document.body).on("updated_wc_div",(function(){var e,n=0;t(".shop_table.cart").find(".product-quantity input").each((function(){n+=parseInt(t(this).val())})),e=(e=1===n?DIVI.item_count:DIVI.items_count).replace("%d",n),j.find("span").text(e)})),document.addEventListener("DOMContentLoaded",(function(){var O=t("ul.nav, ul.menu"),j=(t("#et_search_icon"),t("body").hasClass("et_is_customize_preview"));function P(){var e=t("#main-header > .container > .logo_container"),n=t(".centered-inline-logo-wrap > .logo_container"),r=C.children("nav").children("ul").children("li").size(),i=Math.round(r/2)-1,o=window.innerWidth||b.width();o>980&&e.length&&t("body").hasClass("et_header_style_split")&&(t('<li class="centered-inline-logo-wrap"></li>').insertAfter(C.find("nav > ul >li:nth("+i+")")),e.appendTo(C.find(".centered-inline-logo-wrap"))),o<=980&&n.length&&(n.prependTo("#main-header > .container"),t("#main-header .centered-inline-logo-wrap").remove())}function T(){var e=t("body");if(e.hasClass("et_boxed_layout")&&e.hasClass("et_vertical_fixed")&&e.hasClass("et_vertical_right")){var n=parseFloat(t("#page-container").css("margin-right"));n=0>(n+=parseFloat(t("#et-main-area").css("margin-right"))-225)?0:n,t("#main-header").addClass("et_vertical_menu_set").css({left:"",right:n})}}window.et_pb_init_nav_menu(O),(x.length&&!window.et_is_vertical_nav||j)&&(P(),t(window).resize((function(){P()}))),window.et_is_vertical_nav&&(t("#main-header").height()<t("#et-top-navigation").height()&&t("#main-header").height(t("#et-top-navigation").height()+t("#logo").height()+100),T()),window.et_calculate_header_values=function(){var e=t("#top-header"),n=e.length&&e.is(":visible")?parseInt(e.innerHeight()):0,i=t("#wpadminbar").length?parseInt(t("#wpadminbar").innerHeight()):0,o=t(".et_header_style_slide .et_slide_in_menu_container"),a=t("body").hasClass("rtl");if(w=parseInt(t("#main-header").innerHeight())+n,r=(w<=90?w-29:w-56)+i,n+i,o.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(a?o.css({left:"-"+parseInt(o.innerWidth())+"px",display:"none"}):o.css({right:"-"+parseInt(o.innerWidth())+"px",display:"none"}),t("body").hasClass("et_boxed_layout")))if(a){var s=_.css("margin-right");p.css({right:s})}else{s=_.css("margin-left");p.css({left:s})}};var I=t("#commentform");if(et_pb_form_placeholders_init(I),I.submit((function(){et_pb_remove_placeholder_text(I)})),et_duplicate_menu(t("#et-top-navigation ul.nav"),t("#et-top-navigation .mobile_nav"),"mobile_menu","et_mobile_menu"),et_duplicate_menu("",t(".et_pb_fullscreen_nav_container"),"mobile_menu_slide","et_mobile_menu","no_click_event"),t("ul.et_disable_top_tier").length){var A=t("ul.et_disable_top_tier > li > ul").prev("a");A.attr("href","#"),A.on("click",(function(t){t.preventDefault()}));var z=t("ul#mobile_menu > li > ul").prev("a");z.attr("href","#"),z.on("click",(function(t){t.preventDefault()}))}if(t("#et-secondary-nav").length&&t("#et-top-navigation #mobile_menu").append(t("#et-secondary-nav").clone().html()),t(".et_slide_in_menu_container").length){var F=t(".et_slide_in_menu_container").find(".menu-item-has-children > a");F.length&&F.append('<span class="et_mobile_menu_arrow"></span>')}function H(n){setTimeout((function(){var n=0,r=t("body"),i=l?e.jQuery("#wpadminbar"):t("#wpadminbar"),o=e.jQuery("html"),a=t("#top-header"),s=o.is(".et-fb-preview--zoom:not(.et-fb-preview--desktop)");if(s=(s=s||o.is(".et-fb-preview--tablet"))||o.is(".et-fb-preview--phone"),i.length&&!Number.isNaN(i.innerHeight())){var c=parseFloat(i.innerHeight());n+=l&&s?0:c}a.length&&a.is(":visible")&&(n+=a.innerHeight());var u=r.hasClass("et_fixed_nav"),d=!u&&r.hasClass("et_transparent_nav")&&r.hasClass("et_secondary_nav_enabled");window.et_is_vertical_nav||!u&&!d||t("#main-header").css("top",n)}),n)}function W(){var e=t("body"),n=t(document).height(),r=t(window).height()+w+200;e.hasClass("et_vertical_nav")||(e.hasClass("et_hide_nav")||e.hasClass("et_hide_nav_disabled")&&e.hasClass("et_fixed_nav"))&&(n>r?(e.hasClass("et_hide_nav_disabled")&&(e.addClass("et_hide_nav"),e.removeClass("et_hide_nav_disabled")),t("#main-header").css("transform","translateY(-"+w+"px)"),t("#top-header").css("transform","translateY(-"+w+"px)")):(t("#main-header").css({transform:"translateY(0)",opacity:"1"}),t("#top-header").css({transform:"translateY(0)",opacity:"1"}),e.removeClass("et_hide_nav"),e.addClass("et_hide_nav_disabled")),R())}function B(t,e){var n={};n[e]=t.css(e),t.attr({"data-fix-page-container":"on"}).data({fix_page_container_style:n})}function D(t,e){if(void 0===t)return!1;var n=t.split("|");return void 0!==n[e]&&n[e]}function R(){var e,r,o=parseInt(b.width()),s=t("#top-header"),c=n(),l=s.length&&s.is(":visible")?parseInt(s.innerHeight()):0,d=0,f=p.clone().addClass("et-disabled-animations main-header-clone").css({opacity:0,position:"fixed",top:"auto",right:0,bottom:0,left:0}).appendTo(t("body"));if(t("body").hasClass("et-bfb")||t('*[data-fix-page-container="on"]').each((function(){var e=t(this),n=e.data();n&&n.fix_page_container_style&&e.css(n.fix_page_container_style)})),o>980&&(!p.attr("data-height-loaded")||t("body").is(".et-fb"))){var y=0;p.hasClass("et-fixed-header")?(f.removeClass("et-fixed-header"),y=f.height(),f.addClass("et-fixed-header")):y=p.height(),p.attr({"data-height-onload":parseInt(y),"data-height-loaded":!0})}if(o<=980?(e=parseInt(p.innerHeight())+l-(t("body").hasClass("et-fb")?0:1),window.et_is_transparent_nav&&!c.length&&(e+=58)):(e=parseInt(p.attr("data-height-onload"))+l,window.et_is_transparent_nav&&!window.et_is_vertical_nav&&h.length&&(e+=58),d=f.height()),u){var x=parseInt(C.data("height"))-parseInt(C.data("fixed-height"));d=parseInt(p.data("height-onload"))-x}p.attr({"data-fixed-height-onload":d});var k=t(".et_fixed_nav.et_transparent_nav.et-db.et_full_width_page #left-area > .woocommerce-notices-wrapper");if(k.length>0&&"yes"!==k.attr("data-position-set")){var O=d;0===O&&p.attr("data-height-onload")&&(O=p.attr("data-height-onload")),k.css("marginTop",parseFloat(O)),k.animate({opacity:"1"}),k.attr("data-position-set","yes")}var j=t(document).height(),S=t(window).height()+w+200>j,P=parseInt(t(window).width())>980&&u;if(!window.et_is_transparent_nav||window.et_is_vertical_nav||P&&!S)a&&_.css("paddingTop",e);else{t("body").hasClass("et-bfb")||c.addClass("et_pb_section_first");var T=c.length,E=T&&m.length,I=i.length&&g.length,A=i.length&&0===g.length,M=E&&t(".et-l--body").length,L=c.is(".et_pb_fullwidth_section"),z=o<=980&&h.length,F=t("body").hasClass("single-project");if(M||!E||A&&L||F)if(L){var W=c.children(".et_pb_module:visible:first");if(A&&L&&o>980&&(e-=58),W.is(".et_pb_slider")){var R=W.find(".et_pb_slide_image"),N=W.find(".et_pb_slide"),V=W.find(".et_pb_slide .et_pb_container"),q=0-parseInt(R.height())/2,$=W.find(".et-pb-slider-arrows a"),Q=$.height();B(N,"paddingTop"),N.css({paddingTop:e}),V.css({"min-height":""}),B(R,"marginTop"),R.css({marginTop:q}),B($,"marginTop"),$.css({marginTop:e/2-Q/2});var U=0;W.find(".et_pb_slide").each((function(){var e=t(this),n=e.find(".et_pb_container");e.show(),n.css({"min-height":""});var r=n.innerHeight();U<r&&(U=r),e.is(':not(".et-pb-active-slide")')&&e.hide()})),B(V,"min-height"),V.css({"min-height":U})}else if(W.is(".et_pb_fullwidth_header")){W.removeAttr("style");var Y=parseInt(W.css("paddingTop"));B(W,"paddingTop"),W.css({paddingTop:e+Y})}else if(W.is(".et_pb_fullwidth_portfolio"))B(W,"paddingTop"),W.css({paddingTop:e});else if(W.is(".et_pb_map_container")){var Z=W.find(".et_pb_map");Z.css({height:""}),W.find(".et_pb_map").css({height:e+parseInt(Z.css("height"))}),W.addClass("et_beneath_transparent_nav")}else if(W.is(".et_pb_menu")||W.is(".et_pb_fullwidth_menu"))B(W,"marginTop"),W.css({marginTop:e});else if(W.is(".et_pb_fullwidth_code")){var K=W;K.css({paddingTop:""});var G=parseInt(K.css("paddingTop"));B(K,"paddingTop"),K.css({paddingTop:e+G})}else if(W.is(".et_pb_post_title")){B(W,"paddingTop"),W.css({paddingTop:e+50})}else W.length||(r=parseFloat(c.css("paddingTop")),B(c,"paddingTop"),c.data("is_hide_nav")||c.css({paddingTop:r+e}),clearTimeout(window.et_fallback_transparent_adjustment_timeout),window.et_fallback_transparent_adjustment_timeout=setTimeout((function(){var n=t("body").hasClass("et_hide_nav")&&"matrix(1, 0, 0, 1, 0, 0)"!==t("#main-header").css("transform");n?c.css({paddingTop:""}):c.css({paddingTop:r+e}),c.data("is_hide_nav",n)}),300))}else if(T){c.css({paddingTop:""});var X,J=D(c.attr("data-padding"),0),tt=D(c.attr("data-padding-tablet"),0),et=D(c.attr("data-padding-phone"),0);J||tt||et?(o>980&&J?c.css({paddingTop:J}):o>767&&tt?c.css({paddingTop:tt}):et&&c.css({paddingTop:et}),X=parseInt(c.css("paddingTop")),c.css({paddingTop:e+X})):(r=e+parseInt(c.css("paddingTop")),B(c,"paddingTop"),c.css({paddingTop:r}))}else z?h.css({paddingTop:e}):t("#main-content .container:first-child").css({paddingTop:e});else h.css({paddingTop:""}),o<980&&(e+=40),L&&c.css({paddingTop:"0"}),I?v.css({paddingTop:e}):A?(B(c,"paddingTop"),c.css({paddingTop:""}),c.css({paddingTop:"calc("+(e-58)+"px + "+c.css("paddingTop")+")"})):(B(h,"paddingTop"),h.css({paddingTop:e}));t("#et_fix_page_container_position").length||t("<style />",{id:"et_fix_page_container_position",text:"#page-container{ padding-top: 0 !important;}"}).appendTo("head");var nt=t(".et_pb_section:visible:first"),rt=nt.find(".et_pb_row:visible:first"),it=nt.find(".et_pb_module:visible:first"),ot=nt.hasClass("et_pb_section_parallax"),at=rt.hasClass("et_pb_section_parallax"),st=it.hasClass("et_pb_section_parallax");(ot||at||st)&&t(window).trigger("resize.etTrueParallaxBackground")}f.remove(),H(0),t(document).trigger("et-pb-header-height-calculated")}window.et_change_primary_nav_position=H,window.et_fix_page_container_position=R,o.data("previous-width",parseInt(o.width()));var N=S((function(){R(),"function"==typeof et_fix_fullscreen_section&&et_fix_fullscreen_section()}),200);function V(){if(a&&et_calculate_header_values(),setTimeout((function(){R()}),0),window.et_is_minified_js&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&t(window).trigger("resize"),window.hasOwnProperty("et_location_hash")&&""!==window.et_location_hash&&function(){var e=window.et_location_hash.replace(/(\|)/g,"\\$1");if(0!==t(e).length){var n=t(e+" .et_pb_map_container"),r=n.children(".et_pb_map"),i=t(e);void 0!==window.et_location_hash_style&&i.css("display",window.et_location_hash_style);var o=(void 0!==i.offset().top?i.offset().top:0)>4e3?1600:800;n.length&&google.maps.event.trigger(r[0],"resize"),i.parents().hasClass("commentlist")&&t(".reviews_tab").click().animate({scrollTop:i.offset().top},700),setTimeout((function(){et_pb_smooth_scroll(i,!1,o,"swing"),setTimeout((function(){et_pb_smooth_scroll(i,!1,150,"linear")}),o+25)}),700)}}(),d&&!window.et_is_vertical_nav){var e=parseInt(t("#logo").width());c?C.css("padding-right",e+30):C.css("padding-left",e+30)}if(t("p.demo_store").length&&t("p.demo_store").is(":visible")&&(t("#footer-bottom").css("margin-bottom",t("p.demo_store").innerHeight()),t(".woocommerce-store-notice__dismiss-link").click((function(){t("#footer-bottom").css("margin-bottom","")}))),t.fn.waypoint){var n;if(s&&(n=t("#main-content")).waypoint({handler:function(e){E(),"down"===e?t("#main-header").addClass("et-fixed-header"):t("#main-header").removeClass("et-fixed-header")}}),a){var i=(k.length>0?k.offset().top:0)<=(t("#wpadminbar").length?t("#wpadminbar").height():0);i&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&k.length?(n=k.is(".et_pb_fullwidth_section")?k.children(".et_pb_module:visible:first"):k.find(".et_pb_row:visible:first")).length||(n=t(".et-l .et_pb_module:visible:first")):n=i&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&h.length?t("#content-area"):t("#main-content");var o=!0;setTimeout((function(){o=!1}),0),n.waypoint({offset:function(){if(y&&(setTimeout((function(){et_calculate_header_values()}),200),y=!1),u)return r-w-200;var t=n.offset();return t.top<r&&(r=0-(r-t.top)),r},handler:function(e){if(E(),"down"===e){if(o&&0===b.scrollTop())return;if(p.addClass("et-fixed-header"),_.addClass("et-animated-content"),f.addClass("et-fixed-header"),!u&&!window.et_is_transparent_nav&&!t(".mobile_menu_bar_toggle").is(":visible")){var n,r,i,a=f.length?parseInt(f.height()):0;n=p.clone().addClass("et-fixed-header, et_header_clone").css({transition:"none",display:"none"}),r=parseInt(n.prependTo("body").height()),window.et_is_vertical_nav||(i=parseInt(_.css("padding-top"))-r-a+1,_.css("margin-top",-i)),t(".et_header_clone").remove()}}else i=1,p.removeClass("et-fixed-header"),f.removeClass("et-fixed-header"),_.css("margin-top",-i);window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionStart",{detail:{marginTop:-i}})),setTimeout((function(){Z(),window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionEnd",{detail:{marginTop:-i}}))}),400)}})}u&&W()}}t(window).resize((function(){var n,r,i=parseInt(b.width()),s=o.length>0,c=s&&parseInt(o.data("previous-width"))||0,d=o.css("width"),f=void 0!==d?"%"!==d.substr(-1,1):"",h=s?f?parseInt(o.width()):parseInt((parseInt(o.width())/100).toFixed(0))*i:0,v=o.length&&c!==h,g=t(".et_slide_in_menu_container"),m=l?e.jQuery("#wpadminbar"):t("#wpadminbar"),y=t("body").hasClass("rtl");(a&&v&&(N(),o.data("previous-width",h)),u&&W(),(m.length&&a&&i>=740&&i<=782||l)&&(et_calculate_header_values(),H(0)),Z(),g.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(y?g.css({left:"-"+parseInt(g.innerWidth())+"px",right:"unset"}):g.css({right:"-"+parseInt(g.innerWidth())+"px"}),t("body").hasClass("et_boxed_layout")&&a&&(y?(n=_.css("margin-right"),p.css({right:n})):(n=_.css("margin-left"),p.css({left:n})))),g.length&&t("body").hasClass("et_pb_slide_menu_active"))&&(t("body").hasClass("et_boxed_layout")?(n=parseFloat(_.css("margin-left")),_.css({left:"-"+(parseInt(g.innerWidth())-n)+"px"}),a&&(r=0>parseInt(g.innerWidth())-2*n?Math.abs(g.innerWidth()-2*n):"-"+(g.innerWidth()-2*n))<parseInt(g.innerWidth())&&p.css({left:r+"px"})):y?t("#page-container, .et_fixed_nav #main-header").css({right:"-"+parseInt(g.innerWidth())+"px"}):t("#page-container, .et_fixed_nav #main-header").css({left:"-"+parseInt(g.innerWidth())+"px"}));if(g.length&&t("body").hasClass("et_header_style_fullscreen")){var w=parseInt(g.find(".et_slide_menu_top").innerHeight());g.css({"padding-top":w+20})}T()})),l&&jQuery(".et_header_style_fullscreen .et_slide_in_menu_container").length>0&&jQuery(window).resize(L),t(window).ready((function(){t.fn.fitVids&&t("#main-content").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})})),t('a[href*="#"]:not([href="#"]), .mobile_nav').on("click",(function(e){var n=t(this),r=n.closest(".et_smooth_scroll_disabled").length,i=n.closest(".woocommerce-tabs").length&&n.closest(".tabs").length,o=n.closest(".tt_tabs_navigation").length,a=n.closest(".eab-shortcode_calendar-navigation-link").length,s=n.closest(".view-cart-lnk").length,c=n.hasClass("acomment-reply"),u=n.hasClass("woocommerce-review-link"),l=r||s||i||a||c||u||o;if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname&&!l){var d=t(this.hash);if(n.hasClass("mobile_nav")&&(d=t("#"+e.target.hash.slice(1))),(d=d.length?d:t("[name="+this.hash.slice(1)+"]")).length)return t(this).parents().hasClass("widget_recent_reviews")&&t(".reviews_tab").click().animate({scrollTop:d.offset().top},700),n.closest(".et_pb_fullscreen_menu_opened").length>0&&M(),setTimeout((function(){et_pb_smooth_scroll(d,!1,800)}),0),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&t(window).width()>980&&setTimeout((function(){et_pb_smooth_scroll(d,!1,40,"linear")}),780),!1}})),t('a[href*="#"]:not([href="#"])').each((function(e,n){t(n).attr("data-et-has-event-already","true")}));var q,$,Q,U=function(){var e,n=t(".et-l--post"),r=t(".et-l--body .et_pb_section").not(".et-l--post .et_pb_section");return e=l?n.find(".et-fb-post-content > .et_pb_section"):n.find(".et_builder_inner_content > .et_pb_section"),0===r.length||e.length>1?e:r};function Y(){t(".et_search_form_container").hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_hidden et_pb_no_animation").addClass("et_pb_menu_visible"),t(".et_search_form_container").removeClass("et_pb_search_visible et_pb_no_animation").addClass("et_pb_search_form_hidden et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),t(".et_search_form_container").addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3))}function Z(){var e=t(".et_search_form_container"),n=t("body");if(e.hasClass("et_pb_search_visible")){var r=t("#main-header").innerHeight(),i=t("#top-menu").width(),o=t("#top-menu li a").css("font-size");e.css({height:r+"px"}),e.find("input").css("font-size",o),n.hasClass("et_header_style_left")?e.find("form").css("max-width",i+60):e.css("max-width",i+60)}}function K(){t(window).off("scroll",window.et_pb_window_side_nav_scroll_init),t("#main-content .et_pb_side_nav").off("click",".et_pb_side_nav a"),t("#main-content .et_pb_side_nav").remove(),et_pb_side_nav_page_init()}window.et_pb_window_side_nav_scroll_init=function(){if(!0!==window.et_calculating_scroll_position&&!1!==window.et_side_nav_links_initialized){var e=U();window.et_calculating_scroll_position=!0;var n,r=t(".et-l--header").length||t(".et-l--body").length||!t("#main-header").length?0:-90,i=t("body").hasClass("et_fixed_nav")?20:r,o=t("#top-header").length>0?parseInt(t("#top-header").height()):0,a=t("#main-header").length>0?parseInt(t("#main-header").height()):0;t("#wpadminbar").length>0&&parseInt(t(window).width())>600&&(i+=parseInt(t("#wpadminbar").outerHeight())),n=window.et_is_vertical_nav?o+i+60:o+a+i;for(var s=parseInt(t(window).height()),c=parseInt(t(window).scrollTop()),u=s+c===parseInt(t(document).height()),l=t(".side_nav_item a").length-1,d=0;d<=l;d++){var f=e.eq(d),p=void 0===f.offset(),_=t(".side_nav_item a.active").parent().index(),h=null,v=!1===p?f.offset().top-n:0;p?h=0:u?h=l:c>=v&&(h=d),null!==h&&h!==_&&(t(".side_nav_item a").removeClass("active"),t("a#side_nav_item_id_"+h).addClass("active"))}window.et_calculating_scroll_position=!1}},window.et_pb_side_nav_page_init=function(){var e=U(),n=e.length,r=parseInt((20*n+40)/2);window.et_side_nav_links_initialized=!1,window.et_calculating_scroll_position=!1,n>1&&t(".et_pb_side_nav_page").length&&(t("#main-content").append('<ul class="et_pb_side_nav"></ul>'),e.each((function(e,r){var i=0===e?"active":"";t(".et_pb_side_nav").append('<li class="side_nav_item"><a href="#" id="side_nav_item_id_'+e+'" class= "'+i+'">'+e+"</a></li>"),n-1===e&&(window.et_side_nav_links_initialized=!0)})),t("ul.et_pb_side_nav").css("marginTop","-"+r+"px"),t(".et_pb_side_nav").addClass("et-visible"),t(".et_pb_side_nav a").click((function(){var n=parseInt(t(this).text()),r=e.eq(n),i="0"==t(this).text()&&!t(".et-l--body").length;return et_pb_smooth_scroll(r,i,800),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&parseInt(t(window).width())>980&&setTimeout((function(){et_pb_smooth_scroll(r,i,200)}),500),!1})),t(window).on("scroll",et_pb_window_side_nav_scroll_init))},t("body").is(".et-fb, .et-bfb")&&(window.et_pb_side_nav_page_init=S(window.et_pb_side_nav_page_init,200)),et_pb_side_nav_page_init(),t(".et_pb_scroll_top").length&&(t(window).scroll((function(){t(this).scrollTop()>800?t(".et_pb_scroll_top").show().removeClass("et-hidden").addClass("et-visible"):t(".et_pb_scroll_top").removeClass("et-visible").addClass("et-hidden")})),t(".et_pb_scroll_top").click((function(){t("html, body").animate({scrollTop:0},800)}))),t(".comment-reply-link").length&&t(".comment-reply-link").addClass("et_pb_button"),t("#et_top_search").click((function(){var e=t(".et_search_form_container");e.hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_visible et_pb_no_animation").addClass("et_pb_menu_hidden"),e.removeClass("et_pb_search_form_hidden et_pb_no_animation").addClass("et_pb_search_visible et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),e.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3),e.find("input").focus(),Z())})),t(".et_close_search_field").click((function(){Y()})),t(document).mouseup((function(e){var n=t("#main-header");t(".et_menu_container").hasClass("et_pb_menu_hidden")&&(n.is(e.target)||0!==n.has(e.target).length||Y())})),t("#logo").length&&(q=t("#logo").attr("src"),$=function(){var e,n,r,i=t("#logo"),o="svg"===i.attr("src").substr(-3,3);t("body").append(t("<div />",{id:"et-define-logo-wrap",style:"position: fixed; bottom: 0; opacity: 0;"})),e=t("#et-define-logo-wrap"),o&&e.addClass("svg-logo"),e.html(i.clone().css({display:"block"}).removeAttr("id")),n=e.find("img").width(),r=e.find("img").height(),i.attr({"data-actual-width":n,"data-actual-height":r}),e.remove(),E(!0)},(Q=new Image).onLoad=$,Q.onload=$,Q.src=q),t(".footer-widget").each((function(){var e=t(this),n=e.width(),r=e.find(".widget_adsensewidget ins");r.length&&r.width(n)})),t("body").is(".et-fb")?(t(window).on("et_fb_root_did_mount",(function(){K(),V()})),t(window).on("et_fb_section_content_change",K)):window.addEventListener("load",V)})),t("#main-header").on("click",".et_toggle_slide_menu",(function(){I()})),O&&(b.on("swipeleft",(function(t){30>=parseInt(b.width())-parseInt(t.swipestart.coords[0])&&I("open")})),b.on("swiperight",(function(e){t("body").hasClass("et_pb_slide_menu_active")&&I("close")}))),t("#page-container").on("click",".et_toggle_fullscreen_menu",(function(){M()})),t(window).unload((function(){t("body").hasClass("et_pb_fullscreen_menu_active")&&t(".et_toggle_fullscreen_menu").trigger("click")})),t(".et_pb_fullscreen_nav_container").on("click","li.menu-item-has-children > a",(function(){var e=t(this).closest("li"),n=e.find(">a .et_mobile_menu_arrow"),r=e.find(">ul"),i=n.hasClass("et_pb_submenu_opened");return n.toggleClass("et_pb_submenu_opened"),i?(r.removeClass("et_pb_slide_dropdown_opened"),r.slideToggle(700,"easeInOutCubic")):(r.slideToggle(700,"easeInOutCubic"),r.addClass("et_pb_slide_dropdown_opened")),!1})),t("body").hasClass("et_header_style_fullscreen")){var z=t(".et_header_style_fullscreen .et_slide_in_menu_container");if(z.length){var F=z.find(".et_slide_menu_top").innerHeight();z.css({"padding-top":F+20})}}t(document.body).on("checkout_error",(function(){A()})),t(document.body).on("updated_checkout",(function(t){"failure"===t.result&&A()})),b.on("et_fb_init",(function(){var t=e.wp;if(t&&t.hooks&&t.hooks.addFilter){var n=window.DIVI.row_selector;t.hooks.addFilter("et.pb.row.css.selector","divi.et.pb.row.css.selector",(function(t){return t.replace("%%row_selector%%",n)}))}}))}(jQuery)}]);
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