PageSourceSearch

https://brazilswaxingcenter.com/wp-content/themes/mad/js/main.js

js brazilswaxingcenter.com collected 2026-10-04 19:16:45 UTC 3,487 bytes, 163 lines download raw bytes

1jQuery(document).ready(function($) {
2
3/*
4// for text replacement on form inputs
5function textReplacement(input) {
6	var originalvalue = input.val();
7	input.focus(function() {
8	if($.trim(input.val()) == originalvalue){ input.val(""); }
9	});
10	input.blur(function() {
11	if($.trim(input.val()) == ""){ input.val(originalvalue); }
12	});
13}
14textReplacement($("#textinput1"));
15*/
16
17// Scroll body to 0px on Click of #back-top element
18$(window).scroll(function() {
19	if ($(this).scrollTop() > 200) {
20		$('#back-top').fadeIn(500);
21	} else {
22		$('#back-top').fadeOut(300);
23	}
24});
25$('#back-top a').click(function () {
26	$('body,html').animate({
27		scrollTop: 0
28	}, 800);
29	return false;
30});
31
32		$(".various").fancybox({
33			maxWidth	: 350,
34			maxHeight	: 557,
35			fitToView	: false,
36			width		: '70%',
37			height		: '70%',
38			autoSize	: false,
39			closeClick	: false,
40			openEffect	: 'none',
41			closeEffect	: 'none',
42			wrapCSS : 'news-popup'
43		});
44
45// Classy
46function init() {
47	window.addEventListener('scroll', function(e){
48		var distanceY = window.pageYOffset || document.documentElement.scrollTop,
49			shrinkOn = 60,
50			header = document.querySelector("header");
51		if (distanceY > shrinkOn) {
52			classie.add(header,"smaller");
53		} else {
54			if (classie.has(header,"smaller")) {
55				classie.remove(header,"smaller");
56			}
57		}
58	});
59}
60window.onload = init();
61
62// Masonry // a nice way to layout grid units and list items
63var $grid = $('.grid-row.masonry').imagesLoaded(function() {
64	// init Masonry after all images have loaded
65	$grid.masonry({
66		itemSelector    : '.grid-unit',
67		percentPosition : true
68	});
69});
70	
71$('[data-fancybox], .fancybox').fancybox({
72	buttons : true,
73	closeBtn : true
74});	
75
76/*
77// loads only if the cycle selector exists
78if ($(".flexslider").length > 0){ 
79	$(window).load(function() {
80		$('.flexslider').flexslider({
81			animation         : 'fade',
82			prevText          : '<i class="icon icon-left-open-big"></i><span class="visuallyhidden">previous</span>',
83			nextText          : '<i class="icon icon-right-open-big"></i><span class="visuallyhidden">next</span>',
84			directionNav: true,
85			controlNav: true
86		});
87	});
88};
89*/
90
91/*
92$('.owl-carousel.default').owlCarousel({
93	items: 6,
94	loop: true,
95	margin: 0,
96	autoWidth: false,
97	center: false,
98	dots: true,
99	nav: true,
100	navText: ['<i class="icon icon-left-open-big"></i>','<i class="icon icon-right-open-big"></i>'],
101	autoplay: true,
102	responsiveClass:true,
103	responsive : {
104		// breakpoint from 0 up
105		0 : {
106			items: 2,
107			nav: true
108		},
109		// breakpoint from 480 up
110		480 : {
111			items: 3,
112			nav: true
113		},
114		// breakpoint from 600 up
115		600 : {
116			items: 4,
117			nav: true
118		},
119		// breakpoint from 769 up
120		769 : {
121			items: 6,
122			nav: true
123		}
124	}
125});
126$('.owl-carousel.center1').owlCarousel({
127	items: 1,
128	loop: true,
129	margin: 0,
130	autoWidth: false,
131	center: true,
132	dots: true,
133	nav: true,
134	navText: ['<i class="icon icon-left-open-big"></i>','<i class="icon icon-right-open-big"></i>'],
135	autoplay: true,
136	responsiveClass:true,
137	responsive : {
138		// breakpoint from 0 up
139		0 : {
140			items: 1,
141			nav: true
142		}
143	}
144});
145*/
146
147/* Accordion Feature */
148var acc = document.getElementsByClassName("accordion-link");
149var i;
150
151for (i = 0; i < acc.length; i++) {
152  acc[i].onclick = function() {
153    this.classList.toggle("active");
154    var panel = this.nextElementSibling;
155    if (panel.style.maxHeight){
156      panel.style.maxHeight = null;
157    } else {
158      panel.style.maxHeight = panel.scrollHeight + "px";
159    }
160  };
161}
162
163});/* end document reday function */

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.