(function ($) { Drupal.behaviors.initColorboxInline = { attach: function (context, settings) { if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') { 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] || ''; }; $('.colorbox-inline', context).once('init-colorbox-inline').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); /* FILE ARCHIVED ON 03:54:21 Mar 10, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:11:42 Mar 25, 2020. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 85.302 RedisCDXSource: 0.466 PetaboxLoader3.datanode: 57.983 (4) esindex: 0.01 exclusion.robots: 0.26 load_resource: 270.142 PetaboxLoader3.resolve: 253.532 LoadShardBlock: 70.83 (3) exclusion.robots.policy: 0.251 CDXLines.iter: 11.346 (3) *ColorboxInline = { attach: function (context, settings) { if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') { 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] || ''; }; $('.colorbox-inline', context).once('init-colorbox-inline').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); /* FILE ARCHIVED ON 03:54:21 Mar 10, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:11:42 Mar 25, 2020. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 85.302 RedisCDXSource: 0.466 PetaboxLoader3.datanode: 57.983 (4) esindex: 0.01 exclusion.robots: 0.26 load_resource: 270.142 PetaboxLoader3.resolve: 253.532 LoadShardBlock: 70.83 (3) exclusion.robots.policy: 0.251 CDXLines.iter: 11.346 (3) */