1jQuery.fn.jccopyblock = function(a) { 2 a = jQuery.extend({ 3 blockRightClick: false, 4 blockDocTextSelection: false, 5 useCSS: false, 6 blockPageSave: false, 7 alertUser: false, 8 alertMessage: "Sorry! Content copy is not allowed?", 9 callback: function() {} 10 }, a); 11 if (a.blockRightClick) { 12 jQuery(document).contextmenu(function(b) { 13 if (a.alertUser && a.alertMessage.length > 0) { 14 alert(a.alertMessage) 15 } 16 b.preventDefault(); 17 return false 18 }) 19 } 20 if (a.blockDocTextSelection && !a.useCSS) { 21 jQuery(document)[0].onselectstart = function(b) { 22 if (a.alertUser && a.alertMessage.length > 0) { 23 alert(a.alertMessage) 24 } 25 b.preventDefault(); 26 return false 27 } 28 } else if (a.blockDocTextSelection && a.useCSS) { 29 jQuery("html,body").css({ 30 '-moz-user-select':'-moz-none', 31 '-moz-user-select':'none', 32 '-o-user-select':'none', 33 '-khtml-user-select':'none', 34 '-webkit-user-select':'none', 35 '-ms-user-select':'none', 36 'user-select':'none' 37 }).bind('selectstart', function(){ return false; }); 38 } 39 jQuery('body,html').keydown(function(b) { 40 if (a.blockPageSave && b.ctrlKey && (b.which == 83 || b.which == 115 || b.which == 97 || b.which == 65 || b.which == 67 || b.which == 99)) { 41 if (a.alertUser && a.alertMessage.length > 0) { 42 alert(a.alertMessage) 43 } 44 b.preventDefault(); 45 return false 46 } 47 }) 48}
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.