PageSourceSearch

https://www.subverso.es/wp-content/themes/sight/js/script.js?ver=5.7.19

js subverso.es collected 2026-10-02 13:15:21 UTC 5,233 bytes, 163 lines download raw bytes

1jQuery.noConflict();
2(function($) {
3    $(function() {
4        /*** Dropdown menu ***/
5        
6        var timeout    = 200;
7        var closetimer = 0;
8        var ddmenuitem = 0;
9
10        function dd_open() {
11            dd_canceltimer();
12            dd_close();
13            var liwidth = $(this).width();
14            ddmenuitem = $(this).find('ul').css({'visibility': 'visible', 'width': liwidth});
15            ddmenuitem.prev().addClass('dd_hover').parent().addClass('dd_hover');
16        }
17
18        function dd_close() {
19            if(ddmenuitem) ddmenuitem.css('visibility', 'hidden').prev().removeClass('dd_hover').parent().removeClass('dd_hover');
20        }
21
22        function dd_timer() {closetimer = window.setTimeout(dd_close, timeout);
23        }
24
25        function dd_canceltimer() {
26            if (closetimer) {
27                window.clearTimeout(closetimer);
28                closetimer = null;
29            }
30        }
31        document.onclick = dd_close;
32
33        $('#dd > li').bind('mouseover', dd_open);
34        $('#dd > li').bind('mouseout',  dd_timer);
35
36        $('#larr, #rarr').hide();
37        $('.slideshow').hover(
38            function(){
39                $('#larr, #rarr').show();
40            }, function(){
41                $('#larr, #rarr').hide();
42            }
43        );
44
45        /*** View mode ***/
46
47        if ( $.cookie('mode') == 'grid' ) {
48            grid_update();
49        } else if ( $.cookie('mode') == 'list' ) {
50            list_update();
51        }
52
53        $('#mode').toggle(
54            function(){
55                if ( $.cookie('mode') == 'grid' ) {
56                    $.cookie('mode','list');
57                    list();
58                } else {
59                    $.cookie('mode','grid');
60                    grid();
61                }
62            },
63            function(){
64                if ( $.cookie('mode') == 'list') {
65                    $.cookie('mode','grid');
66                    grid();
67                } else {
68                    $.cookie('mode','list');
69                    list();
70                }
71            }
72        );
73
74        function grid(){
75            $('#mode').addClass('flip');
76            $('#loop')
77                .fadeOut('fast', function(){
78                    grid_update();
79                    $(this).fadeIn('fast');
80                })
81            ;
82        }
83
84        function list(){
85            $('#mode').removeClass('flip');
86            $('#loop')
87                .fadeOut('fast', function(){
88                    list_update();
89                    $(this).fadeIn('fast');
90                })
91            ;
92        }
93
94        function grid_update(){
95            $('#loop').addClass('grid').removeClass('list');
96            $('#loop').find('.thumb img').attr({'width': '190', 'height': '190'});
97            $('#loop').find('.post')
98                .mouseenter(function(){
99                    $(this)
100                        .css('background-color','#FFEA97')
101                        .find('.thumb').hide()
102                        .css('z-index','-1');
103                })
104                .mouseleave(function(){
105                    $(this)
106                        .css('background-color','#f5f5f5')
107                        .find('.thumb').show()
108                        .css('z-index','1');
109                });
110            $('#loop').find('.post').click(function(){
111                location.href=$(this).find('h2 a').attr('href');
112            });
113            $.cookie('mode','grid');
114        }
115
116        function list_update(){
117            $('#loop').addClass('list').removeClass('grid');
118            $('#loop').find('.post').removeAttr('style').unbind('mouseenter').unbind('mouseleave');
119            $('#loop').find('.thumb img').attr({'width': '290', 'height': '290'});
120            $.cookie('mode', 'list');
121        }
122
123        /*** Ajax-fetching posts ***/
124
125        $('#pagination a').live('click', function(e){
126            e.preventDefault();
127            $(this).addClass('loading').text('LOADING...');
128            $.ajax({
129                type: "GET",
130                url: $(this).attr('href') + '#loop',
131                dataType: "html",
132                success: function(out){
133                    result = $(out).find('#loop .post');
134                    nextlink = $(out).find('#pagination a').attr('href');
135                    $('#loop').append(result.fadeIn(300));
136                    $('#pagination a').removeClass('loading').text('LOAD MORE');
137                    if (nextlink != undefined) {
138                        $('#pagination a').attr('href', nextlink);
139                    } else {
140                        $('#pagination').remove();
141                    }
142                    if ( $.cookie('mode') == 'grid' ) {
143                        grid_update();
144                    } else {
145                        list_update();
146                    }
147                }
148            });
149        });
150
151        /*** Misc ***/
152
153        $('#comment, #author, #email, #url')
154        .focusin(function(){
155            $(this).parent().css('border-color','#888');
156        })
157        .focusout(function(){
158            $(this).parent().removeAttr('style');
159        });
160        $('.rpthumb:last, .comment:last').css('border-bottom','none');
161
162    })
163})(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.