/* Compiled Bupuf front scripts_deferred */ /* { "bupuf-js": { "src": "https:\/\/www.canhaem.org\/wp-content\/plugins\/bupuf\/js\/bupuf.js", "ver": "1.17.12", "priority": 0 }, "isotope-js": { "src": "https:\/\/www.canhaem.org\/wp-content\/themes\/fup-20\/js\/isotope.pkgd.min.js", "ver": "1.28.1", "priority": 16 }, "isotope-images-loaded-js": { "src": "https:\/\/www.canhaem.org\/wp-content\/themes\/fup-20\/js\/imagesloaded.pkgd.min.js", "ver": "1.28.1", "priority": 17 }, "fup-mosaic-js": { "src": "https:\/\/www.canhaem.org\/wp-content\/themes\/fup-20\/js\/blog-mosaic.js", "ver": "1.28.1", "priority": 18 } } */ /* / bupuf-js scripts_deferred start: / */ //skip-link-focus-fix.js ( function() { var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { window.addEventListener( 'hashchange', function() { var id = location.hash.substring( 1 ), element; if ( ! /^[A-z0-9_-]+$/.test( id ) ) { return; } element = document.getElementById( id ); if ( element ) { if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) { element.tabIndex = -1; } element.focus(); } }, false ); } })(); jQuery( document ).ready(function() { //Force all .pdf and .doc / .docx links to open in a new tab jQuery('a[href$=".pdf"], a[href$=".doc"], a[href$=".docx"]').prop('target', '_blank'); jQuery('body').on('click', 'a.bupuf-impromptu-lightbox-link', function( event ) { event.preventDefault(); let frame_id = jQuery(this).attr('href'), frame = jQuery(frame_id); if (frame) { let effect_open = frame.attr('effect_open'), effect_duration = parseInt(frame.attr('effect_duration')); switch(effect_open) { default: case 'fade': frame.fadeIn( { duration: effect_duration } ); break; } } }); jQuery('body').on('click', '.bupuf-impromptu-lightbox-overlay', function( event ) { if ( event.target == this || jQuery(event.target).hasClass('bupuf-impromptu-lightbox-close') ) { let frame = jQuery(this).closest('.bupuf-impromptu-lightbox'), effect_open = frame.attr('effect_open'), effect_duration = parseInt(frame.attr('effect_duration')); switch(effect_open) { default: case 'fade': frame.fadeOut( { duration: effect_duration } ); break; } } }); }); /* / isotope-js scripts_deferred start: / */ /*! * Isotope PACKAGED v3.0.6 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * https://isotope.metafizzy.co * Copyright 2010-2018 Metafizzy */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n