PageSourceSearch

https://www.campomaior.pi.gov.br/js/custom.js

js campomaior.pi.gov.br collected 2026-10-02 23:25:14 UTC 6,841 bytes, 324 lines download raw bytes

1/*
2	Template Name: Digiqole - News Magazine Newspaper HTML5 Template
3	Author: Tripples
4	Author URI: https://themeforest.net/user/tripples
5	Description: Digiqole - News Magazine Newspaper HTML5 Template
6	Version: 1.1
7	1. Main slideshow
8	2. Site search
9	3. Owl Carousel
10	4. Video popup
11	5. Contact form
12	6. Back to top
13  
14*/
15
16
17jQuery(function($) {
18  "use strict";
19
20	/* ----------------------------------------------------------- */
21	/*  Mobile Menu
22	/* ----------------------------------------------------------- */
23	$('.navbar-nav .menu-dropdown').on('click', function (event) {
24		event.preventDefault();
25		event.stopPropagation();
26		$(this).siblings().slideToggle();
27	});
28	
29
30	$('.nav-tabs[data-toggle="tab-hover"] > li > a').hover( function(){
31    	$(this).tab('show');
32	});
33
34	/**-------------------------------------------------
35     *Fixed HEader
36     *----------------------------------------------------**/
37
38	$(window).on('scroll', function () {
39
40		/**Fixed header**/
41		if ($(window).scrollTop() > 250) {
42		   $('.is-ts-sticky').addClass('sticky fade_down_effect');
43		} else {
44		   $('.is-ts-sticky').removeClass('sticky fade_down_effect');
45		}
46  });
47
48
49
50	
51	/*==========================================================
52					search popup
53	======================================================================*/
54	if ($('.xs-modal-popup').length > 0) {
55		$('.xs-modal-popup').magnificPopup({
56			type: 'inline',
57			fixedContentPos: false,
58			fixedBgPos: true,
59			overflowY: 'auto',
60			closeBtnInside: false,
61			callbacks: {
62				beforeOpen: function beforeOpen() {
63					this.st.mainClass = "my-mfp-slide-bottom xs-promo-popup";
64				}
65			}
66		});
67	}
68
69
70
71  	/* ----------------------------------------------------------- */
72  	/*  Owl Carousel
73  	/* ----------------------------------------------------------- */
74
75  	//Trending slide
76
77  	$(".trending-slide").owlCarousel({
78
79			loop:true,
80			animateIn: 'fadeIn',
81			autoplay:true,
82			autoplayTimeout:3000,
83			autoplayHoverPause:true,
84			nav:true,
85			margin:30,
86			dots:false,
87			mouseDrag:false,
88			slideSpeed:500,
89			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
90			items : 1,
91			responsive:{
92			  0:{
93					items:1
94			  },
95			  600:{
96					items:1
97			  }
98			}
99
100		});
101
102  	$(".transing-slide-style2").owlCarousel({
103		loop:true,
104		autoplay:true,
105		autoplayTimeout:3000,
106		autoplayHoverPause:true,
107		nav:true,
108		loop:true,
109		margin:10,
110		dots:false,
111		mouseDrag:false,
112		slideSpeed:500,
113		navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
114		items : 1,
115		responsive:{
116			0:{
117				items:1
118			},
119			480:{
120				items:2
121			},
122			768:{
123				items:3,
124				mouseDrag:true,
125			}
126		}
127
128	});
129
130
131  	//Featured slide
132		$(".featured-slider").owlCarousel({
133			loop:true,
134			autoplay:false,
135			autoplayHoverPause:true,
136			nav:false,
137			margin:0,
138			loop:false,
139			dots:true,
140			mouseDrag:true,
141			touchDrag:true,
142			slideSpeed:500,
143			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
144			items : 1,
145			responsive:{
146			  0:{
147					items:1
148			  },
149			  600:{
150					items:1
151			  }
152			}
153
154		});
155
156	/*======================== 
157        trending topics 
158   ==========================*/
159   if ($('#trending-slider,#post-block-slider').length > 0) {
160	$('#trending-slider,#post-block-slider').owlCarousel({
161		nav: false,
162		items: 4,
163		margin: 30,
164		reponsiveClass: true,
165		dots: true,
166		autoplayHoverPause: true,
167		loop:true,
168		responsive: {
169			// breakpoint from 0 up
170			0: {
171				items: 1,
172			},
173			// breakpoint from 480 up
174			480: {
175				items: 2,
176			},
177			// breakpoint from 768 up
178			768: {
179				items: 2,
180			},
181			// breakpoint from 768 up
182			1200: {
183				items: 4,
184			}
185		}
186	});
187}
188	/*======================== 
189		trending topics 
190	==========================*/
191	if ($('#fullbox-slider').length > 0) {
192		$('#fullbox-slider').owlCarousel({
193			nav: false,
194			items: 4,
195			margin: 0,
196			reponsiveClass: true,
197			dots: false,
198			autoplayHoverPause: true,
199			loop:true,
200			responsive: {
201				// breakpoint from 0 up
202				0: {
203					items: 1,
204				},
205				// breakpoint from 480 up
206				480: {
207					items: 2,
208				},
209				// breakpoint from 768 up
210				768: {
211					items: 2,
212				},
213				// breakpoint from 768 up
214				1200: {
215					items: 4,
216				}
217			}
218		});
219	}
220		//Latest news slide
221
222		$(".latest-news-slide").owlCarousel({
223
224			loop:false,
225			animateIn: 'fadeInLeft',
226			autoplay:false,
227			autoplayHoverPause:true,
228			nav:true,
229			margin:30,
230			dots:false,
231			mouseDrag:false,
232			slideSpeed:500,
233			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
234			items : 3,
235			responsive:{
236			  0:{
237					items:1
238			  },
239			  600:{
240					items:3
241			  }
242			}
243
244		});
245
246	/* ----------------------------------------------------------- */
247	/*  Popup
248	/* ----------------------------------------------------------- */
249	  $(document).ready(function(){
250
251			$(".gallery-popup").colorbox({rel:'gallery-popup', transition:"fade", innerHeight:"500"});
252
253			$(".popup").colorbox({iframe:true, innerWidth:600, innerHeight:400});
254
255	  });
256
257	/* ----------------------------------------------------------- */
258	/*  Contact form
259	/* ----------------------------------------------------------- */
260
261	$('#contact-form').submit(function(){
262
263		var $form = $(this),
264			$error = $form.find('.error-container'),
265			action  = $form.attr('action');
266
267		$error.slideUp(750, function() {
268			$error.hide();
269
270			var $name = $form.find('.form-control-name'),
271				$email = $form.find('.form-control-email'),
272				$subject = $form.find('.form-control-subject'),
273				$message = $form.find('.form-control-message');
274
275			$.post(action, {
276					name: $name.val(),
277					email: $email.val(),
278					subject: $subject.val(),
279					message: $message.val()
280				},
281				function(data){
282					$error.html(data);
283					$error.slideDown('slow');
284
285					if (data.match('success') != null) {
286						$name.val('');
287						$email.val('');
288						$subject.val('');
289						$message.val('');
290					}
291				}
292			);
293
294		});
295
296		return false;
297
298	});
299
300
301	/* ----------------------------------------------------------- */
302	/*  Back to top
303	/* ----------------------------------------------------------- */
304
305		$(window).scroll(function () {
306			if ($(this).scrollTop() > 50) {
307				 $('.backto').fadeIn();
308			} else {
309				 $('.backto').fadeOut();
310			}
311		});
312
313		// scroll body to 0px on click
314		$('.backto').on('click', function () {
315			 $('.backto').tooltip('hide');
316			 $('body,html').animate({
317				  scrollTop: 0
318			 }, 800);
319			 return false;
320		});
321		
322		$('.backto').tooltip('hide');
323
324});

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.