1jQuery(document).ready(function ($) { 2 //search modal 3 $('.header-search > button').on('click', function () { 4 $('.header-search-form').fadeIn(); 5 $('.search-field').focus(); 6 }); 7 $('.header-search .close').on('click', function () { 8 $('.header-search-form').fadeOut(); 9 }); 10 11 $('.search-form').on('click', function (e) { 12 e.stopPropagation(); 13 }); 14 15 $('.header-search-form').on('click', function () { 16 $('.header-search-form').fadeOut(); 17 }); 18 19 //mobile-menu 20 $('<button class="angle-down"> </button>').insertAfter( $(".main-navigation.mobile-navigation ul .menu-item-has-children > a")); 21 $('.main-navigation.mobile-navigation ul li .angle-down').on('click', function () { 22 $(this).next().slideToggle(); 23 $(this).toggleClass('active'); 24 }); 25 26 var adminBar = document.querySelector('#wpadminbar'); 27 if (adminBar !== null) { 28 var adminHeight = adminBar.offsetHeight; 29 var mobHeaderTop = document.querySelector('.header-bottom-slide-inner'); 30 // mobHeaderTop.style.top = adminHeight + 'px'; 31 } 32 33 //mobileheaderwhenadminbarpresent 34 function styleOne() { 35 if (document.querySelector('.site-header.style-one') !== null) { 36 var StyleOne = document.querySelector('.site-header.style-one'); 37 StyleOne.style.top = adminHeight + 'px'; 38 } 39 } 40 41 window.addEventListener('resize', function () { 42 styleOne(); 43 }); 44 45 window.addEventListener('load', function () { 46 styleOne(); 47 }); 48 49 //accessibility 50 $('.menu li a, .menu li').on('focus', function() { 51 $(this).parents('li').addClass('focus'); 52 }).blur(function() { 53 $(this).parents('li').removeClass('focus'); 54 }); 55 56 $("#menu-opener").on('click', function () { 57 $("body").addClass("menu-open"); 58 $(".mobile-menu-wrapper .primary-menu-list").addClass("toggled"); 59 }); 60 61 $(".mobile-menu-wrapper .close-main-nav-toggle ").on('click', function () { 62 $("body").removeClass("menu-open"); 63 $(".mobile-menu-wrapper .primary-menu-list").removeClass("toggled"); 64 }); 65 66 67 68 $('.marquee.aft-flash-slide').marquee({ 69 //duration in milliseconds of the marquee 70 speed: 80000, 71 //gap in pixels between the tickers 72 gap: 0, 73 //time in milliseconds before the marquee will start animating 74 delayBeforeStart: 0, 75 //'left' or 'right' 76 // direction: 'right', 77 //true or false - should the marquee be duplicated to show an effect of continues flow 78 duplicated: true, 79 pauseOnHover: true, 80 startVisible: true 81 }); 82 83}); 84 85//Tabs js 86function rudrSwitchTab(rudr_tab_id, rudr_tab_content, rudr_tab_class) { 87 // first of all we get all tab content blocks (I think the best way to get them by class names) 88 var x = document.getElementsByClassName(rudr_tab_class); 89 var i; 90 for (i = 0; i < x.length; i++) { 91 x[i].style.display = 'none'; // hide all tab content 92 } 93 document.getElementById(rudr_tab_content).style.display = 'block'; // display the content of the tab we need 94 95 // now we get all tab menu items by class names (use the next code only if you need to highlight current tab) 96 x = document.getElementsByClassName("tabmenu"); 97 98 for (i = 0; i < x.length; i++) { 99 x[i].className = 'tabmenu'; 100 } 101 document.getElementById(rudr_tab_id).className = 'tabmenu active'; 102} 103 104 105/*! 106* Countdown v0.1.0 107* https://github.com/fengyuanchen/countdown 108* 109* Copyright 2014 Fengyuan Chen 110* Released under the MIT license 111*/ 112 113! function(a) { 114 "function" == typeof define && define.amd ? define(["jquery"], a) : a(jQuery) 115}(function(a) { 116 "use strict"; 117 var b = function(c, d) { 118 this.$element = a(c), this.defaults = a.extend({}, b.defaults, this.$element.data(), a.isPlainObject(d) ? d : {}), this.init() 119 }; 120 b.prototype = { 121 constructor: b, 122 init: function() { 123 var a = this.$element.html(), 124 b = new Date(this.defaults.date || a); 125 b.getTime() && (this.content = a, this.date = b, this.find(), this.defaults.autoStart && this.start()) 126 }, 127 find: function() { 128 var a = this.$element; 129 this.$days = a.find("[data-days]"), this.$hours = a.find("[data-hours]"), this.$minutes = a.find("[data-minutes]"), this.$seconds = a.find("[data-seconds]"), this.$days.length + this.$hours.length + this.$minutes.length + this.$seconds.length > 0 && (this.found = !0) 130 }, 131 reset: function() { 132 this.found ? (this.output("days"), this.output("hours"), this.output("minutes"), this.output("seconds")) : this.output() 133 }, 134 ready: function() { 135 var a, b = this.date, 136 c = 100, 137 d = 1e3, 138 e = 6e4, 139 f = 36e5, 140 g = 864e5, 141 h = {}; 142 return b ? (a = b.getTime() - (new Date).getTime(), 0 >= a ? (this.end(), !1) : (h.days = a, h.hours = h.days % g, h.minutes = h.hours % f, h.seconds = h.minutes % e, h.milliseconds = h.seconds % d, this.days = Math.floor(h.days / g), this.hours = Math.floor(h.hours / f), this.minutes = Math.floor(h.minutes / e), this.seconds = Math.floor(h.seconds / d), this.deciseconds = Math.floor(h.milliseconds / c), !0)) : !1 143 }, 144 start: function() { 145 !this.active && this.ready() && (this.active = !0, this.reset(), this.autoUpdate = this.defaults.fast ? setInterval(a.proxy(this.fastUpdate, this), 100) : setInterval(a.proxy(this.update, this), 1e3)) 146 }, 147 stop: function() { 148 this.active && (this.active = !1, clearInterval(this.autoUpdate)) 149 }, 150 end: function() { 151 this.date && (this.stop(), this.days = 0, this.hours = 0, this.minutes = 0, this.seconds = 0, this.deciseconds = 0, this.reset(), this.defaults.end()) 152 }, 153 destroy: function() { 154 this.date && (this.stop(), this.$days = null, this.$hours = null, this.$minutes = null, this.$seconds = null, this.$element.empty().html(this.content), this.$element.removeData("c
154ountdown")) 155 }, 156 fastUpdate: function() { 157 --this.deciseconds >= 0 ? this.output("deciseconds") : (this.deciseconds = 9, this.update()) 158 }, 159 update: function() { 160 --this.seconds >= 0 ? this.output("seconds") : (this.seconds = 59, --this.minutes >= 0 ? this.output("minutes") : (this.minutes = 59, --this.hours >= 0 ? this.output("hours") : (this.hours = 23, --this.days >= 0 ? this.output("days") : this.end()))) 161 }, 162 output: function(a) { 163 if (!this.found) return void this.$element.empty().html(this.template()); 164 switch (a) { 165 case "deciseconds": 166 this.$seconds.text(this.getSecondsText()); 167 break; 168 case "seconds": 169 this.$seconds.text(this.seconds); 170 break; 171 case "minutes": 172 this.$minutes.text(this.minutes); 173 break; 174 case "hours": 175 this.$hours.text(this.hours); 176 break; 177 case "days": 178 this.$days.text(this.days) 179 } 180 }, 181 template: function() { 182 return this.defaults.text.replace("%s", this.days).replace("%s", this.hours).replace("%s", this.minutes).replace("%s", this.getSecondsText()) 183 }, 184 getSecondsText: function() { 185 return this.active && this.defaults.fast ? this.seconds + "." + this.deciseconds : this.seconds 186 } 187 }, b.defaults = { 188 autoStart: !0, 189 date: null, 190 fast: !1, 191 end: a.noop, 192 text: "%s days, %s hours, %s minutes, %s seconds" 193 }, b.setDefaults = function(c) { 194 a.extend(b.defaults, c) 195 }, a.fn.countdown = function(c) { 196 return this.each(function() { 197 var d = a(this), 198 e = d.data("countdown");
199 e || d.data("countdown", e = new b(this, c)), "string" == typeof c && a.isFunction(e[c]) && e[c]() 200 }) 201 }, a.fn.countdown.constructor = b, a.fn.countdown.setDefaults = b.setDefaults, a(function() { 202 a("[countdown]").countdown() 203 }) 204}); 205 206 207
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.