1! function($, b) {
2 "use strict";
3 var a = {
4 eventID: "WfThemeJs",
5 document: $(document),
6 window: $(window),
7 body: $("body"),
8 classes: {
9 toggled: "active",
10 isOverlay: "overlay--enabled",
11 mobileMainMenuActive: "wf_mobilenav-mainmenu--active",
12 headerSearchActive: "wf_header-search--active",
13 headerSidebarActive: "sidebar--active"
14 },
15 init: function() {
16 this.document.on("ready", this.documentReadyRender.bind(this)),
17 this.document.on("ready", this.menuFocusAccessibility.bind(this)),
18 this.document.on("ready", this.headerHeight.bind(this)),
19 this.document.on("ready", this.topbarMobile.bind(this)),
20 this.document.on("ready", this.mobileNavRight.bind(this)),
21 this.window.on("ready", this.documentReadyRender.bind(this))
22 },
23 documentReadyRender: function() {
24 this.document.on("click." + this.eventID, ".wf_mobilenav-mainmenu-toggle", this.menuToggleHandler.bind(this)).on("click." + this.eventID, ".wf_header-closemenu", this.menuToggleHandler.bind(this)).on("click." + this.eventID, this.hideHeaderMobilePopup.bind(this)).on("click." + this.eventID, ".wf_mobilenav-dropdown-toggle", this.verticalMobileSubMenuLinkHandle.bind(this)).on("click." + this.eventID, ".wf_header-closemenu", this.resetVerticalMobileMenu.bind(this)).on("hideHeaderMobilePopup." + this.eventID, this.resetVerticalMobileMenu.bind(this)).on("click." + this.eventID, ".wf_navbar-search-toggle", this.searchPopupHandler.bind(this)).on("click." + this.eventID, ".wf_search-close", this.searchPopupHandler.bind(this)).on("click." + this.eventID, ".wf_navbar-sidebar-toggle", this.sidebarPopupHandler.bind(this)).on("click." + this.eventID, ".wf_sidebar-close", this.sidebarPopupHandler.bind(this)), this.window.on("scroll." + this.eventID, this.scrollToSticky.bind(this)).on("resize." + this.eventID, this.headerHeight.bind(this))
25 },
26 scrollToSticky: function(b) {
27 var a = $(".is--sticky");
28 if ($(".wf_slider--twelve").length) {
29 this.window.scrollTop() >= 920 ? a.addClass("on") : a.removeClass("on")
30 } else {
31 this.window.scrollTop() >= 220 ? a.addClass("on") : a.removeClass("on")
32 }
33 },
34 headerHeight: function(d) {
35 var a = $(".wf_header-navwrapper"),
36 b = $(".wf_header-navwrapperinner"),
37 c = 0;
38 $("body").find("div").hasClass("is--sticky") && (b.each(function() {
39 var a = this.clientHeight;
40 a > c && (c = a)
...
</html>