PageSourceSearch

https://szumowo.pl/templates/48media_szumowo/js/template.js

js szumowo.pl collected 2026-10-02 21:27:05 UTC 1,340 bytes, 45 lines download raw bytes

1/**
2 * @package     Joomla.Site
3 * @subpackage  Templates.protostar
4 * @copyright   Copyright (C) 2005 - 2013 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		$(".btn-group label:not(.active)").click(function()
18		{
19			var label = $(this);
20			var input = $('#' + label.attr('for'));
21
22			if (!input.prop('checked')) {
23				label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
24				if (input.val() == '') {
25					label.addClass('active btn-primary');
26				} else if (input.val() == 0) {
27					label.addClass('active btn-danger');
28				} else {
29					label.addClass('active btn-success');
30				}
31				input.prop('checked', true);
32			}
33		});
34		$(".btn-group input[checked=checked]").each(function()
35		{
36			if ($(this).val() == '') {
37				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
38			} else if ($(this).val() == 0) {
39				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
40			} else {
41				$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
42			}
43		});
44	})
45})(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.