1// Generated by CoffeeScript 1.10.0 2(function() { 3 "use strict"; 4 var $, Image_Protector; 5 6 $ = jQuery; 7 8 Image_Protector = (function() { 9 function Image_Protector() { 10 $(document).on('contextmenu', 'img, #photection', this.protect); 11 $(document).on('click', '#photection', this.close); 12 } 13 14 Image_Protector.prototype.protect = function(e) { 15 var $message, position; 16 $message = $('#photection-message'); 17 $('#photection').addClass('is-active'); 18 $message.css({}); 19 if (e.clientX > 0 && e.clientY > 0) { 20 position = { 21 left: e.clientX, 22 top: e.clientY 23 }; 24 $('#photection-message').css(position); 25 } 26 return false; 27 }; 28 29 Image_Protector.prototype.close = function() { 30 return $('#photection').removeClass('is-active'); 31 }; 32 33 return Image_Protector; 34 35 })(); 36 37 $(document).ready(function() { 38 return new Image_Protector(); 39 }); 40 41}).call(this);
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.