Sha256: 1ef74cd4bc2e379b0fcd6aeb41f886c61e975aee2332633d2c4b68fdc6757b81
Contents?: true
Size: 1.84 KB
Versions: 10
Compression:
Stored size: 1.84 KB
Contents
{I" class:ETI"BundledAsset; 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"required_assets_digest; TI"%9c45e8bd3ccbb35498ef0c4cbffcc4d6; FI" _version; TI"%7015acab0e7ee10d673b8d49cecfb54b; F
Version data entries
10 entries across 5 versions & 1 rubygems