PageSourceSearch

https://prismua.org/wp-content/themes/prism/public/js/main.js?ver=1.0.0

js prismua.org collected 2026-10-02 02:46:05 UTC 5,682 bytes, 182 lines download raw bytes

1function scrollAnimate(){
2
3}
4$(window).resize(function(){
5	scrollAnimate();
6	height_block();
7	heightD();
8});
9$(document).ready(function() {
10	$(window).load(function(){
11		height_block();
12		heightD();
13	});
14	$(window).resize(function () {
15		height_block();
16		heightD();
17	});
18	scrollAnimate();
19	/*******scoreboard******/
20	$('.country-title').click(function(){		
21		if ($(this).hasClass('open')){
22			$(this).removeClass('open');
23			$(this).parent().find('.score-content').slideUp(222);
24		} else {
25			$('.country-title').parent().find('.score-content').slideUp(212);
26			$('.country-title').removeClass('open');
27			$(this).addClass('open');
28			$(this).parent().find('.score-content').slideDown(222);
29		}
30	});
31	
32	$('.s-butt').click(function(){
33			if($(this).hasClass('open')){
34				$(this).parent().removeClass('open').find('.s-form').hide(200);
35				$(this).removeClass('open');
36				$('.over-shad').removeClass('open');
37			} else{
38				$(this).parent().addClass('open').find('.s-form').show(200);
39				$(this).addClass('open');
40				$('.over-shad').addClass('open');
41			}
42		});
43		var menu = jQuery('header');
44		if ( $(this).scrollTop() > 10){
45			menu.addClass("fixed");
46		} else if($(this).scrollTop() <= 10 && menu.hasClass("fixed")) {
47			menu.removeClass("fixed");
48		}
49		$(window).scroll(function(){
50            if ( $(this).scrollTop() > 10){
51                menu.addClass("fixed");
52            } else if($(this).scrollTop() <= 10 && menu.hasClass("fixed")) {
53                menu.removeClass("fixed");
54            }
55        });
56		$('.m-menu').click(function(){
57			if($(this).hasClass('open')){
58				$(this).parent().removeClass('open').find('.m-container').slideUp(200);
59				$(this).removeClass('open');
60				$('.over-shad').removeClass('open');
61			} else{
62				$(this).parent().addClass('open').find('.m-container').slideDown(200);
63				$(this).addClass('open');
64				$('.over-shad').addClass('open');
65			}
66		});
67	// flexslider
68   if ( $('.flexslider').length ) {
69		jQuery('.flexslider').flexslider({
70			slideshowSpeed: 7000, 
71			animationSpeed: 0,
72			controlNav: false, 
73			prevText: "<span></span>",          
74			nextText: "<span></span>",
75			before: function(slider){
76			  $(slider).find(".animated.bounceIn").each(function(){
77				$(this).removeClass("animated bounceIn");
78			  });	
79			  $(slider).find(".animated.bounceIn").each(function(){
80				$(this).removeClass("animated bounceIn");
81			  });			
82			  $(slider).find(".animated.bounceIn").each(function(){
83				$(this).removeClass("animated bounceIn");
84			  });	
85			},
86			after: function(slider){
87			  $(slider).find(".flex-active-slide H3").addClass("animated bounceIn");
88			  $(slider).find(".flex-active-slide P.banner").addClass("animated bounceIn");
89			  $(slider).find(".flex-active-slide P.blockquote").addClass("animated bounceIn");
90			  $(slider).find(".flex-active-slide .wrap-btn").addClass("animated bounceIn");
91			  $(slider).find(".flex-active-slide H6").addClass("animated bounceIn");
92			}
93		});
94	}
95	$('#m-t-menu > ul > li > ul').each(function(){
96		console.log(2);
97		if($(this).hasClass('sub-menu')){
98			$(this).parent().find('a').after('<span class="mob-arrow"></span>');
99			console.log(1);
100		}
101	});
102	$('#m-t-menu > ul > li > .mob-arrow').click(function(){
103		if ($(this).parent().hasClass('open-menu')) {
104			$(this).parent().removeClass('open-menu');
105			$(this).parent().find('.sub-menu').slideUp();
106		} else {
107			$('#m-t-menu > ul > li').find('.sub-menu').slideUp();
108			$('#m-t-menu > ul > li').removeClass('open-menu');
109			$(this).parent().addClass('open-menu');
110			$(this).parent().find('.sub-menu').slideDown();
111		}
112	});
113	
114	//animation buttons
115	$('.wrap-btn A, .load-more, .send').hover(
116		function(){
117			$(this).addClass('animated pulse')
118		},
119		function(){
120			$(this).removeClass('animated pulse')
121		}
122	);
123	if ($('.nn-sb h4').length){
124		$('.nn-sb h4').click(function(){
125			if ($(this).hasClass('op')){
126				$(this).removeClass('op');
127				$(this).parent().find('ul').slideUp(500);
128			} else {
129				$(this).addClass('op');
130				$(this).parent().find('ul').slideDown(500);
131			}
132		});
133	}
134	/* $(function(){
135	  $(document).click(function(event) {
136		if ($(event.target).closest(".head-menu .m-container").length) return;
137		$(".head-menu .m-container").hide();
138		event.stopPropagation();
139	  });
140	}); */
141	//$(document).mouseup(function (e){ // событие клика по веб-документу
142		
143		
144		/* var div = $('.head-menu .m-container');
144 // тут указываем класс элемента
145		if (!div.is(e.target) // если клик был не по нашему блоку
146			&& div.has(e.target).length === 0 && !$('.m-menu').click()) { // и не по его дочерним элементам
147			div.hide();
148			$('.m-menu').removeClass('open');
149			$('.over-shad').removeClass('open');			// скрываем его
150		}
151		var div2 = $('.top-search .s-form');
152		if (!div2.is(e.target) // если клик был не по нашему блоку
153			&& div2.has(e.target).length === 0 && !$('.m-menu').click()) { // и не по его дочерним элементам
154			div2.hide();
155				$('.s-butt').removeClass('open');
156				$('.over-shad').removeClass('open');			// скрываем его
157		} */
158	//});
159	
160});
161function height_block() {
162	$('.post-home').removeAttr('style');
163	var height = 0;
164	$('.post-home').each(function(index, ele){
165		if($(this).height() > height){
166			height = $(this).height();
167		}
168	});
169	$('.post-home').height(height);
170}
171function heightD() {
172	$('.sc-block-cont .m-he').removeAttr('style');
173	var height = 0;
174	$('.sc-block-cont .m-he').each(function(index, ele){
175		if($(this).height() > height){
176			height = $(this).height();
177		}
178	});
179	$('.sc-block-cont .m-he').height(height);
180}
181
182

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.