PageSourceSearch

https://www.zamnesia.com/themes/responsive/js/blog.js?_=560f8f09da050aa5b6497d2740097f16

js zamnesia.com collected 2026-09-24 18:32:09 UTC 2,852 bytes, 111 lines download raw bytes

1// /themes/responsive/js/modules/prestablog/blog.js
2// updated heigh two to neat element
3function fixBlogHeight() {
4	var self = $("li.single-article-wrapper").not(":first-child").find(".news-title");
5	var titles_array = $();
6	if ($(window).width() <= 767) {
7		self.css('height', '');
8	} else {
9		self.each(function () {
10			titles_array = titles_array.add($(this));
11			if (titles_array.length == 2) {
12				titles_array.equalHeights();
13				titles_array = $();
14			}
15		});
16	}
17}
18
19function adjustFirstBlogPost() {
20	var $post = $('.product_list').find('.single-article-wrapper.first_item');
21	if (!$post.length) {
22		return;
23	}
24	if ($(window).width() >= 768) {
25		$post.find('.post-info').outerHeight($post.find('.post_link').outerHeight());
26	}
27	else {
28		$post.find('.post-info').outerHeight('auto');
29	}
30};
31
32function setBlogSearchFrom()
33{
34	var searchBox = $('.blog-search-container:visible');
35	var input = searchBox.find('.search_query');
36	var submitButton = searchBox.find('.submit-button');
37
38	var isDesktop = searchBox.closest('.right_column').length;
39
40	if (!isDesktop) {
41		searchBox.width(200 + $(window).width() / 8);
42	}
43	input.width(searchBox.width() - submitButton.outerWidth() - 10 - 3);
44	input.css('margin-left', '5px');
45}
46
47// /themes/responsive/js/cms.js
48
49function submitPublishCMS(url, redirect)
50{
51	var id_cms = $('#admin-action-cms-id').val();
52
53	$.ajaxSetup({async: false});
54	$.post(url+'/ajax.php', { submitPublishCMS: '1', id_cms: id_cms, status: 1, redirect: redirect },
55		function(data)
56		{
57			if (data.indexOf('error') === -1)
58				document.location.href = data;
59		}
60	);
61
62	return true;
63}
64
65$(document).ready(function() {
66	$('.lazy-blog').Lazy({
67		chainable: false,
68		afterLoad: function (element) {
69			var imageSrc = element.attr('src');
70			var imageId = element.data('id');
71			$('#' + imageId).css('background-image', "url('" + imageSrc + "')");
72		}
73	});
74
75	$(window).on('load',function () {
76		adjustFirstBlogPost();
77		// fixBlogHeight();
78		setVideoHeight();
79	});
80
81	$(window).resize(function () {
82		setBlogSearchFrom();
83		adjustFirstBlogPost();
84		// fixBlogHeight();
85	});
86
87	$('.blog_search_top_block .blog-search-label').click(function (e) {
88		e.preventDefault();
89		$(this).closest('.blog_search_top_block').find('.categories').slideToggle()
90	});
91
92
93	if ($('#affix .bottom-line .progress-line').length) {
94		var recalc_progress = function () {
95			var total = $('.newsContent').outerHeight();
96			var start_from = $('.newsContent').offset().top - 300;
97			var current_pos = $(window).scrollTop();
98			var window_height = $(window).height();
99			var percentage = (current_pos - start_from + window_height / 2) / total;
100			$('#affix .bottom-line .progress-line').css('width', (percentage * 100) + '%');
101		};
102		recalc_progress();
103		$(window).scroll(function () {
104			recalc_progress();
105		});
106		$(window).resize(function () {
107			recalc_progress();
108		});
109	}
110
111});

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.