PageSourceSearch

https://www.olivenholz.de/modules/leoblog/views/js/leoblog.js

js olivenholz.de collected 2026-10-10 02:04:52 UTC 3,969 bytes, 119 lines download raw bytes

1/**
2 * Owl carousel
3 *
4 * @copyright Commercial License By LeoTheme.Com 
5 * @email leotheme.com
6 * @visit http://www.leotheme.com
7 */
8$(document).ready( function(){
9	/*  */
10	var src =  $('#comment-form img.comment-capcha-image').attr('src');
11	$("#comment-form").submit( function() {
12		var action = $(this).attr('action');
13		var data = $('#comment-form').serialize();
14		
15		if( $("#comment-form").parent().find('.comment-message').length<=0 ){
16			var msg = $('<div class="comment-message"></div>');
17			$("#comment-form").before( msg );
18		}else {
19			var msg = $("#comment-form").parent().find(".comment-message");
20		}
21		// $('.btn-submit-comment').addClass('disable');
22		$('.btn-submit-comment').css({'display':'none'});
23		$('.btn-submit-comment-wrapper').addClass('bt-active');
24		$('.leoblog-cssload-container').css({'display':'block'});
25	 	$.ajax( {
26			url:action,
27			data: data+"&submitcomment="+Math.random(),
28			type:'POST',
29			dataType: 'json',
30			success:function( ct ){ 
31				if( !ct.error ){
32					$( msg ).html('<div class="alert alert-info">'+ct.message+'</div>');
33					$( 'input[type=text], textarea', '#comment-form' ).each( function(){
34						$(this).val('');
35						var srcn = src.replace('captchaimage','rand='+Math.random()+"&captchaimage");
36						$('#comment-form img.comment-capcha-image').attr( 'src', srcn );
37					} );
38				}else {
39					$( msg ).html('<div class="alert alert-warning">'+ct.message+'</div>');
40				}
41				// $('.btn-submit-comment').removeClass('disable');
42				$('.btn-submit-comment').css({'display':'block'});
43				$('.btn-submit-comment-wrapper').removeClass('bt-active');
44				$('.leoblog-cssload-container').css({'display':'none'});
45			}
46		} );  
47		return false;
48	} );
49	
50	$('.top-pagination-content a.disabled').click(function(){
51		return false;
52	})
53	
54	//DONGND:: update link in language block
55	var current_lang = prestashop.language.iso_code;
56	if (typeof array_list_rewrite != 'undefined')
57	{	
58		var current_list_rewrite = array_list_rewrite[current_lang];
59		var current_blog_rewrite = array_blog_rewrite[current_lang];
60		var current_category_rewrite = array_category_rewrite[current_lang];
61		var current_config_blog_rewrite = array_config_blog_rewrite[current_lang];
62		var current_config_category_rewrite = array_config_category_rewrite[current_lang];
63		
64		$.each(array_list_rewrite, function(iso_code, list_rewrite){
65			if (iso_code != current_lang)
66			{
67				var url_search = prestashop.urls.base_url + iso_code;			
68				// console.log(url_search);
69				//DONGND:: update for module blockgrouptop and default
70				if ($('#leo_block_top').length)
71				{
72					var parent_o = $('#leo_block_top .language-selector');
73				}
74				else
75				{
76					var parent_o = $('.language-selector-wrapper');
77				}
78				
79				parent_o.find('li a').each(function(){
80					
81					var lang_href = $(this).attr('href');
82					
83					if(lang_href.indexOf(url_search) > -1 )
84					{
85						if ($('body#module-leoblog-list').length)
86						{
87							var url_change = lang_href.replace('/'+current_list_rewrite+'.html', '/'+list_rewrite+'.html');
88						}
89						else
90						{
91							var url_change = lang_href.replace('/'+current_list_rewrite+'/', '/'+list_rewrite+'/');
92						}
93						
94						if ($('body#module-leoblog-blog').length)
95						{
96							if (config_url_use_id == 0)
97							{
98								url_change = url_change.replace('/'+current_config_blog_rewrite+'/', '/'+array_config_blog_rewrite[iso_code]+'/');
99							}
100							url_change = url_change.replace('/'+current_blog_rewrite, '/'+array_blog_rewrite[iso_code]);
101						}
102						
103						if ($('body#module-leoblog-category').length)
104						{
105							if (config_url_use_id == 0)
106							{
107								url_change = url_change.replace('/'+current_config_category_rewrite+'/', '/'+array_config_category_rewrite[iso_code]+'/');
108							}
109							url_change = url_change.replace('/'+current_category_rewrite, '/'+array_category_rewrite[iso_code]);
110						}
111						
112						$(this).attr('href', url_change);					
113					}
114				});
115			}		
116		})
117		
118	}
119} );

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.