PageSourceSearch

https://www.erica.es/wp-content/themes/envision/js/general.js?v=2

js erica.es collected 2026-10-02 23:23:58 UTC 3,074 bytes, 117 lines download raw bytes

1$(document).ready(function() {
2	$(".sub-menu").parent("li").addClass("parent");
3	$(".sub-menu li:first-child").addClass("first");
4	$(".sub-menu li:last-child").addClass("last");
5
6	$(".topmenu .sub-menu .parent a").click(function() {
7		$(this).parent().children("ul").slideToggle(200);
8		$(this).parent().toggleClass("open");
9	});
10			
11	$("ul.tabs").tabs("> .tabcontent", {tabs: 'li'});
12	$(".row .col:first-child").addClass("alpha");
13	$(".row .col:last-child").addClass("omega"); 
14	
15// toggle content
16	$(".toggle_content, .highlighter").hide();
17	
18	$("h3.toggle").toggle(function(){
19		$(this).addClass("active");
20		}, function () {
21		$(this).removeClass("active");
22	});
23	
24	$("h3.toggle").click(function(){
25		$(this).next(".highlighter").slideToggle();
26		$(this).next(".toggle_content").slideToggle();
27	});
28
29// pagination
30	var islast = $(".pagination .inner a:last").hasClass('page_current');
31	if(islast) $(".pagination .inner").css('padding-right','35px');
32
33	if ($.browser.msie  && parseInt($.browser.version) == 7) {
34	 	var ispageprev = $(".pagination .inner a").hasClass('page_prev');
35		if(ispageprev) $(".pagination, .pagination .inner").css('padding-left','0px');
36	}
37
38
39// gallery
40	$(".gl_col_2 .gallery-item::nth-child(2n)").addClass("nomargin");
41	$(".gl_col_3 .gallery-item::nth-child(3n)").addClass("nomargin");
42	$(".gl_col_4 .gallery-item::nth-child(4n)").addClass("nomargin");
43
44	$(".gallery-image a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',overlay_gallery: false});
45
46// comments scroll
47	$('.link-top').click(function () {
48		$('body,html').animate({
49			scrollTop: 0
50		},
51		1500);
52	});
53	$('.link-bottom, .link-addcomment').click(function () {
54		$('body,html').animate({
55			scrollTop: $('#comments').offset().top
56		},
57		1500);
58		return false;
59	});
60		
61});
62
63
64// minigallery
65$(document).ready(function() {
66	$(".minigallery").jCarouselLite({
67		btnNext: ".next",
68		btnPrev: ".prev",
69		scroll: 2,
70		visible: 4,
71		speed: 400,
72		mouseWheel: true,
73		circular:false,
74		easing: "easeInOutCubic"
75	});
76
77	$(".minigallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook',overlay_gallery: false});
78});
79
80
81// Pricing table
82$(document).ready(function() {
83	$(".table-pricing td.table-row-title:even").addClass("even");
84	$(".table-pricing").columnHover({eachCell:true, hoverClass:'tablecolhover', includeSpans:false, ignoreCols: [1]});
85});
86
87
88
89$(function () {  
90     $(window).scroll(function () {  
91         if ($(this).scrollTop() != 0) {  
92             $('.link-top').fadeIn();  
93         } else {  
94             $('.link-top').fadeOut();  
95         }  
96     });  
97     $('.link-top').click(function () {  
98         $('body,html').animate({  
99             scrollTop: 0  
100         },  
101         1500);  
102     });  
103 });
104
105
106// Testimonials
107$(document).ready(
108	function(){
109		$('#quotes').innerfade({
110			animationtype: 'fade',
111			speed: 'slow',
112			timeout: 5000,
113			type: 'sequence',
114			containerheight: '115px'
115		});
116		$('.quote-text').css('margin','0');
117});

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.