1if (jh_disabled_options_data.disabled_click == "1") { 2 document.addEventListener('contextmenu', function (e) { 3 if (jh_disabled_options_data.disabled_notifi_status == "1" && jh_disabled_options_data.disabled_notifi_text != "") { 4 jQuery.notify(jh_disabled_options_data.disabled_notifi_text, 5 { 6 position: jh_disabled_options_data.disabled_notifi_position, 7 className: 'error', 8 showAnimation: 'fadeIn', 9 hideAnimation: 'fadeOut', 10 style: 'bootstrap' 11 } 12 ); 13 } 14 e.preventDefault(); 15 }); 16} 17function isCtrlOrCmd(e) { 18 return e.ctrlKey || e.metaKey; 19} 20 21function notify() { 22 if ( 23 jh_disabled_options_data.disabled_notifi_status == "1" && 24 jh_disabled_options_data.disabled_notifi_text !== "" 25 ) { 26 jQuery.notify(jh_disabled_options_data.disabled_notifi_text, { 27 position: jh_disabled_options_data.disabled_notifi_position, 28 className: 'error', 29 showAnimation: 'fadeIn', 30 hideAnimation: 'fadeOut', 31 style: 'bootstrap' 32 }); 33 } 34} 35 36document.addEventListener('keydown', function (e) { 37 38 const key = e.key.toUpperCase(); 39 40 // F12 41 if (jh_disabled_options_data.disabled_f12 == "1" && key === "F12") { 42 notify(); 43 e.preventDefault(); 44 return false; 45 } 46 47 // Ctrl/Cmd + I OR Ctrl/Cmd + Shift + I 48 if (jh_disabled_options_data.disabled_ctst_i == "1") { 49 if (isCtrlOrCmd(e) && key === 'I') { 50 notify(); 51 e.preventDefault(); 52 return false; 53 } 54 } 55 56 // Ctrl/Cmd + C OR Ctrl/Cmd + Shift + C 57 if (jh_disabled_options_data.disabled_ctst_c == "1") { 58 if (isCtrlOrCmd(e) && key === 'C') { 59 notify(); 60 e.preventDefault(); 61 return false; 62 } 63 } 64 65 // Ctrl/Cmd + J OR Ctrl/Cmd + Shift + J 66 if (jh_disabled_options_data.disabled_ctst_j == "1") { 67 if (isCtrlOrCmd(e) && key === 'J') { 68 notify(); 69 e.preventDefault(); 70 return false; 71 } 72 } 73 74 // Ctrl/Cmd + U (View Source) 75 if (jh_disabled_options_data.disabled_ct_u == "1") { 76 if (isCtrlOrCmd(e) && key === 'U') { 77 notify(); 78 e.preventDefault(); 79 return false; 80 } 81 } 82 83 // Ctrl/Cmd + P (Print) 84 if (jh_disabled_options_data.disabled_ct_p == "1") { 85 if (isCtrlOrCmd(e) && key === 'P') { 86 notify(); 87 e.preventDefault(); 88 return false; 89 } 90 } 91 92 // Ctrl/Cmd + S (Save) 93 if (jh_disabled_options_data.disabled_ct_s == "1") { 94 if (isCtrlOrCmd(e) && key === 'S') { 95 notify(); 96 e.preventDefault(); 97 return false; 98 } 99 } 100}); 101 102document.onkeydown = function (e) { 103 if (jh_disabled_options_data.disabled_ct_p == "1") { 104 if (e.ctrlKey && e.keyCode == 'P'.charCodeAt(0)) { 105 notify(); 106 return false; 107 } 108 } 109} 110 111if (jh_disabled_options_data.disabled_dragging_img == "1") { 112 jQuery("img").mousedown(function () { 113 return false; 114 }); 115}
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.