PageSourceSearch

https://www.filmquestfest.com/wp-content/plugins/tp-shortcodes/shortcodes.js?ver=1.0.0

js filmquestfest.com collected 2026-10-02 06:17:08 UTC 5,798 bytes, 194 lines download raw bytes

1jQuery(document).ready(function($) {		
2	"use strict";		
3	
4	
5	
6	//TOGGLES		
7		$(document).on('click','.toggle',function(){
8			$(this).next('.toggle_box').slideToggle('slow');
9			return false;
10		});
11			
12		
13		
14	//SHORTCODE - POSTS/PORTFOLIO
15		
16	
17		$(document).on('click','.tp-sc-posts .nav #right',function(e){
18			e.preventDefault();
19			
20			//find out column width in PX for moving
21			var colw = parseInt($(this).closest('.tp-sc-posts').find('.col').css('width'));
22			colw = colw + parseInt($(this).closest('.tp-sc-posts').find('.col').css('marginRight'));
23			
24			//find out max limit
25			var maxClicks = $(this).closest('.tp-sc-posts').find('.col:not(.info)').length - $(this).closest('.tp-sc-posts').attr('data-cols');
26			var currClicks = parseInt($(this).closest('.tp-sc-posts').attr('data-clicks'));
27			
28			//move thumbs forward if allowed
29			if(currClicks < maxClicks){
30				$(this).closest('.tp-sc-posts').find('.mover').animate({
31					marginLeft: '-='+colw+'px'
32				},500);
33				
34				var nuClicks = currClicks + 1;
35				$(this).closest('.tp-sc-posts').attr('data-clicks',nuClicks);
36			}
37			
38			
39		});
40		$(document).on('click','.tp-sc-posts .nav #left',function(e){
41			e.preventDefault();
42			
43			//find out column width in PX for moving
44			var colw = parseInt($(this).closest('.tp-sc-posts').find('.col').css('width'));
45			colw = colw + parseInt($(this).closest('.tp-sc-posts').find('.col').css('marginRight'));
46			
47			var currClicks = parseInt($(this).closest('.tp-sc-posts').attr('data-clicks'));
48			
49			
50			//move thumbs forward if allowed
51			if(currClicks > 0){
52				$(this).closest('.tp-sc-posts').find('.mover').animate({
53					marginLeft: '+='+colw+'px'
54				},500);
55				
56				var nuClicks = currClicks - 1;
57				$(this).closest('.tp-sc-posts').attr('data-clicks',nuClicks);
58			}
59			
60		});
61		
62		$(document).on('mouseenter','.tp-sc-posts .thumb,.tp-sc-pfolio .thumb,.tp-portfolio .thumb',
63			function(){
64				var thumbw = parseInt($(this).closest('.tp-sc-posts,.tp-sc-pfolio,.tp-portfolio').find('.col img').outerWidth());
65				var thumbh = parseInt($(this).closest('.tp-sc-posts,.tp-portfolio').find('.col img').outerHeight());			
66				$(this).css('width',thumbw+'px');
67				$(this).css('height',thumbh+'px');
68				$('.hover',this).fadeIn(300);
69				$('.tpicon-visit,.tpicon-play',this).stop().animate({
70					top: '50%'
71				},300);
72			}
73		);
74		
75		$(document).on('mouseleave','.tp-sc-posts .thumb,.tp-sc-pfolio .thumb,.tp-portfolio .thumb',
76			function(){
77				$('.tpicon-visit,.tpicon-play',this).stop().animate({
78					top: '110%'
79				},300);
80				$('.hover',this).stop().fadeOut(300);
81			}
82		);
83		
84		
85		
86	//SHORTCODE - TESTEMONIALS
87		$(document).on('click','.tp-testemonials .nav #right',function(e){
88			e.preventDefault();
89			
90			//find out column width in PX for moving
91			var colw = parseInt($(this).closest('.tp-testemonials').css('width'));
92			colw = colw + parseInt($(this).closest('.tp-testemonials').find('.tp-testemonial').css('marginRight'));
93						
94			//find out max limit			
95			var maxClicks = $(this).parent().parent().find('.tp-testemonial').length - 1;			
96			var currClicks = parseInt($(this).closest('.tp-testemonials').attr('data-clicks'));
97			
98			//move thumbs forward if allowed
99			if(currClicks < maxClicks){
100				$(this).closest('.tp-testemonials').find('.mover').animate({
101					marginLeft: '-='+colw+'px'
102				},500);
103				
104				var nuClicks = currClicks + 1;
105				$(this).closest('.tp-testemonials').attr('data-clicks',nuClicks);
106			}			
107			
108		});
109		$(document).on('click','.tp-testemonials .nav #left',function(e){
110			e.preventDefault();
111			
112			//find out column width in PX for moving
113			var colw = parseInt($(this).closest('.tp-testemonials').css('width'));
114			colw = colw + parseInt($(this).closest('.tp-testemonials').find('.tp-testemonial').css('marginRight'));
115			
116			
117			var currClicks = parseInt($(this).closest('.tp-testemonials').attr('data-clicks'));
118			
119			//move thumbs forward if allowed
120			if(currClicks > 0){
121				$(this).closest('.tp-testemonials').find('.mover').animate({
122					marginLeft: '+='+colw+'px'
123				},500);
124				
125				var nuClicks = currClicks - 1;
126				$(this).closest('.tp-testemonials').attr('data-clicks',nuClicks);
127			}			
128			
129		});
130	
131	
132	
133	
134	//TABS
135		jQuery('.tabs').tabs({
136			fx: [{opacity:'toggle', duration:'normal'},
137			{opacity:'toggle', duration:'normal'}]
138		});
139});
140
141
142
143	//LITE UP COLUMNS OR LISTS		
144		jQuery(window).load(function(){
145			if(typeof ajax_is_on === 'undefined' || !ajax_is_on ){
146				var t = setTimeout(function(){
147					liteUp();
148				},2000);
149			}
150		});
151		
152					
153		function liteUp(){		
154			
155			jQuery('.liteup').each(function(){				
156			//look for columns			
157					var lup = jQuery(this);
158					var cols = jQuery('.col',this);
159					var len = jQuery('.col',this).length - 1;
160
161					
162						if(lup.attr('data-repeat') == 'forever'){						
163							//animation runs continously		
164							var looper = function(){							
165								cols.each(function(index){
166									if(index === len){
167										jQuery(this).delay(1500*index).animate({
168											opacity: 1
169										},400,function(){
170											cols.delay(1500).animate({
171												opacity: 0.4
172											},500);	
173											var x = setTimeout(function(){									
174												looper();									
175											},3500);
176										});	
177									}else{
178										jQuery(this).delay(1500*index).animate({
179											opacity: 1
180										},400);	
181									}
182								});								
183							}
184							looper();
185						}else{
186							//animation runs only 1x						
187							cols.each(function(index){
188								jQuery(this).delay(1500*index).animate({
189									opacity: 1
190								},400);							
191							});
192						}
193			});
194		}		

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.