PageSourceSearch

https://thaihouse.be/js/main.js

js thaihouse.be collected 2026-10-08 23:48:37 UTC 1,466 bytes, 58 lines download raw bytes

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

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.