PageSourceSearch

https://borneoultra.com/templates/j51_creative/js/scripts.js

js borneoultra.com collected 2026-10-08 04:59:39 UTC 1,938 bytes, 67 lines download raw bytes

1(function($) {"use strict";
2
3	$(document).ready(function() {
4
5		// Slicknav - Mobile Menu
6		$('.hornavmenu .hornav').slicknav();
7
8		// Add parent-hover class to hovered parent items
9		$('#moomenu li').hover(function () {
10			$(this).addClass('parent-hover');
11			}, function () {
12			$(this).removeClass('parent-hover');
13		});
14
15		// Smoothscroll
16		$('.scrollto').click(function() {
17			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
18				var target = $(this.hash);
19				target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
20				if (target.length) {
21					$('html,body').animate({
22					scrollTop: target.offset().top
23					}, 800);
24					return false;
25				}
26			}
27		});
28
29		// Bootstrap stuff
30		$(document).ready(function()
31		{
32			$('*[rel=tooltip]').tooltip()
33
34			// Turn radios into btn-group
35			$('.radio.btn-group label').addClass('btn');
36			$(".btn-group label:not(.active)").click(function()
37			{
38				var label = $(this);
39				var input = $('#' + label.attr('for'));
40
41				if (!input.prop('checked')) {
42					label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
43					if (input.val() == '') {
44						label.addClass('active btn-primary');
45					} else if (input.val() == 0) {
46						label.addClass('active btn-danger');
47					} else {
48						label.addClass('active btn-success');
49					}
50					input.prop('checked', true);
51				}
52			});
53			$(".btn-group input[checked=checked]").each(function()
54			{
55				if ($(this).val() == '') {
56					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
57				} else if ($(this).val() == 0) {
58					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
59				} else {
60					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
61				}
62			});
63		})
64
65
66	});
67})(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.