PageSourceSearch

https://vlada.info/themes/default/js/functions.js

js vlada.info collected 2026-10-03 02:50:29 UTC 2,099 bytes, 88 lines download raw bytes

1$(document).ready(function(){
2
3    show_hide_nav();
4    $(window).resize(function() {
5        show_hide_nav();
6    });
7	
8	$("#sel_1").on("change",function(){
9		var redir_url = $(this).val();
10		location = redir_url;
11	});	
12	$("#sel_2").on("change",function(){
13		var redir_url = $(this).val();
14		location = redir_url;
15	});
16	$("#sel_3").on("change",function(){
17		var redir_url = $(this).val();
18		location = redir_url;
19	});
20	$("#sel_4").on("change",function(){
21		var opened = $(this).val();
22		$.ajax({
23			url: "/ajax.php",
24			type: "POST",
25			data: ({
26				pAction : 'change_opened',
27				opened : opened
28			}),
29			success: function(result) {
30				location.reload();
31			}
32		});
33	});
34	
35	$(".collapse_button").on("click",function(){
36		if ($(this).hasClass("collapsed")) {
37			$(".collapse_button span").html("-");
38		} else {
39			$(".collapse_button span").html("+");
40		}
41	});
42
43    $("a[data-toggle='lightbox']").imageLightbox({
44        onStart: 	 function() { overlayOn(); },
45        onEnd:	 	 function() { overlayOff(); activityIndicatorOff(); },
46        onLoadStart: function() { activityIndicatorOn(); },
47        onLoadEnd:	 function() { activityIndicatorOff(); }
48    });
49	
50	$("#informer_area").click(function(){
51        $(this).select();
52    });
53
54});
55
56function reloadCaptcha(img_id){
57    $("img#"+img_id).attr("src", "/libs/kcaptcha/index.php?"+Math.random());
58}
59
60function show_hide_nav() {
61    if ($(window).width()<=992 && $(".navbar").not(".navbar-fixed-top")){
62        $(".navbar").addClass("navbar-fixed-top").removeClass("navbar-static-top");
63        $("body").css("padding-top","50px");
64    } else {
65        $(".navbar").removeClass("navbar-fixed-top").addClass("navbar-static-top");
66        $("body").css("padding-top","0px");
67    }
68}
69
70function activityIndicatorOn()
71{
72    $( '<div id="imagelightbox-loading"><div></div></div>' ).appendTo( 'body' );
73}
74
75function activityIndicatorOff()
76{
77    $( '#imagelightbox-loading' ).remove();
78}
79
80function overlayOn()
81{
82    $( '<div id="imagelightbox-overlay"></div>' ).appendTo( 'body' );
83}
84
85function overlayOff()
86{
87    $( '#imagelightbox-overlay' ).remove();
88}

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.