1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10// acemm custom JS functions: 11 12 13// Headroom script 14/*! 15 * headroom.js v0.7.0 - Give your page some headroom. Hide your header until you need it 16 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/headroom.js 17 * License: MIT 18 */ 19 20!function(a,b){"use strict";function c(a){this.callback=a,this.ticking=!1}function d(b){return b&&"undefined"!=typeof a&&(b===a||b.nodeType)}function e(a){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var b,c,f=a||{};for(c=1;c<arguments.length;c++){var g=arguments[c]||{};for(b in g)f[b]="object"!=typeof f[b]||d(f[b])?f[b]||g[b]:e(f[b],g[b])}return f}function f(a){return a===Object(a)?a:{down:a,up:a}}function g(a,b){b=e(b,g.options),this.lastKnownScrollY=0,this.elem=a,this.debouncer=new c(this.update.bind(this)),this.tolerance=f(b.tolerance),this.classes=b.classes,this.offset=b.offset,this.scroller=b.scroller,this.initialised=!1,this.onPin=b.onPin,this.onUnpin=b.onUnpin,this.onTop=b.onTop,this.onNotTop=b.onNotTop}var h={bind:!!function(){}.bind,classList:"classList"in b.documentElement,rAF:!!(a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame)};a.requestAnimationFrame=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame,c.prototype={constructor:c,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},g.prototype={constructor:g,init:function(){return g.cutsTheMustard?(this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this):void 0},destroy:function(){var a=this.classes;this.initialised=!1,this.elem.classList.remove(a.unpinned,a.pinned,a.top,a.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var a=this.elem.classList,b=this.classes;(a.contains(b.pinned)||!a.contains(b.unpinned))&&(a.add(b.unpinned),a.remove(b.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var a=this.elem.classList,b=this.classes;a.contains(b.unpinned)&&(a.remove(b.unpinned),a.add(b.pinned),this.onPin&&this.onPin.call(this))},top:function(){var a=this.elem.classList,b=this.classes;a.contains(b.top)||(a.add(b.top),a.remove(b.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var a=this.elem.classList,b=this.classes;a.contains(b.notTop)||(a.add(b.notTop),a.remove(b.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(b.documentElement||b.body.parentNode||b.body).scrollTop},getViewportHeight:function(){return a.innerHeight||b.documentElement.clientHeight||b.body.clientHeight},getDocumentHeight:function(){var a=b.body,c=b.documentElement;return Math.max(a.scrollHeight,c.scrollHeight,a.offsetHeight,c.offsetHeight,a.clientHeight,c.clientHeight)},getElementHeight:function(a){return Math.max(a.scrollHeight,a.offsetHeight,a.clientHeight)},getScrollerHeight:function(){return this.scroller===a||this.scroller===b.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(a){var b=0>
20a,c=a+this.getViewportHeight()>this.getScrollerHeight();return b||c},toleranceExceeded:function(a,b){return Math.abs(a-this.lastKnownScrollY)>=this.tolerance[b]},shouldUnpin:function(a,b){var c=a>this.lastKnownScrollY,d=a>=this.offset;return c&&d&&b},shouldPin:function(a,b){var c=a<this.lastKnownScrollY,d=a<=this.offset;return c&&b||d},update:function(){var a=this.getScrollY(),b=a>this.lastKnownScrollY?"down":"up",c=this.toleranceExceeded(a,b);this.isOutOfBounds(a)||(a<=this.offset?this.top():this.notTop(),this.shouldUnpin(a,c)?this.unpin():this.shouldPin(a,c)&&this.pin(),this.lastKnownScrollY=a)}},g.options={tolerance:{up:0,down:0},offset:0,scroller:a,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},g.cutsTheMustard="undefined"!=typeof h&&h.rAF&&h.bind&&h.classList,a.Headroom=g}(window,document); 21 22// Headroom jQuery Plugin 23(function($) { 24 25 if(!$) { 26 return; 27 } 28 29 //////////// 30 // Plugin // 31 //////////// 32 33 $.fn.headroom = function(option) { 34 return this.each(function() { 35 var $this = $(this), 36 data = $this.data('headroom'), 37 options = typeof option === 'object' && option; 38 39 options = $.extend(true, {}, Headroom.options, options); 40 41 if (!data) { 42 data = new Headroom(this, options); 43 data.init(); 44 $this.data('headroom', data); 45 } 46 if (typeof option === 'string') { 47 data[option](); 48 } 49 }); 50 }; 51 52 ////////////// 53 // Data API // 54 ////////////// 55 56 $('[data-headroom]').each(function() { 57 var $this = $(this); 58 $this.headroom($this.data()); 59 }); 60 61}(window.Zepto || window.jQuery)); 62 63 64 65 66 67 68/* trigger when page is ready */ 69jQuery(document).ready(function ($){ 70 71 // Headroom call 72 73 $("#masthead").headroom({ 74 "offset": 80, 75 "tolerance": 10, 76 }); 77 78 // to destroy 79 $("#masthead").headroom("destroy"); 80 81 82 //Calculate height of header and set top-padding for #content accordingly 83 var header_height=$("#masthead").height(); 84 $("#content").css('padding-top', header_height); 85 86 87 //Scrollbox https://github.com/wmh/jquery-scrollbox 88 $('#donor-scroll-text').scrollbox({ 89 linear: true, 90 step: 2, 91 delay: 0, 92 speed: 50 93 }); 94 95 96 // .popup is used if you want an overlay styling on an image with a "+" sign 97 $(".popup").fancybox({ 98 openEffect : 'elastic', 99 closeEffect : 'elastic', 100 padding : 0, 101 beforeShow : function() { 102 var alt = this.element.find('img').attr('alt'); 103 this.inner.find('img').attr('alt', alt); 104 this.title = alt; 105 }, 106 afterShow: function() { 107 $('.fancybox-wrap').swipe({ 108 swipe : function(event, direction) { 109 if (direction === 'left' || direction === 'up') { 110 $.fancybox.prev( direction ); 111 } else { 112 $.fancybox.next( direction ); 113 } 114 } 115 }); 116 } 117 }); 118 119 120 121 // Fancybox 122 $(".modal").fancybox({ 123 openEffect : 'elastic', 124 closeEffect : 'elastic', 125 padding : 0, 126 afterShow: function() { 127 $('.fancybox-wrap').swipe({ 128 swipe : function(event, direction) { 129 if (direction === 'left' || direction === 'up') { 130 $.fancybox.prev( direction ); 131 } else { 132 $.fancybox.next( direction ); 133 } 134 } 135 }); 136 } 137 }); 138 139 140 141 $(".gallery-item a").fancybox({ 142 openEffect : 'elastic', 143 closeEffect : 'elastic', 144 padding : 0, 145 beforeShow : function() { 146 var alt = this.element.find('img').attr('alt'); 147 this.inner.find('img').attr('alt', alt); 148 this.title = alt; 149 }, 150 afterShow: function() { 151 $('.fancybox-wrap').swipe({ 152 swipe : function(event, direction) { 153 if (direction === 'left' || direction === 'up') { 154 $.fancybox.prev( direction ); 155 } else { 156 $.fancybox.next( direction ); 157 } 158 } 159 }); 160 } 161 }); 162 $(".tiled-gallery-item a").fancybox({ 163 openEffect : 'elastic', 164 closeEffect : 'elastic', 165 padding : 0, 166 beforeShow : function() { 167 var alt = this.element.find('img').attr('alt'); 168 this.inner.find('img').attr('alt', alt); 169 this.title = alt; 170 }, 171 afterShow: function() { 172 $('.fancybox-wrap').swipe({ 173 swipe : function(event, direction) { 174 if (direction === 'left' || direction === 'up') { 175 $.fancybox.prev( direction ); 176 } else { 177 $.fancybox.next( direction ); 178 } 179 } 180 }); 181 } 182 }); 183
184 // Add rel attribute to gallery to make Fancybox gallery work 185 $(".gallery-item a").each(function(){ 186 $(this).attr("rel", "gallery"); 187 $(this).fancybox({ href : $(this).attr('src') }); 188 }); 189 $(".tiled-gallery-item a").each(function(){ 190 $(this).attr("rel", "gallery"); 191 $(this).fancybox({ href : $(this).attr('src') }); 192 }); 193 194 195 // Nav dropdown Hide/Show 196 $("ul.nav-menu > li.menu-item-has-children > a").click(function (e) { // binding onclick 197 if ($(this).parent().hasClass('selected')) { 198 $("ul.nav-menu .selected").removeClass("selected"); 199 } else { 200 $("ul.nav-menu .selected").removeClass("selected"); 201 if ($(this).next(".sub-menu").length) { 202 $(this).parent().addClass("selected"); // display popup 203 } 204 } 205 return false; 206 }); 207 208 $("ul.nav-menu > li.menu-item-has-children > ul.sub-menu > li.menu-item-has-children > a").click(function (e) { // binding onclick 209 if ($(this).parent().hasClass('selected')) { 210 $("ul.nav-menu ul.sub-menu .selected").removeClass("selected"); 211 } else { 212 $("ul.nav-menu ul.sub-menu .selected").removeClass("selected"); 213 if ($(this).next(".sub-menu").length) { 214 $(this).parent().addClass("selected"); // display popup 215 } 216 } 217 return false; 218 }); 219 220 $("body").click(function () { // binding onclick to body 221 $("ul.nav-menu .selected").removeClass("selected"); 222 }); 223 224 $("a.category-toggle").click(function () { // binding onclick to body 225 $("ul.category-list-nav").toggle('fast'); 226 return false; 227 }); 228 229 230 //Smooth scrolling 231 /*$('.scroll a').click(function() { 232 aid = $(this).attr('href').split("#"); 233 var aTag = $("[id='"+ aid[1] +"']"); 234 if (aTag.length != 0) { 235 $('html,body').animate({scrollTop: aTag.offset().top + 0},'slow'); 236 } 237 return false; 238 239 });*/ 240 241 //Smooth scrolling 2 242 /*$('a.scroll ').click(function() { 243 aid = $(this).attr('href').split("#"); 244 var aTag = $("[id='"+ aid[1] +"']"); 245 if (aTag.length != 0) { 246 $('html,body').animate({scrollTop: aTag.offset().top - 40},'slow'); 247 } 248 return false; 249 250 });*/ 251 252 253 254 255 256 //Calculate height of header 257 /* var header_height=$("#content-header").height(); 258 $(".secondary.sidebar-nav").css('margin-top',-(header_height)) 259 */ 260 261 // Responsive top menu 262 $("#menuButton a.menu-toggle").click(function () { 263 $("#menus").toggleClass("saveSpace"); 264 }); 265 266 /*$("#menuButton a.menu-toggle").toggle(function(){ 267 $("#menus").removeClass("saveSpace"); 268 },function(){ 269 $("#menus").addClass("saveSpace"); 270 });*/ 271 272 273 274 // Search toggle 275 /*$("#search-wrap a.search-toggle").toggle(function(){ 276 $("#search-wrap").addClass("showform"); 277 },function(){ 278 $("#search-wrap").removeClass("showform"); 279 });*/ 280 281 282 $("#search-wrap a.search-toggle").click(function () { // binding onclick to body 283 elm = event.srcElement; 284 285 if (jQuery("#search-wrap").hasClass('showform')) { 286 $("#search-wrap").removeClass("showform"); 287 } else { 288 $("#search-wrap").addClass("showform"); 289 } 290 291 }); 292 293 $("body").click(function (event) { // binding onclick to body 294 elm = event.srcElement; 295 296 if (jQuery(elm).hasClass('s') || jQuery(elm).hasClass('fa-search') || jQuery(elm).hasClass('search-toggle')) { 297 // Do nothing 298 } else { 299 $("#search-wrap").removeClass("showform"); 300 } 301 302 }); 303 304 305 306 307 308 309 310 311 // Responsive iframes 312 function adjustIframes(){ 313 $('.entry-content iframe').each(function(){ 314 var 315 $this = $(this), 316 proportion = $this.data( 'proportion' ), 317 w = $this.attr('width'), 318 actual_w = $this.width(); 319 320 if ( ! proportion ){ 321 proportion = $this.attr('height') / w; 322 $this.data( 'proportion', proportion ); 323 } 324 325 if ( actual_w !== w ){ 326 $this.css( 'height', Math.round( actual_w * proportion ) + 'px' ); 327 } 328 }); 329 } 330 $(window).on('resize load',adjustIframes); 331 332 333}); 334 335jQuery(window).load(function() { 336 337 // Masonry on posts 338 /*jQuery('.masonry-gallery-layout').masonry({ 339 isAnimated: true, 340 animationOptions: { 341 duration: 700, 342 easing: 'linear', 343 queue: false 344 }, 345 itemSelector : 'li.masonry-img-wrap', 346 columnWidth : 'li.masonry-img-wrap img', 347 gutter: 18 348 });*/ 349 350 // Masonry on posts 351 jQuery('#masonry').masonry({ 352 isAnimated: true, 353 animationOptions: { 354 duration: 700, 355 easing: 'linear', 356 queue: false 357 }, 358 itemSelector : 'article', 359 columnWidth : 'article', 360 gutter: 25 361 }); 362}); 363 364 365//jQuery(window).load(function() { 366//}); 367 368 369jQuery(window).resize(function() { 370 //Calculate height of header 371 var header_height=jQuery("#masthead").height(); 372 jQuery("#content").css('padding-top', header_height); 373 374 // detect if menu is off screen 375 //submenuOffScreen(); 376 377 /* 378 379 // No single word on a line by itself
380 $(".primary p").buddySystem() 381 $(".home-content p").buddySystem()*/ 382}); 383 384 385}
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.