PageSourceSearch

https://cinematecapauloamorim.com.br/js/scripts.js?v=2026-10-02-09-54-17

js cinematecapauloamorim.com.br collected 2026-10-02 12:54:39 UTC 7,929 bytes, 297 lines download raw bytes

1$(document).ready(function(){
2	
3	$.mask.definitions['n'] = "[0-9\,\.]";
4	$(".numbermask").mask("99999999999999",{autoclear: false, placeholder:" "});
5	$(".fonemask").mask("(99) 999999999",{autoclear: false, placeholder:" "});
6	$(".moneymask").mask("R$ nnnnnnnnnnnnnnn",{autoclear: false, placeholder:" "});
7	$(".cpfmask").mask("999.999.999-99",{autoclear: false, placeholder:" "});
8	$(".rgmask").mask("9999999999",{autoclear: false, placeholder:" "});
9	$(".cepmask").mask("99999-999",{autoclear: false, placeholder:" "});
10	$(".metrosmask").mask("99999999999 m²",{autoclear: false, placeholder:" "});
11	
12	if(document.getElementById('galeria-inline')){
13		blueimp.Gallery(
14			document.getElementById('galeria-inline').getElementsByTagName('a'),
15			{
16				container: '#blueimp-gallery-carousel',
17				carousel: true,
18				stretchImages: 'cover',
19			}
20		);
21	};
22	
23	$('.dropdown-submenu > a').on("click", function(e) {
24		var submenu = $(this);
25		//$('.dropdown-submenu .dropdown-menu').removeClass('show');
26		$('.dropdown-submenu').removeClass('show');
27		//submenu.next('.dropdown-menu').addClass('show');
28		submenu.parent().addClass('show');
29		e.stopPropagation();
30	});
31
32	$('.dropdown').on("hidden.bs.dropdown", function() {
33		// hide any open menus when parent closes
34		$('.dropdown-menu.show').removeClass('show');
35	});
36
37
38	
39	$('[data-toggle="tooltip"]').tooltip();
40	
41
42	$('.galeria-slick').on("click", function (event) {
43		event.preventDefault();
44
45			var target = event.target || event.srcElement,
46		link = $(target).attr("src") ? target.parentNode : target,
47		options = {index: link, event: event},
48		//links = $(this).find('a');
49		links = $(this).find('.slick-slide:not(.slick-cloned) a');
50
51		blueimp.Gallery(links, options);
52	});
53	
54	$('.galeria_blueimp').on("click", function (event) {
55		event.preventDefault();
56
57		var target = event.target || event.srcElement,
58		link = $(target).attr("src") ? target.parentNode : target,
59		options = {index: link, event: event},
60		links = $(this).find('a');
61		//links = $(this).find('.slick-slide:not(.slick-cloned) a');
62
63		//alert(target);
64
65		blueimp.Gallery(links, options);
66	});
67
68
69	$('.slick-home').slick({
70		dots:false,
71		arrows:true,
72		autoplay: true,
73		autoplaySpeed: 2000,
74		slidesToShow: 2,
75		adaptiveHeight: true,		
76		variableWidth: false,
77		centerMode: false,
78		prevArrow : '<div class="prev bg-primary d-flex lh-1"><i class="fa fa-chevron-left fa-lg m-auto" ></i></div>',
79		nextArrow : '<div class="next bg-primary d-flex lh-1"><i class="fa fa-chevron-right fa-lg m-auto" ></i></div>',
80		responsive: [
81		{
82		  breakpoint: 768,
83		  settings: {
84			arrows: false,
85			dots:false,
86			slidesToShow: 1,
87			centerMode: true,
88		  }
89		},],
90	});
91	
92	
93	
94	
95	$('#searchp').on("change",function(){
96		$(this).removeClass("hiddenwidth");
97	});
98
99	
100	$('.mobile-menu-trigger').on("click",function(){
101		$("#mobile_menu").toggleClass("open",1000);
102	});
103
104	$('#mobile_menu .btn-close').on("click",function(){
105		$("#mobile_menu").toggleClass("open",1000);
106	});
107	
108	$('.galeria_blueimp').on("click", function (event) {
109		
110		event = event || window.event
111		var target = event.target || event.srcElement
112		var link = target.src ? target.parentNode : target
113		var options = { index: link, event: event }
114		var links = this.getElementsByTagName('a')
115		blueimp.Gallery(links, options)
116	  });
117
118	
119
120	$('#modal-videos').on('show.bs.modal', function (event) {
121		var button = $(event.relatedTarget);
122		var active = button.data('active');
123		var videos = button.data('videos');
124		var modal = $(this);
125		//var result;
126		modal.find('.modal-body .carousel-inner').html("");
127		//console.log(videos);
128		$.each(videos, function(key,value) {
129			if(active == key){
130				var slideativo = "active";
131			}else{
132				var slideativo = "";
133			}
134			$.ajax({
135				type: "POST",
136				url: "ajax-requests.php",
137				data: "&action=get-embed-video&url="+value,
138				async: false,
139				success: function(data) {
140					modal.find('.modal-body .carousel-inner').append("<div class='carousel-item "+slideativo+"'>" + data.embed + '</div>');
141					
142					//console.log(data);
143				}, error: function(xhr, status, error){
144					 //var errorMessage = xhr.status + ': ' + xhr.statusText
145					 //console.log('Error - ' + errorMessage);
146			}});
147		}); 
148		$('.carousel-videos').carousel(active);
149		//console.log(result);
150		//modal.find('.modal-body .carousel-inner').html(result);
151		//modal.find('.modal-body .mapa').attr("src","https://maps.google.it/maps?q=" + encoded + "&output=embed");
152	});
153	
154	
155	$('a.play-video').click(function(){
156	  $('.youtube-video')[0].contentWindow.postMessage('{"event":"command","func":"' + 'playVideo' + '","args":""}', '*');
157	});
158
159	$('a.stop-video').click(function(){
160	  $('.youtube-video')[0].contentWindow.postMessage('{"event":"command","func":"' + 'stopVideo' + '","args":""}', '*');
161	});
162
163	$('a.pause-video').click(function(){
164
165		for(var i = 0; i < $('.youtube-video').length; i++){
166			$('.youtube-video')[i].contentWindow.postMessage('{"event":"command","func":"' + 'pauseVideo' + '","args":""}', '*');
167		}
168	});
169	
170	$('.modal-backdrop').click(function(){
171
172		for(var i = 0; i < $('.youtube-video').length; i++){
173			$('.youtube-video')[i].contentWindow.postMessage('{"event":"command","func":"' + 'pauseVideo' + '","args":""}', '*');
174		}
175	});
176	
177	calcwidth();
178	$(window).on("resize",function(){
179		calcwidth();
180	});
181	//$('.calcwidth').width()
182	//$('.calcwidth').css({
183		
184	//});
185	
186});	
187
188function limpabusca(e){
189	e.preventDefault();
190	$(':input').not(':button, :submit, :reset, :hidden, :checkbox, :radio').val('');
191}
192
193function calcwidth(){
194	$('.calcwidth img').each(function(){
195		imgwidth = $(this).width();
196		$(this).width(imgwidth);
197	});
198}
199
200$.fn.isInViewport = function() {
201	var elementTop = $(this).offset().top;
202	var elementBottom = elementTop + $(this).outerHeight();
203
204	var viewportTop = $(window).scrollTop();
205	var viewportBottom = viewportTop + $(window).height();
206
207	return elementBottom > viewportTop && elementTop < viewportBottom;
208};
209	
210function ativaslick(){
211	setTimeout(function() { 
212		$('.slick').slick({
213			dots:true
214		});
215	}, 500);
216}
217
218function ativaslick2(){
219	setTimeout(function() { 
220		$('.slick-videos').slick({
221			dots:true,
222			slidesToShow: 4,
223			slidesToScroll: 4,
224		});
225	}, 500);
226}
227
228function fechar(th){
229	$(th).parent().fadeOut();
230}
231
232function show_hidden_field(th, key){
233	if($('#hidden_field_'+key).is(':visible')){
234		$('#hidden_field_'+key).fadeOut();
235	}else{
236		$('#hidden_field_'+key).fadeIn();
237	}	
238}
239
240function submitSearch(th,event){
241	event.preventDefault();
242	
243	form = $(th);
244	val = form.find("input[name='search']").val();
245	url = "posts/search/"+val;
246	window.location.href = url;
247
248}
249
250function submitSearchData(th,event){
251	event.preventDefault();
252	
253	form = $(th);
254	val = form.find("input[name='data']").val().split("/");
255	data = val[2]+"-"+val[1]+"-"+val[0];
256	url = "posts/data/"+data;
257	window.location.href = url;
258
259}
260
261
262function mudavideo(th){
263	url = $(th).data('video-url');
264	$.ajax({
265		type: "POST",
266		url: "ajax-requests.php",
267		data: "&action=get-embed-video&url="+url,
268		success: function(data) {
269			
270			$('.main-video').html(data.embed);
271		},error: function() {
272			alert('nao');
273	}});
274}
275function mudavideo2(th){
276	url = $(th).data('video-url');
277	$.ajax({
278		type: "POST",
279		url: "ajax-requests.php",
280		data: "&action=get-embed-video&url="+url,
281		success: function(data) {
282			
283			$('.main-video-2').html(data.embed);
284		},error: function() {
285			alert('nao');
286	}});
287}
288
289function validateRecaptcha(id){
290	var response = grecaptcha.getResponse(id);
291    if (response.length === 0) {
292        alert("Por favor, marque o campo de verificação ante de prosseguir");
293        return false;
294    } else {
295        return true;
296    }
297}

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.