var _____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; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function ($) { Drupal.behaviors.initColorboxInline = { attach: function (context, settings) { if (!$.isFunction($.colorbox)) { return; } $.urlParam = function(name, url){ if (name == 'fragment') { var results = new RegExp('(#[^&#]*)').exec(url); } else { var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url); } if (!results) { return ''; } return results[1] || ''; }; $('a, area, input', context).filter('.colorbox-inline').once('init-colorbox-inline-processed').colorbox({ transition:settings.colorbox.transition, speed:settings.colorbox.speed, opacity:settings.colorbox.opacity, slideshow:settings.colorbox.slideshow, slideshowAuto:settings.colorbox.slideshowAuto, slideshowSpeed:settings.colorbox.slideshowSpeed, slideshowStart:settings.colorbox.slideshowStart, slideshowStop:settings.colorbox.slideshowStop, current:settings.colorbox.current, previous:settings.colorbox.previous, next:settings.colorbox.next, close:settings.colorbox.close, overlayClose:settings.colorbox.overlayClose, maxWidth:settings.colorbox.maxWidth, maxHeight:settings.colorbox.maxHeight, innerWidth:function(){ return $.urlParam('width', $(this).attr('href')); }, innerHeight:function(){ return $.urlParam('height', $(this).attr('href')); }, title:function(){ return decodeURIComponent($.urlParam('title', $(this).attr('href'))); }, iframe:function(){ return $.urlParam('iframe', $(this).attr('href')); }, inline:function(){ return $.urlParam('inline', $(this).attr('href')); }, href:function(){ return $.urlParam('fragment', $(this).attr('href')); } }); } }; })(jQuery); }