{:uriI"file:///Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/lunar_shell.coffee?type=application/javascript&pipeline=self&id=5b382b350b501d7f4af5291e3d8f45e6fa25d031607bef5d584ceb58e352b3ac:ET:load_pathI">/Users/dave/Playground/lunar_shell/app/assets/javascripts;T: filenameI"]/Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/lunar_shell.coffee;T: nameI"lunar_shell/lunar_shell;T:logical_pathI"$lunar_shell/lunar_shell.self.js;T:content_typeI"application/javascript;T:sourceI"(function() { var cli_submit, focus_cli, history_searchable, search_history, set_input_field_width; focus_cli = function() { return $('.input_field').focus(); }; cli_submit = function() { return $('#cli').submit(function(e) { var input; input = $('#command_line').val(); if (input !== 'clear') { $('#shell-history').append("
"); $('#shell-cli .prompt').clone().appendTo('#shell-history .input:last'); return $('.input').last().append(input); } }); }; set_input_field_width = function() { var body_w, prompt_w; body_w = $('body').width(); prompt_w = $('#shell-cli label').width(); return $('.input_field').width(body_w - prompt_w - 50); }; history_searchable = function() { return $('#command_line').keyup(function(e) { return search_history(e); }); }; search_history = function(e) { var dir; e.preventDefault(); dir = (function() { switch (e.which) { case 38: return 'up'; case 40: return 'down'; } })(); if (dir != null) { return $.post('/satellites/run.js', { command_line: 'history ' + dir }); } }; $(function() { focus_cli(); cli_submit(); set_input_field_width(); history_searchable(); return $(document).click(function() { return focus_cli(); }); }); $(document).ajaxComplete(function() { focus_cli(); cli_submit(); set_input_field_width(); return history_searchable(); }); $(window).on('resize', function() { return set_input_field_width(); }); }).call(this); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"kfile-digest:///Users/dave/Playground/lunar_shell/app/assets/javascripts/lunar_shell/lunar_shell.coffee;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%5+K~EcHܩ^fGTt:lengthi:dependencies_digest"% =ʏx l,u{mu\:idI"E5b382b350b501d7f4af5291e3d8f45e6fa25d031607bef5d584ceb58e352b3ac;F: mtimel+b>nW