PageSourceSearch

https://risk-guidance.eu/templates/protostarmod/js/ac.js?11fb83

js risk-guidance.eu collected 2026-10-02 21:04:14 UTC 4,623 bytes, 148 lines download raw bytes

1function disableEnterKey(e)
2{
3	if (e.ctrlKey){
4     var key;
5     if(window.event)
6          key = window.event.keyCode;     //IE
7     else
8          key = e.which;     //firefox (97)
9    //if (key != 17) alert(key);
10     if (key == 97 || key == 65 || key == 67 || key == 99 || key == 88 || key == 120 || key == 26 || key == 85  || key == 86 || key == 83 || key == 43)
11     {
12          show_alert_message('You are not allowed to copy content or view source',e);
13          return false;
14     }else
15     	return true;
16     }
17}
18
19
20jQuery( document ).ready(function() {
21	
22  function fn_disableKeyPress(event){
23    event = (event || window.event);
24    if (event.keyCode == 123) {
25      return false;
26    }
27    else if (event.ctrlKey && event.shiftKey && event.keyCode == 73 || 
28             event.ctrlKey && event.keyCode == 85){        
29      return false;
30    }
31  }		
32  document.onkeypress = function (event) {
33	  fn_disableKeyPress(event)
34  }
35    
36  function fn_disableKeyDown(event){
37    event = (event || window.event);
38    if (event.keyCode == 123) {
39      return false;
40    }
41    else if (event.ctrlKey && event.shiftKey && event.keyCode == 73 || 
42             event.ctrlKey && event.keyCode == 85){        
43      return false;
44    }	  
45  }
46  document.onkeydown = function (event) {
47	fn_disableKeyDown(event)
48  }
49
50
51});
52
53var image_save_msg='You Can Not Save images!';
54	var no_menu_msg='Context Menu disabled!';
55	var smessage = "Съдържанието на risk-guidance.eu и технологиите, използвани в него, са под закрила на Закона за авторското право и сродните му права.";
56
57
58function disable_copy(e)
59{	
60	var elemtype = e.target.nodeName;
61  if (elemtype == "A" || e.target.closest('a')) return true;
62	var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
63	elemtype = elemtype.toUpperCase();
64	var checker_IMG = '';
65	if (elemtype == "IMG" && checker_IMG == 'checked' && e.detail >= 2) {show_alert_message(alertMsg_IMG,e);return false;}
66	if (elemtype != "TEXT" && elemtype != "TEXTAREA" && elemtype != "INPUT" && elemtype != "PASSWORD" && elemtype != "SELECT" && elemtype != "OPTION" && elemtype != "EMBED")
67	{
68		if (smessage !== "" && e.detail == 2)
69			show_alert_message(smessage,e);
70		
71		if (isSafari)
72			return true;
73		else
74			return false;
75	}	
76}
77function disable_copy_ie()
78{
79	var elemtype = window.event.srcElement.nodeName;
80	elemtype = elemtype.toUpperCase();
81	if (elemtype == "IMG") {show_alert_message(alertMsg_IMG,window.event);return false;}
82	if (elemtype != "TEXT" && elemtype != "TEXTAREA" && elemtype != "INPUT" && elemtype != "PASSWORD" && elemtype != "SELECT" && elemtype != "OPTION" && elemtype != "EMBED")
83	{
84		return false;
85	}
86}	
87function reEnable()
88{
89	return true;
90}
91document.onkeydown = disableEnterKey;
92document.onselectstart = disable_copy_ie;
93if(navigator.userAgent.indexOf('MSIE')==-1)
94{
95	document.onmousedown = disable_copy;
96	document.onclick = reEnable;
97}
98function disableSelection(target)
99{
100    //For IE This code will work
101    if (typeof target.onselectstart!="undefined")
102    target.onselectstart = disable_copy_ie;
103    
104    //For Firefox This code will work
105    else if (typeof target.style.MozUserSelect!="undefined")
106    {target.style.MozUserSelect="none";}
107    
108    //All other  (ie: Opera) This code will work
109    else
110    target.onmousedown=function(){return false}
111    target.style.cursor = "default";
112}
113//Calling the JS function directly just after body load
114window.onload = function(){disableSelection(document.body);};
115
116
117document.ondragstart = function() { return false;}
118	/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119	Disable context menu on images by GreenLava Version 1.0
120	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
121	    function nocontext(e) {
122	       return false;
123	    }
124	    document.oncontextmenu = nocontext;
125		
126var iTimeOut=0
127function show_alert_message(sMsg,e){
128	if(iTimeOut) { jQuery('.popover').hide();iTimeOut=0 }
129	if(e){
130	var left = e.pageX;
131  var top = e.pageY;
132	}else{left=10;top=10;}
133	var oPP=jQuery('.popover')
134    oPP.html(sMsg)
135  var theHeight =oPP.height();
136  var theWidth = oPP.width();
137  var stageWidth = jQuery(window).width();
138  oPP.removeClass('opposite');
139  if (stageWidth - left < theWidth) {
140    oPP.css('left', (left - (theWidth) - 30) + 'px');
141    oPP.addClass('opposite');
142  } else {
143    oPP.css('left', (left + 10) + 'px');
144  }
145  oPP.show();
146  oPP.css('top', (top - (theHeight / 2) - 10) + 'px');
147  iTimeOut = setTimeout(function(){ jQuery('.popover').fadeOut();iTimeOut=0 }, 1000);
148}

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.