PageSourceSearch

https://www.vizavi-tour.ru/templates/protostar/js/template.js?afd373c498b8e3aaa6264956768aacec

js vizavi-tour.ru collected 2026-10-05 00:36:23 UTC 1,783 bytes, 60 lines download raw bytes

1/**
2 * @package     Joomla.Site
3 * @subpackage  Templates.protostar
4 * @copyright   Copyright (C) 2005 - 2016 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		$('fieldset.btn-group').each(function() {
19			// Handle disabled, prevent clicks on the container, and add disabled style to each button
20			if ($(this).prop('disabled')) {
21				$(this).css('pointer-events', 'none').off('click');
22				$(this).find('.btn').addClass('disabled');
23			}
24		});
25
26		$(".btn-group label:not(.active)").click(function()
27		{
28			var label = $(this);
29			var input = $('#' + label.attr('for'));
30
31			if (!input.prop('checked')) {
32				label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
33				if (input.val() == '') {
34					label.addClass('active btn-primary');
35				} else if (input.val() == 0) {
36					label.addClass('active btn-danger');
37				} else {
38					label.addClass('active btn-success');
39				}
40				input.prop('checked', true);
41				input.trigger('change');
42			}
43		});
44		$(".btn-group input[checked=checked]").each(function()
45		{
46			if ($(this).val() == '') {
47				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
48			} else if ($(this).val() == 0) {
49				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
50			} else {
51				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
52			}
53		});
54		
55		$('#back-top').on('click', function(e) {
56			e.preventDefault();
57			$("html, body").animate({scrollTop: 0}, 1000);
58		});
59	})
60})(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.