PageSourceSearch

https://www.societateamuzicala.ro/wp-content/themes/uvali/js/functions.js?ver=7.1.2

js societateamuzicala.ro collected 2026-10-02 04:40:50 UTC 20,884 bytes, 565 lines download raw bytes

1// JavaScript Document
2
3function setCookie(key, value) {
4	var expires = new Date();
5	expires.setTime(expires.getTime() + (2 * 31 * 24 * 60 * 60 * 1000));
6	document.cookie = key + '=' + value + ';expires=' + expires.toUTCString()+ ';path=/';
7}
8
9function getCookie(key) {
10	var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
11	return keyValue ? keyValue[2] : null;
12}
13
14function ajustamodal() {
15	    var altura = jQuery(window).height() - 155; //value corresponding to the modal heading + footer
16	    jQuery(".ativa-scroll").css({"height":altura,"overflow-y":"auto"});
17}
18
19function set_home_listing_height(){
20	var hL = jQuery('div#right-side').height() -
21		jQuery('div#listing-home .module-header').height() -
22		parseInt(jQuery('div#listing-home .module-body').css('border-top-width'),10) -
23		parseInt(jQuery('div#listing-home .module-body').css('border-bottom-width'),10) -
24		parseInt(jQuery('div#listing-home .module-body').css('padding-top'),10) -
25		parseInt(jQuery('div#listing-home .module-body').css('padding-bottom'),10) - 10;
26	jQuery('div#next-concerts').height(hL);
27}
28		
29jQuery(document).ready(function($) {
30
31	// scrollMove( ele ,frame ,step )
32	scrollMove('.scroll-items',230 ,1 );
33
34	$('span#livrari').on('click', function(){
35		$('div#livrari').toggle();
36	});
37	$('span#livrari').css( 'cursor', 'pointer' );
38	$('span#livrari-down').on('click', function(){
39		$('div#livrari').toggle();
40	});
41	$('span#livrari-down').css( 'cursor', 'pointer' );
42
43	$('span#program').on('click', function(){
44		$('div#program').toggle();
45	});
46	$('span#program').css( 'cursor', 'pointer' );
47	$('span#program-down').on('click', function(){
48		$('div#program').toggle();
49	});
50	$('span#program-down').css( 'cursor', 'pointer' );
51
52	var title_home = $('div#listing-home h2.module-title').html();
53
54	if (title_home == 'Lista Restocracy - Topul restaurantelor') {
55		var oras_sel = $('#select_oras option:selected').val();
56		if (oras_sel != 'Toate orasele') {
57			$('div#listing-home h2.module-title').html('Lista Restocracy - Topul restaurantelor ' + 'din ' + oras_sel);
58		} else {
59			$('div#listing-home h2.module-title').html('Lista Restocracy - Topul restaurantelor ');
60		}
61	}
62
63	if (!getCookie('cc_cookie')){
64		$('div#adv').show();
65	}
66
67	//var elemente = $('a.cc-filter-harta.active').attr('filter_harta_key');
68	//var hcount = $('input#harta_count').val();
69	//$('span#harta-counts').html('<span id="hcount">'+hcount+' '+elemente+' culturale</span>');
70
71	$('#bandaClose').on('click',function(){
72		setCookie('cc_cookie',"1");
73		$('div#adv').hide();
74	});
75	$('button#show-listing').on('click', function(){
76		$('div#listing').toggle();
77	});
78
79	$('.cc-top-banner').slick({
80		lazyLoad: 'progressive',
81		arrows: false,
82		autoplay: true,
83		autoplaySpeed: 5000,
84		infinite: true,
85		speed: 700,
86		fade: true,
87		cssEase: 'linear'
88	});
89	$('.cc-top-banner').show();
90
91	$('.cc-right-top-banner').slick({
92		lazyLoad: 'progressive',
93		arrows: false,
94		autoplay: true,
95		autoplaySpeed: 5000,
96		infinite: true,
97		speed: 700,
98		fade: true,
99		cssEase: 'linear'
100	});
101
102	$('.cc-right-bott-banner').slick({
103		lazyLoad: 'progressive',
104		arrows: false,
105		autoplay: true,
106		autoplaySpeed: 5000,
107		infinite: true,
108		speed: 700,
109		fade: true,
110		cssEase: 'linear'
111	});
112
113	$('.cc-right-banner').slick({
114		lazyLoad: 'progressive',
115		arrows: false,
116		autoplay: true,
117		autoplaySpeed: 5000,
118		infinite: true,
119		speed: 700,
120		fade: true,
121		cssEase: 'linear'
122	});
123
124	$('.cc-right-bott1-banner').slick({
125		lazyLoad: 'progressive',
126		arrows: false,
127		autoplay: true,
128		autoplaySpeed: 5000,
129		infinite: true,
130		speed: 700,
131		fade: true,
132		cssEase: 'linear'
133	});
134
135	ajustamodal();
136	
137	$("a#referiri").click(function(event){
138		event.preventDefault();
139		$("li#articol").removeClass("active");
140		$("li#referiri").addClass("active");
141		if ($(this).closest("div").find("a#sali").length==1)
142			$("li#sali").removeClass("active");
143		$("li#fisa_tehnica").removeClass("active");
144		$("li#evaluari").removeClass("active");
145		$("li#tab3").removeClass("active");
146		$("li#tab4").removeClass("active");
147		$("li#tab5").removeClass("active");
148		$("li#tab6").removeClass("active");
149		$("div#cc-post-content-nav div#cc-post-content").hide();
150		$("div#cc-post-content-nav div#cc-post-references").show();
151		if ($(this).closest("div").find("a#sali").length==1)
152			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
153		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
154		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
155		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
156		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
157		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
158		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
159	});
160
161	$("a#sali").click(function(event){
162		event.preventDefault();
163		$("li#articol").removeClass("active");
164		$("li#referiri").removeClass("active");
165		$("li#sali").addClass("active");
166		$("li#fisa_tehnica").removeClass("active");
167		$("li#evaluari").removeClass("active");
168		$("li#tab3").removeClass("active");
169		$("li#tab4").removeClass("active");
170		$("li#tab5").removeClass("active");
171		$("li#tab6").removeClass("active");
172		$("div#cc-post-content-nav div#cc-post-content").hide();
173		$("div#cc-post-content-nav div#cc-post-references").hide();
174		$("div#cc-post-content-nav div#cc-post-content-sali").show();
175		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
176		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
177		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
178		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
179		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
180		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
181	});
182
183	$("a#fisa-tehnica").click(function(event){
184		event.preventDefault();
185		$("li#articol").removeClass("active");
186		$("li#referiri").removeClass("active");
187		$("li#sali").removeClass("active");
188		$("li#fisa_tehnica").addClass("active");
189		$("li#evaluari").removeClass("active");
190		$("li#tab3").removeClass("active");
191		$("li#tab4").removeClass("active");
192		$("li#tab5").removeClass("active");
193		$("li#tab6").removeClass("active");
194		$("div#cc-post-content-nav div#cc-post-content").hide();
195		$("div#cc-post-content-nav div#cc-post-references").hide();
196		$("div#cc-post-content-nav div#cc-post-content-sali").hide();
197		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").show();
198		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
199		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
200		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
201		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
202		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
203	});
204
205	$("a#evaluari").click(function(event){
206		event.preventDefault();
207		$("li#articol").removeClass("active");
208		$("li#referiri").removeClass("active");
209		$("li#sali").removeClass("active");
210		$("li#fisa_tehnica").removeClass("active");
211		$("li#evaluari").addClass("active");
212		$("li#tab3").removeClass("active");
213		$("li#tab4").removeClass("active");
214		$("li#tab5").removeClass("active");
215		$("li#tab6").removeClass("active");
216		$("div#cc-post-content-nav div#cc-post-content").hide();
217		$("div#cc-post-content-nav div#cc-post-references").hide();
218		$("div#cc-post-content-nav div#cc-post-content-sali").hide();
219		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
220		$("div#cc-post-content-nav div#cc-post-content-evaluari").show();
221		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
222		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
223		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
224		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
225	});
226
227	$("a#articol").click(function(event){
228		event.preventDefault();
229		$("li#articol").addClass("active");
230		if ($(this).closest("div").find("a#referiri").length==1)
231			$("li#referiri").removeClass("active");
232		if ($(this).closest("div").find("a#sali").length==1)
233			$("li#sali").removeClass("active");
234		$("li#fisa_tehnica").removeClass("active");
235		$("li#evaluari").removeClass("active");
236		$("li#tab3").removeClass("active");
237		$("li#tab4").removeClass("active");
238		$("li#tab5").removeClass("active");
239		$("li#tab6").removeClass("active");
240		$("div#cc-post-content-nav div#cc-post-content").show();
241		if ($(this).closest("div").find("a#referiri").length==1)
242			$("div#cc-post-content-nav div#cc-post-references").hide();
243		else
244			$("div#cc-post-content-nav div#cc-post-references").show();
245		if ($(this).closest("div").find("a#sali").length==1)
246			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
247		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
248		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
249		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
250		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
251		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
252		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
253	});
254
255
256	$("a#tab3").click(function(event){
257		event.preventDefault();
258		$("li#articol").removeClass("active");
259		if ($(this).closest("div").find("a#referiri").length==1)
260			$("li#referiri").removeClass("active");
261		if ($(this).closest("div").find("a#sali").length==1)
262			$("li#sali").removeClass("active");
263		$("li#fisa_tehnica").removeClass("active");
264		$("li#evaluari").removeClass("active");
265		$("li#tab3").addClass("active");
266		$("li#tab4").removeClass("active");
267		$("li#tab5").removeClass("active");
268		$("li#tab6").removeClass("active");
269		$("div#cc-post-content-nav div#cc-post-content").hide();
270		$("div#cc-post-content-nav div#cc-post-references").hide();
271		if ($(this).closest("div").find("a#sali").length==1)
272			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
273		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
274		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
275		$("div#cc-post-content-nav div#cc-post-content-tab3").show();
276		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
277		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
278		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
279	});
280
281
282	$("a#tab4").click(function(event){
283		event.preventDefault();
284		$("li#articol").removeClass("active");
285		if ($(this).closest("div").find("a#referiri").length==1)
286			$("li#referiri").removeClass("active");
287		if ($(this).closest("div").find("a#sali").length==1)
288			$("li#sali").removeClass("active");
289		$("li#fisa_tehnica").removeClass("active");
290		$("li#evaluari").removeClass("active");
291		$("li#tab3").removeClass("active");
292		$("li#tab4").addClass("active");
293		$("li#tab5").removeClass("active");
294		$("li#tab6").removeClass("active");
295		$("div#cc-post-content-nav div#cc-post-content").hide();
296		$("div#cc-post-content-nav div#cc-post-references").hide();
297		if ($(this).closest("div").find("a#sali").length==1)
298			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
299		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
300		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
301		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
302		$("div#cc-post-content-nav div#cc-post-content-tab4").show();
303		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
304		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
305	});
306
307	$("a#tab5").click(function(event){
308		event.preventDefault();
309		$("li#articol").removeClass("active");
310		if ($(this).closest("div").find("a#referiri").length==1)
311			$("li#referiri").removeClass("active");
312		if ($(this).closest("div").find("a#sali").length==1)
313			$("li#sali").removeClass("active");
314		$("li#fisa_tehnica").removeClass("active");
315		$("li#evaluari").removeClass("active");
316		$("li#tab3").removeClass("active");
317		$("li#tab4").removeClass("active");
318		$("li#tab5").addClass("active");
319		$("li#tab6").removeClass("active");
320		$("div#cc-post-content-nav div#cc-post-content").hide();
321		$("div#cc-post-content-nav div#cc-post-references").hide();
322		if ($(this).closest("div").find("a#sali").length==1)
323			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
324		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
325		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
326		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
327		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
328		$("div#cc-post-content-nav div#cc-post-content-tab5").show();
329		$("div#cc-post-content-nav div#cc-post-content-tab6").hide();
330	});
331
332	$("a#tab6").click(function(event){
333		event.preventDefault();
334		$("li#articol").removeClass("active");
335		if ($(this).closest("div").find("a#referiri").length==1)
336			$("li#referiri").removeClass("active");
337		if ($(this).closest("div").find("a#sali").length==1)
338			$("li#sali").removeClass("active");
339		$("li#fisa_tehnica").removeClass("active");
340		$("li#evaluari").removeClass("active");
341		$("li#tab3").removeClass("active");
342		$("li#tab4").removeClass("active");
343		$("li#tab5").removeClass("active");
344		$("li#tab6").addClass("active");
345		$("div#cc-post-content-nav div#cc-post-content").hide();
346		$("div#cc-post-content-nav div#cc-post-references").hide();
347		if ($(this).closest("div").find("a#sali").length==1)
348			$("div#cc-post-content-nav div#cc-post-content-sali").hide();
349		$("div#cc-post-content-nav div#cc-post-content-fisa-tehnica").hide();
350		$("div#cc-post-content-nav div#cc-post-content-evaluari").hide();
351		$("div#cc-post-content-nav div#cc-post-content-tab3").hide();
352		$("div#cc-post-content-nav div#cc-post-content-tab4").hide();
353		$("div#cc-post-content-nav div#cc-post-content-tab5").hide();
354		$("div#cc-post-content-nav div#cc-post-content-tab6").show();
355	});
356
357	$("a#formular-inscriere").click(function(event){
358		event.preventDefault();
359		$("li#formular-inscriere").addClass("active");
360		$("li#termeni-inscriere").removeClass("active");
361		$("li#exemplu-inscriere").removeClass("active");
362		$("div#cc-post-content-nav div#cc-formular-inscriere").show();
363		$("div#cc-post-content-nav div#cc-termeni-inscriere").hide();
364		$("div#cc-post-content-nav div#cc-exemplu").hide();
365	});
366
367	$("a#termeni-inscriere").click(function(event){
368		event.preventDefault();
369		$("li#formular-inscriere").removeClass("active");
370		$("li#termeni-inscriere").addClass("active");
371		$("li#exemplu-inscriere").removeClass("active");
372		$("div#cc-post-content-nav div#cc-formular-inscriere").hide();
373		$("div#cc-post-content-nav div#cc-termeni-inscriere").show();
374		$("div#cc-post-content-nav div#cc-exemplu").hide();
375	});
376
377	$(".scrollable").mCustomScrollbar({
378		theme: 'dark',
379		scrollbarPosition: 'inside',
380		mouseWheel:{ enable: true },
381		autoHideScrollbar: false,
382		html: true,
383		axis:"y",
384	});
385	
386	$('.pagination-link').click(function(event){
387		event.preventDefault();
388		$('#url_post').attr('action', $(this).attr('dest'));
389		$('#url_post').attr('target','');
390		$('#url_post input#pagina').val($(this).attr('pagina'));
391		$('#url_post').submit();
392	});
393	
394	$('#orderby').change(function(event){
395		event.preventDefault();
396		$('#url_post input#sort').val($('#orderby option:selected').val());
397		$('#url_post').submit();
398	});
399
400	$('.cult-item').click(function(event){
401		event.preventDefault();
402		$('#url_post').attr('action', $(this).attr('href'));
403		$('#url_post input#cc_cult_item').val('detail');
404		$('#url_post input#order').val('');
405		$('#url_post input#sort').val('');
406		$('#url_post').submit();
407	});
408	
409	$('.sort_catalog_asc').click(function(event){
410		event.preventDefault();
411		$('#url_post input#sort').val($(this).attr('parent'));
412		$('#url_post input#order').val('asc');
413		$('#url_post').attr('action', $(this).attr('href'));
414		$('#url_post').attr('target', '');
415		$('#url_post').submit();
416	});
417	
418	$('.sort_catalog_desc').click(function(event){
419		event.preventDefault();
420		$('#url_post input#sort').val($(this).attr('parent'));
421		$('#url_post input#order').val('desc');
422		$('#url_post').attr('action', $(this).attr('href'));
423		$('#url_post').attr('target', '');
424		$('#url_post').submit();
425	});
426
427	$('#sort_redirect_asc').click(function(event){
428		event.preventDefault();
429		$('#url_post input#order').val('asc');
430		$('#url_post').submit();
431	});
432
433	$('#sort_redirect_desc').click(function(event){
434		event.preventDefault();
435		$('#url_post input#order').val('desc');
436		$('#url_post').submit();
437	});
438
439	$('.cc-harta').click(function(event){
440		event.preventDefault();
441		$('#url_post').attr('action', $(this).attr('href'));
442		$('#url_post').submit();
443	});
444
445	$('.cc-filter').click(function(event){
446		event.preventDefault();
447		$('#url_post input#cc_filter').val($(this).attr("filter_key"));
448		$('#url_post').submit();
449	});
450
451	$('.cc-filter-harta').click(function(event){
452		event.preventDefault();
453		if ($(this).attr("filter_harta_key")=='spatii'){
454			$('#url_post input#cc_filter_harta_data').val('');
455		}
456		$('#url_post input#cc_filter_harta').val($(this).attr("filter_harta_key"));
457		//$('#url_post').submit();
458		jQuery("a#cc-filter-harta-test").trigger('click');
459	});
460
461	$('.cc-filter-harta-resto').click(function(event){
462		event.preventDefault();
463		$('#url_post input#cc_filter_harta').val($(this).attr("filter_harta_key"));
464		//$('#url_post').submit();
465		jQuery("a#cc-filter-harta-resto-test").trigger('click');
466	});
467
468	$('#filter_harta_date').change(function(event){
469		$('#url_post input#cc_filter_harta_data').val($('#filter_harta_date option:selected').val());
470		//$('#url_post').submit();
471		jQuery("a#cc-filter-harta-test").trigger('click');
472	});
473	
474	$('#recpage').change(function(event){
475		event.preventDefault();
476		$('#url_post input#posts_per_page').val($('#recpage option:selected').val());
477		$('#url_post').attr('action', $(this).attr('href'));
478		$('#url_post').attr('target', '');
479		$('#url_post').submit();
480	});
481	
482	$('.list-item-href').click(function(event){
483		event.preventDefault();
484		$('#url_post').attr('action', $(this).attr('href'));
485		$('#url_post').submit();
486	});
487	
488	$('.list-item-href-search').click(function(event){
489		event.preventDefault();
490		$('#url_post input#cat_id').val($(this).attr('cat_id'));
491		$('#url_post').attr('action', $(this).attr('href'));
492		$('#url_post').attr('target', '_blank');
493		$('#url_post').submit();
494	});
495	
496	$('.list-item-href-catalog').click(function(event){
497		event.preventDefault();
498		$('#url_post input#cat_id').val($(this).attr('cat_id'));
499		$('#url_post').attr('action', $(this).attr('href'));
500		$('#url_post').submit();
501	});
502	
503	$('#select_oras').change(function(event){
504		event.preventDefault();
505		$('#url_post input#city').val($('#select_oras option:selected').val());
506		$('#url_post').attr('action', $(this).attr('url'));
507		$('#url_post').submit();
508	});
509	
510	$('.letter-item-href').click(function(event){
511		event.preventDefault();
512		$('#url_post').attr('action', $(this).attr('dest'));
513		$('#url_post input#litera').val($(this).attr('litera'));
514		$('#url_post input#cat_id').val($(this).attr('cat_id'));
515		$('#url_post').submit();
516	});
517	
518	jQuery(window).resize(ajustamodal);
519    
520	if (false){
521		//cod pentru a adauga tag-urile OpenTag necesare lui Facebook
522	    $('head').append('<meta property="fb:admins" content="'+$('#fb_admins').val()+'" />');
523	    $('head').append('<meta property="og:title" content="'+$('#og_title').val()+'" />');
524	    $('head').append('<meta property="og:description" content="'+$('#og_description').val()+'" />');
525	    $('head').append('<meta property="og:type" content="'+$('#og_type').val()+'" />');
526	    $('head').append('<meta property="og:url" content="'+$('#og_url').val()+'" />');
527	    $('head').append('<meta property="og:site_name" content="'+$('#og_site_name').val()+'" />');
528	    $('head').append('<meta property="og:image" content="'+$('#og_image').val()+'" />');
529	}
530	
531	if (($('form#url_post input#cat_id').val()==160)
532			||($('form#url_post input#cat_id').val()==1930)){
533		$('.really_simple_share').remove();
534		$('.really_simple_share_clearfix').remove();
535	}
536	
537	$('span#catalog_info_filter').text($('input#catalog_info_filter').val());
538	
539	$('button#catalog-reset').click(function(event){
540		event.preventDefault();
541		$('#url_post input#litera').val('');
542		$('#url_post').attr('action', $(this).attr('href'));
543		$('#url_post').submit();
544	});
545
546	set_home_listing_height();
547
548	/*	$('#all-menu').hover(function () {
549            $('div#myModalSitemap')
550                .on('show.bs.modal', function() {
551                    setTimeout(function(){$('div#myModalSitemap').modal('hide');},2000);
552                })
553                .modal('show');
554        });
555
556        $(document).on('mouseenter', "div#myModalSitemap div.modal-content", (function () {
557            $('div#myModalSitemap').off('show.bs.modal');
558        }));
559
560        $(document).on('mouseleave', "div#myModalSitemap div.modal-content", (function () {
561            $('div#myModalSitemap').modal('hide');
562        }));*/
563});
564
565

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.