Sha256: a1b1eb726562561d1b8a1727bbd4f61d3518f7acad93d5de1bd3d8754a4f00e3

Contents?: true

Size: 1.67 KB

Versions: 80

Compression:

Stored size: 1.67 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel="stylesheet" href="https://raw.github.com/gist/1706081/af944401f75ea20515a02ddb3fb43d23ecb8c662/reset.css" type="text/css">
    <style>
      <% stylesheets.each do |style| %>
        <%= style %>
      <% end %>
    </style>
    <script src="https://raw.github.com/gist/1706081/df464722a05c3c2bec450b7b5c8240d9c31fa52d/d3.min.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="wrapper">
      <h1>Routes FSM with NFA simulation</h1>
      <div class="instruction form">
        <p>
        Type a route in to the box and click "simulate".
        </p>
        <form onsubmit="return match(this.route.value);">
          <input type="text" size="30" name="route" value="/articles/new" />
          <button>simulate</button>
          <input type="reset" value="reset" onclick="return reset_graph();"/>
        </form>
        <p class="fun_routes">
          Some fun routes to try: 
          <% fun_routes.each do |path| %>
             <a href="#" onclick="document.forms[0].elements[0].value=this.text.replace(/^\s+|\s+$/g,''); return match(this.text.replace(/^\s+|\s+$/g,''));">
               <%= path %>
             </a>
          <% end %>
        </p>
      </div>
      <div class='chart' id='chart-2'>
        <%= svg %>
      </div>
      <div class="instruction">
        <p>
        This is a FSM for a system that has the following routes:
        </p>
        <ul>
          <% paths.each do |route| %>
            <li><%= route %></li>
          <% end %>
        </ul>
      </div>
    </div>
    <% javascripts.each do |js| %>
      <script><%= js %></script>
    <% end %>
  </body>
</html>

Version data entries

80 entries across 59 versions & 18 rubygems

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
swipe-rails-0.0.5 vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
challah-1.0.0.beta3 vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
challah-1.0.0.beta2 vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
challah-1.0.0.beta vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb