PageSourceSearch

https://parklandssolar.com/js/main.js

js parklandssolar.com collected 2026-10-06 22:44:44 UTC 1,677 bytes, 70 lines download raw bytes

1jQuery(function($) {'use strict',
2
3	//#main-slider
4	$(function(){
5		$('#main-slider.carousel').carousel({
6			interval: 8000
7		});
8	});
9
10
11	// accordian
12	$('.accordion-toggle').on('click', function(){
13		$(this).closest('.panel-group').children().each(function(){
14		$(this).find('>.panel-heading').removeClass('active');
15		 });
16
17	 	$(this).closest('.panel-heading').toggleClass('active');
18	});
19
20	//Initiat WOW JS
21	new WOW().init();
22
23	// portfolio filter
24	$(window).load(function(){'use strict';
25		var $portfolio_selectors = $('.portfolio-filter >li>a');
26		var $portfolio = $('.portfolio-items');
27		$portfolio.isotope({
28			itemSelector : '.portfolio-item',
29			layoutMode : 'fitRows'
30		});
31		
32		$portfolio_selectors.on('click', function(){
33			$portfolio_selectors.removeClass('active');
34			$(this).addClass('active');
35			var selector = $(this).attr('data-filter');
36			$portfolio.isotope({ filter: selector });
37			return false;
38		});
39	});
40
41	// Contact form
42	var form = $('#main-contact-form');
43	form.submit(function(event){
44		event.preventDefault();
45		var form_status = $('<div class="form_status"></div>');
46		$.ajax({
47			url: $(this).attr('action'),
48
49			beforeSend: function(){
50				form.prepend( form_status.html('<p><i class="fa fa-spinner fa-spin"></i> Email is sending...</p>').fadeIn() );
51			}
52		}).done(function(data){
53			form_status.html('<p class="text-success">' + data.message + '</p>').delay(3000).fadeOut();
54		});
55	});
56
57	
58	//goto top
59	$('.gototop').click(function(event) {
60		event.preventDefault();
61		$('html, body').animate({
62			scrollTop: $("body").offset().top
63		}, 500);
64	});	
65
66	//Pretty Photo
67	$("a[rel^='prettyPhoto']").prettyPhoto({
68		social_tools: false
69	});	
70});

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.