PageSourceSearch

https://rayradavn.gov.ua/templates/protostar/js/template.js

js rayradavn.gov.ua collected 2026-10-02 21:28:04 UTC 1,495 bytes, 52 lines download raw bytes

1/**
2 * @package     Joomla.Site
3 * @subpackage  Templates.protostar
4 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
5 * @license     GNU General Public License version 2 or later; see LICENSE.txt
6 * @since       3.2
7 */
8
9(function($)
10{
11	$(document).ready(function()
12	{
13		$('*[rel=tooltip]').tooltip()
14
15		// Turn radios into btn-group
16		$('.radio.btn-group label').addClass('btn');
17
18		$(".btn-group label:not(.active)").click(function()
19		{
20			var label = $(this);
21			var input = $('#' + label.attr('for'));
22
23			if (!input.prop('checked')) {
24				label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
25				if (input.val() == '') {
26					label.addClass('active btn-primary');
27				} else if (input.val() == 0) {
28					label.addClass('active btn-danger');
29				} else {
30					label.addClass('active btn-success');
31				}
32				input.prop('checked', true);
33				input.trigger('change');
34			}
35		});
36		$(".btn-group input[checked=checked]").each(function()
37		{
38			if ($(this).val() == '') {
39				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
40			} else if ($(this).val() == 0) {
41				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
42			} else {
43				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
44			}
45		});
46		
47		$('#back-top').on('click', function(e) {
48			e.preventDefault();
49			$("html, body").animate({scrollTop: 0}, 1000);
50		});
51	})
52})(jQuery);

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.