PageSourceSearch

https://vestaz.ru/wp-content/plugins/aftparser/js/postprocessing.js?ver=1791333291

js vestaz.ru collected 2026-10-07 00:35:04 UTC 1,667 bytes, 56 lines download raw bytes

1/**
2 * 
3 * Основной файл скриптов.
4 * 
5 */
6(function ($, root, undefined) {
7	$(function () {
8		"use strict";
9
10		$(document).ready(function(){
11
12			/**
13			 * Table of contents
14			 */
15			var toc_path = ".toc-wrapper .toc";
16			if($(toc_path).length != 0){
17
18				var toc_selectors = "h1,h2,h3,h4";//$(toc_path).attr("toc-selectors");
19				if (typeof toc_selectors !== typeof undefined && toc_selectors !== false) {
20					if($(".toc-wrapper .toc-title").length == 0) $(".toc-wrapper").addClass('toc-hm');
21					
22					$(".toc").toc({
23						'container': $(".toc-wrapper").parent().get(0),
24		    			'selectors': toc_selectors,
25		    			'highlightOnScroll':false,
26		    		});
27				}
28				$(".toc-title").on('click', function(event) {
29					event.preventDefault();
30					let tx = $(this).text();
31					if(tx.indexOf("[Показать]") >= 0){
32						tx = tx.replace("[Показать]","[Скрыть]");
33					}else {
34						tx = tx.replace("[Скрыть]","[Показать]");
35					}
36					$(this).text(tx);
37					$(".toc-wrapper").toggleClass('toc-hm');
38				});
39			}
40
41			$('span[data-go]').replaceWith(function() {
42			    let link = $(this).attr('data-go');
43			    let text = $(this).text();
44			    return '<a href="' + link + '" target="_blank">' + text + '</a>';
45			});
46	    	
47	    	$.post(ajaxurl, {	// Асинхронно выполняем запуск отложенных операций, дабы не травмировать пользователя долой загрузкой страницы.
48					action			: 	'aft_docron',
49					data			: 	'run'
50			});
51			
52		});
53
54		
55	});
56})(jQuery, this);

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.