Sha256: e178f1b0edff55e3c3a677ae35a9931e6a3a981801ffab9c455f1bfad8635a5b
Contents?: true
Size: 450 Bytes
Versions: 167
Compression:
Stored size: 450 Bytes
Contents
var scrolledToBottom = ($(window).scrollTop() + $(window).height() == $(document).height()); var lines = '<%=j render :partial => 'output_line_set', :collection => @line_sets %>'; var target = $("div.terminal div.printable"); <% if @since %> target.append(lines); <% else %> target.html(lines); <% end %> <%= render :partial => 'refresh.js' %> if (scrolledToBottom) { $("html, body").animate({ scrollTop: $(document).height() }, "slow"); }
Version data entries
167 entries across 167 versions & 1 rubygems