1/** 2 * @author Samele Artuso <[email protected]> 3 */ 4(function($) { 5 $.fn.unselectable = function() { 6 return this.each(function() { 7 8 $(this) 9 .css('-moz-user-select', 'none') // FF 10 .css('-khtml-user-select', 'none') // Safari, Google Chrome 11 .css('user-select', 'none'); // CSS 3 12 13 if ($.browser.msie) { // IE 14 $(this).each(function() { 15 this.ondrag = function() { 16 return false; 17 }; 18 }); 19 $(this).each(function() { 20 this.onselectstart = function() { 21 return (false); 22 }; 23 }); 24 } else if($.browser.opera) { 25 $(this).attr('unselectable', 'on'); 26 } 27 }); 28 }; 29})(jQuery);
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.