PageSourceSearch

https://www.palermoworld.it/wp-content/themes/FashionStyleBlog/js/scripts.js

js palermoworld.it collected 2026-10-02 21:55:30 UTC 6,801 bytes, 208 lines download raw bytes

1  function designer_slider(site_url) {��
2  ��
3        my_slider_counter = 0;��
4        curr_slide = 0;��
5        nav_slider_counter = 0;��
6        ��
7        $(".slide_nav_cont ul").empty();��
8	$('.slide_thumbs_cont').html('');��
9        $('#slideshow .slide_box').each(function() {��
10            $(this).addClass('slide_' + my_slider_counter);��
11		��
12		/*��
13		if(my_slider_counter < 5) {��
14			��
15			$('.slide_thumbs_cont').append( '<img src="' + site_url + '/timthumb.php?src=' + $('.slide_' + my_slider_counter).find('img').attr('src') + '&h=90&w=179" />' );��
16		}*/��
17		��
18            my_slider_counter++;��
19           ��
20             //if(my_slider_counter == 1)��
21               //$('.slide_nav_cont ul').append('<li class="current"></li>');��
22             //else��
23              //$('.slide_nav_cont ul').append('<li></li>');��
24        });��
25        ��
26	/*��
27        $('.slide_thumbs_cont img').each(function() {��
28            $(this).attr('alt',nav_slider_counter);��
29            nav_slider_counter++;��
30        });   */             ��
31        ��
32        function home_switch_slide() {��
33  ��
34            if(curr_slide >= my_slider_counter)��
35                curr_slide = 0;��
36            else if(curr_slide < 0)��
37                curr_slide = (my_slider_counter-1);��
38                ��
39            //alert(curr_slide);��
40            ��
41            $('.slide_' + curr_slide).fadeIn(750);��
42            //$('.slide_nav_cont ul li').removeClass('current');��
43            //$('.slide_nav_cont ul li[alt="' + curr_slide + '"]').addClass('current');��
44            ��
45                ��
46        }��
47        ��
48        function hide_curr_slide() {��
49               $('.slide_' + curr_slide).stop();��
50               $('.slide_' + curr_slide).fadeOut(400);��
51        }��
52        ��
53        function next_slide_slider(jump_to_slide) {��
54            hide_curr_slide(); ��
55            ��
56            if(jump_to_slide == null)��
57                curr_slide++;     ��
58            else ��
59                curr_slide = jump_to_slide;��
60            ��
61            t_slide=setTimeout(home_switch_slide,50); ��
62            //home_switch_image();��
63        }��
64        ��
65        function prev_slide_slider(jump_to_slide) {��
66            hide_curr_slide();��
67            ��
68            ��
69//            curr_slide--;        ��
70            if(jump_to_slide == null)��
71                curr_slide--;     ��
72            else ��
73                curr_slide = jump_to_slide;��
74            //home_switch_image();��
75            t_slide=setTimeout(home_switch_slide,50);��
76        }        ��
77        ��
78        $('.slide_prev').click(function() {��
79          ��
80            prev_slide_slider();��
81            clearInterval(intervalID_slide);��
82            //clearInterval(t_slide);��
83            intervalID_slide = setInterval(next_slide_slider, 8000);��
84        });��
85        ��
86        $('.slide_next').click(function() {��
87            ��
88            next_slide_slider();��
89            clearInterval(intervalID_slide);��
90            intervalID_slide = setInterval(next_slide_slider, 8000);��
91        });                ��
92        ��
93        $('.slide_thumbs_cont img').click(function() {��
94            ��
95            clearInterval(intervalID_slide);��
96            next_slide_slider($(this).attr('alt'));��
97		��
98            ��
99            //clearInterval(t_testi);��
100            intervalID_slide = setInterval(next_slide_slider, 8000);            ��
101        ��
102        });        ��
103	��
104	$('.slide_box').hover(��
105		function() {��
106			clearInterval(intervalID_slide);��
107		},��
108		function() {��
109			intervalID_slide = setInterval(next_slide_slider, 8000);            ��
110		}��
111	);��
112		��
113        ��
114        //setInterval(next_slide_image, 5000);��
115        intervalID_slide = setInterval(next_slide_slider, 8000);  ��
116  ��
117  ��
118  }��
119  ��
120  ��
121  ��
122  ��
123function fire(e) { alert('hi'); }��
124function touchHandler(event)��
125{��
126    var touches = event.changedTouches,��
127        first = touches[0],��
128        type = "";��
129    switch(event.type)��
130    {��
131       case "touchstart": type = "mousedown"; break;��
132       case "touchmove":  type = "mousemove"; break;        ��
133       case "touchend":   type = "mouseup"; break;��
134       default: return;��
135    }��
136    //initMouseEvent(type, canBubble, cancelable, view, clickCount, ��
137    //           screenX, screenY, clientX, clientY, ctrlKey, ��
138    //           altKey, shiftKey, metaKey, button, relatedTarget);��
139    var simulatedEvent = document.createEvent("MouseEvent");��
140    simulatedEvent.initMouseEvent(type, true, true, window, 1, ��
141                          first.screenX, first.screenY, ��
142                          first.clientX, first.clientY, false, ��
143                          false, false, false, 0/*left*/, null);��
144    first.target.dispatchEvent(simulatedEvent);��
145    event.preventDefault();��
146}��
147function init() ��
148{��
149    document.addEventListener("touchstart", touchHandler, true);��
150    document.addEventListener("touchmove", touchHandler, true);��
151    document.addEventListener("touchend", touchHandler, true);��
152    document.addEventListener("touchcancel", touchHandler, true);    ��
153}  ��
154  ��
155  ��
156  ��
157  ��
158      $(document).ready(function() {��
159        $(window).bind('resize', function(){��
160            if($(this).width() > 500)��
161                $('.mobile_top ul').css('display','block');��
162            else ��
163               $('.mobile_top ul').css('display','none');��
164        }).resize();      ��
165	��
166	$('.media_cont').hover(��
167		function() {��
168			$(this).find('.view_more').css('display','block');��
169		},��
170		function() {��
171			$(this).find('.view_more').css('display','none');��
172		}��
173	);��
174		��
175	jQuery('#mycarousel').jcarousel({ scroll: 1 });��
176       ��
177       ��
178        $('.header_menu li').hover(��
179            function () {��
180                $('ul:first', this).css('display','block');��
181     ��
182            }, ��
183            function () {��
184                $('ul:first', this).css('display','none');         ��
185            }��
186        );               ��
187	    ��
188	$('.slide_box').hover(��
189		function() {��
190			$(this).find('.slide_title').css('display','block');��
191		},��
192		function() {��
193			$(this).find('.slide_title').css('display','none');��
194		}��
195	);��
196	    ��
197	//init();��
198	//$(document).trigger('retrieve.infscr');��
199	/*$('.load_more_text a').click(function(e) {��
200	//$('.load_more_text a').on('click touchstart', function(e) {��
201	//$('.load_more_text a').bind( "touchstart", function(e) {��
202		alert('test');��
203		e.preventDefault();��
204		$(document).trigger('retrieve.infscr');��
205	});*/��
206	    	    ��
207        ��
208    });

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.