PageSourceSearch

https://www.uv.mx/v2/plugins/v2/temav2/resources/js/global.js?ver=1790238904

js uv.mx collected 2026-09-24 08:35:42 UTC 2,753 bytes, 75 lines download raw bytes

1var $ = jQuery.noConflict();
2
3$(function () {
4    BusquedaGoogle();
5    fancybox();
6    EncabezadoMenuFijo();
7    ScrollAdmin();
8    MenuCarrusel();
9    ToTop();
10});
11
12function fancybox() {
13    // Busca cada liga con la clase fancybox y le pone el atributo title de la imagen
14    /*$.fn.getTitle = function() {
15        var arr = $( 'a.fancybox' );
16        $.each(arr, function() {
17            var title = $(this).children("img").attr("title");
18            $(this).attr('title',title);
19        })
20    }*/
21
22    // Extensiones soportadas
23    var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]';
24    var iframe = 'a[href*="www.youtube.com/embed/"],a[rel*="iframe"],.iframe';
25    var youtube = 'a[href*="www.youtube.com/watch"][rel!="no-fancy"],a[href*="youtu.be/"]';
26
27    //$(thumbnails).addClass("fancybox")..attr("rel","fancybox").getTitle();
28    $(thumbnails).attr("data-fancybox","gallery");
29
30    var posts = $( '.post, .items, .cycle-slideshow' );
31    posts.each( function() {
32        //$( this ).find( thumbnails ).addClass( "fancybox" ).attr( 'rel', 'fancybox' + posts.index( this ) ).getTitle();
33        $( this ).find( thumbnails ).attr("data-fancybox","gallery");
34    });
35
36    // Le quita la clase fancybox a las divs "cloned" del slider
37    $('.slide').filter('.cloned').find('a').removeClass('fancybox').removeAttr('rel');
38            
39    // Button helper. Disable animations, hide close button, change title type and content
40    $( 'a.fancybox' ).fancybox({
41        /*openEffect  : 'none',
42        closeEffect : 'none',
43
44        prevEffect : 'none',
45        nextEffect : 'none',
46
47        closeBtn  : false,
48
49        helpers : {
50            title : {
51                type : 'inside'
52            },
53            buttons	: {}
54        },
55
56        afterLoad : function() {
57            this.title = 'Imagen ' + (this.index + 1) + ' de ' + this.group.length + (this.title ? ' - ' + this.title : '');
58        }*/
59    });
60
61    // Cuando abrimos una liga con class="iframe" o rel="iframe" o un video de youtube.com/embed/
62    $( iframe ).fancybox({
63        type : 'iframe',
64        scrolling : 'no'
65    });
66
67    // Cuando abrimos una liga a un video de youtube
68    $( youtube ).click( function() {
69        $.fancybox({
70            href : this.href.replace(new RegExp("youtu.be\\/", "i"), 'www.youtube.com/embed/').replace(new RegExp("watch\\?v=", "i"), 'embed/') + '?autoplay=1&rel=0&fs=1',
71            type : 'iframe'
72        });
73        return false;
74    });
75}

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.