{:uriI"file:///Users/kangguru/Development/railslove/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee?type=application/javascript&pipeline=self&id=620c81ca9cd5444bc1772dacb1207fa88edf07f38e77ba0a142867b326d2bc01:ET:load_pathI"J/Users/kangguru/Development/railslove/i18n_viz/app/assets/javascripts;T: filenameI"a/Users/kangguru/Development/railslove/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee;T: nameI"i18n_viz/gui;T:logical_pathI"i18n_viz/gui.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { $(document).ready(function() { $("body").append('
...
').click(function() { return $("#i18n_viz_tooltip").hide(); }); $.fn.initGUI = function() { var $i18n_element, keys; $i18n_element = $(this); keys = $i18n_element.data("i18n-keys"); $i18n_element.mouseenter(function() { var $tooltip, left, top; $tooltip = $("#i18n_viz_tooltip"); top = $i18n_element.offset().top - $tooltip.outerHeight(); left = $i18n_element.offset().left; if (top < 0) { top = $i18n_element.offset().top + $i18n_element.height() + 10; } $tooltip.html(''); keys.forEach(function(value) { if (window.I18nViz.external_tool_url.length > 0) { return $tooltip.append('' + value + ''); } else { return $tooltip.append("" + value + ""); } }); return $tooltip.css({ top: top, left: left }).show(); }); return $i18n_element; }; $(":i18n-textnode").each(function() { return $(this).enrichWithI18nData().clearI18nText().initGUI(); }); return $("input:i18n-value-placeholder").each(function() { var $i18n_input_element, cleared_input_value, cleared_placeholder_value, input_value, placeholder_value; $i18n_input_element = $(this); input_value = $i18n_input_element.val(); placeholder_value = $i18n_input_element.attr('placeholder'); $i18n_input_element.enrichWithI18nData(); cleared_input_value = input_value.replace(window.I18nViz.global_regex, ""); $(this).val(cleared_input_value); if (placeholder_value) { cleared_placeholder_value = placeholder_value.replace(window.I18nViz.global_regex, ""); return $(this).attr('placeholder', cleared_placeholder_value); } }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"ofile-digest:///Users/kangguru/Development/railslove/i18n_viz/app/assets/javascripts/i18n_viz/gui.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%]+첄JY0djA: lengthi:dependencies_digest"%Kt,~vƢ")ѯpNM:idI"E620c81ca9cd5444bc1772dacb1207fa88edf07f38e77ba0a142867b326d2bc01;F: mtimel+V