PageSourceSearch

https://dalmen.com/wp-content/plugins/fancy-gallery-pro/js/fancy-gallery.js?ver=1.1.7

js dalmen.com collected 2026-10-04 02:26:09 UTC 3,329 bytes, 105 lines download raw bytes

1jQuery(function(){
2  var FG = FANCYGALLERY; // Pointer to our global object
3
4  // group gallery items
5  jQuery('div.fancy-gallery a')
6  .each(function(){
7    var $this = jQuery(this);
8    $this.attr('rel', $this.parents('.fancy-gallery').attr('id'));
9  });
10
11  // Added Image descriptions
12  if (typeof(IMAGETITLES) == 'object'){
13    for (var image_id in IMAGETITLES){
14      var image_title = IMAGETITLES[image_id];
15      jQuery('img.wp-image-' + image_id).attr('title', image_title);
16    }
17    IMAGETITLES = image_id = image_title = null;
18  }
19
20  // Patch the linked images
21  jQuery('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"], a[href$=".wbmp"]').each(function(){
22
23    // shorter access path
24    var $lnk = jQuery(this);
25    var $img = $lnk.find('img');
26
27    if (!$lnk.hasClass('nofancybox')) {
28      if (FG.associate_single_images == 'yes'){ // Add a rel attribute
29          if ($lnk.attr('rel') == '' || $lnk.attr('rel') == undefined)
30            $lnk.attr('rel', 'single-image');
31        }
32    
33        if (FG.use_as_image_title == 'alt_text'){ // Copy the alternate texts
34          $img.attr('title', $img.attr('alt'));
35        }
36        else if (FG.use_as_image_title == 'caption'){ // Copy the captions
37          if (caption = $lnk.parent('.wp-caption').find('.wp-caption-text').html())
38            $img.attr('title', caption);
39        }
40    
41        // Convert images in inline-blocks
42        if (FG.change_image_display == 'yes')
43          $img.css('display', 'inline-block');
44    
45        // Copy the title tag from link to img
46        if ($lnk.attr('title') == '' || $lnk.attr('title') == undefined)
47          $lnk.attr('title', $img.attr('title'));
48    
49        // Add the fancybox class
50        $lnk.addClass('fancybox');
51      }
52  });
53
54  // Group single images by post
55  if (FG.group_single_images_by_post == 'yes'){
56    // group images by post
57    var unit_counter = 0;
58    jQuery('.fancy-gallery-content-unit').each(function(){
59      var $unit = jQuery(this);
60      unit_counter++;
61      $unit
62      .find('a[rel=single-image]')
63      .each(function(){
64        jQuery(this).attr('rel', 'single-image-unit-' + unit_counter);
65      });
66    });
67  }
68
69  // Add the light box effect to the linked images
70  jQuery('a.fancybox')
71  .unbind('click')
72  .fancybox({
73    loop: (FG.loop == 'yes'),
74    padding: parseInt(FG.padding),
75    closeBtn: (FG.hide_close_button != 'yes'),
76    autoPlay: (FG.auto_play == 'yes'),
77    playSpeed: parseInt(FG.play_speed),
78    openEffect: FG.open_effect,
79    openSpeed: parseInt(FG.open_speed),
80    closeEffect: FG.close_effect,
81    closeSpeed: parseInt(FG.close_speed),
82    nextEffect: FG.change_effect,
83    nextSpeed: parseInt(FG.change_speed),
84    prevEffect: FG.change_effect,
85    prevSpeed: parseInt(FG.change_speed),
86    helpers: {
87			title: {
88        type: FG.title_position
89      },
90			buttons: {
91        position: FG.controls_position
92      },
93      thumbs : {
94        width: 50,
95        height: 50,
96        position: FG.thumbs_position // 'top' or 'bottom'
97      }
98		},
99    beforeShow: function(){
100      var html_title = jQuery(this.element).data('html-title');
101      if (html_title != undefined) this.title = html_title;
102    }
103  });
104
105});

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.