PageSourceSearch

https://www.rfgenealogie.com/sites/all/modules/media_colorbox/media_colorbox.js?thyms2

js rfgenealogie.com collected 2026-10-01 11:52:54 UTC 1,620 bytes, 48 lines download raw bytes

1(function ($) {
2/**
3 * Media Colorbox behavior.
4 */
5Drupal.behaviors.initMediaColorbox = {
6  attach: function (context, settings) {
7    if (!$.isFunction($.colorbox)) {
8      console.log('You must install the Colorbox library.');
9      return;
10    }
11    var enableAudioPlaylist = false;
12
13    $('a.media-colorbox', context).once('init-media-colorbox', function() {
14
15      // Merge Colorbox settings with Media Colorbox settings from data attributes.
16      var options = jQuery.extend({}, settings.colorbox);
17      var mediaColorboxSettings = {};
18      if($(this).data('mediaColorboxFixedWidth') > 0) {
19        mediaColorboxSettings = {width: $(this).data('mediaColorboxFixedWidth')};
20        jQuery.extend(options, mediaColorboxSettings);
21      }
22      if($(this).data('mediaColorboxFixedHeight') > 0){
23        mediaColorboxSettings = {height: $(this).data('mediaColorboxFixedHeight')};
24        jQuery.extend(options, mediaColorboxSettings);
25      }
26
27      // Set up the callback and listener to go to to next slide
28      $(this).colorbox(options);
29      if($(this).data('mediaColorboxAudioPlaylist')){
30        enableAudioPlaylist = true;
31      }
32    });
33
34    // Set up the callback and listener to go to to next slide
35    $(document).bind('cbox_complete', function() {
36      if(enableAudioPlaylist) {
37        $("audio").bind("ended", function(event) {
38          setTimeout($.colorbox.next, 100);
39        });
40      }
41      $("#cboxLoadedContent img").bind("click", function (event) {
42        setTimeout($.colorbox.next, 0);
43      });
44      $("#cboxLoadedContent img").css('cursor', 'pointer');
45    });
46  }
47};
48})(jQuery);

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.