{I" class:ETI"ProcessedAsset;FI"logical_path;TI"$family_gallery/user_taggings.js;FI" pathname;TI"j/media/storage/Dev/Rails/family_gallery/app/assets/javascripts/family_gallery/user_taggings.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+96óTI" length;TimI" digest;TI"%83f459a3cb87b969a33d67fb043ded5a;FI" source;TI"m(function() { $(function() { if (!($("body.controller_user_taggings").length > 0)) { return; } if ($("body.controller_user_taggings.action_new, body.controller_user_taggings.action_edit").length > 0) { $(".picture").mousemove(function(event) { var picture, position; position = $(this)[0].getBoundingClientRect(); picture = $(this); picture.data("pos-left", event.clientX - parseInt(position.left)); return picture.data("pos-top", event.clientY - parseInt(position.top)); }); return $(".picture").click(function() { var height, left, left_percentage, marker, marker_left, marker_top, picture, top, top_percentage, width; picture = $(this); width = parseInt(picture.data("width")); height = parseInt(picture.data("height")); left = parseInt(picture.data("pos-left")); top = parseInt(picture.data("pos-top")); left_percentage = (left / width) * 100; top_percentage = (top / height) * 100; $("#user_tagging_position_left").val(left_percentage); $("#user_tagging_position_top").val(top_percentage); marker = $(".tagging-marker"); marker_left = left - 50; marker_top = top - 50; return marker.css({ left: marker_left, top: marker_top }); }); } }); }).call(this); ;TI"dependency_digest;TI"%9c45e8bd3ccbb35498ef0c4cbffcc4d6;FI"required_paths;T[I"j/media/storage/Dev/Rails/family_gallery/app/assets/javascripts/family_gallery/user_taggings.js.coffee;FI"dependency_paths;T[{I" path;TI"j/media/storage/Dev/Rails/family_gallery/app/assets/javascripts/family_gallery/user_taggings.js.coffee;FI" mtime;TI"2015-03-01T16:54:33+01:00;TI" digest;TI"%ba54468f48bfe1d071c30bace03608f1;FI" _version;TI"%7015acab0e7ee10d673b8d49cecfb54b;F