1$(document).ready(function() { 2 //create popupcss 3 $("<div>", { 4 id: "protector", 5 css: { 6 position: "absolute", 7 "z-index": "99999", 8 width: "auto", 9 height: "auto", 10 padding: "8px", 11 "text-align": "center", 12 color: "#FFF", 13 font: "14px Verdana, Arial, Helvetica, sans-serif", 14 background: "#222", 15 display: "none", 16 border: "1px #999 solid", 17 "border-radius": "5px", 18 "text-shadow": "0 1px 0 rgba(0, 0, 0, 0.2)", 19 "-webkit-touch-callout": "none", 20 "-webkit-user-select": "none", 21 "-khtml-user-select": "none", 22 "-moz-user-select": "none", 23 "-ms-user-select": "none", 24 "user-select": "none", 25 cursor: "default" 26 } 27 }).appendTo("body"); 28 29 $("div#protector").html(copyright); 30 31 //disable image save on iOS 32 $("img, div#image").css({ 33 "-webkit-touch-callout": "none", 34 "-webkit-user-select": "none" 35 }); 36 37 //disable context on popup 38 $(document).on("contextmenu", "div#protector", function(e) { 39 return false; 40 }); 41 42 //listener that applies to all future images 43 $(document).on("contextmenu", "img", function(event) { 44 disableContextFunction(event); 45 }); 46 47 //disable drag 48 $(document).on("mousedown", "img, div#image", function(e) { 49 return false; 50 }); 51 52 var disableContextFunction = function(e) { 53 e.preventDefault(); 54 e.stopPropagation(); 55 //selectors are img, div#image (id), and div.fullscreenprotector, which is the main area of the fullscreen theme 56 var height = $("#protector").height(); 57 var width = $("#protector").width(); 58 //calculating offset for displaying popup message 59 leftVal = e.pageX - 0 + "px"; 60 topVal = e.pageY - height - 12 + "px"; 61 //show the popup message and hide with fading effect 62 $("#protector") 63 .css({ left: leftVal, top: topVal }) 64 .show() 65 .delay(750) 66 .fadeOut(500); 67 68 return false; 69 }; 70});
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.