Sha256: 042b9e6332e1f792ac48a052a8b25648deb981fb88ca57a8283fbb1df147e3c2

Contents?: true

Size: 1.5 KB

Versions: 15

Compression:

Stored size: 1.5 KB

Contents

<% content_for :head do %>
  <%= javascript_include_tag :jquery %>
  <%= javascript_include_tag 'jax/runtime' %>
  <%= javascript_include_tag 'jax/controller-list' %>
  <%= stylesheet_link_tag 'jax/suite' %>
  <%= stylesheet_link_tag 'jax/controller-list' %>
<% end %>

<% content_for :below_nav do %>
  <a href="#" onclick="toggleCustomizationHelp();return false;">customize</a>
<% end %>

<div id="how-to-customize">
  <p>
  This is the default page loaded when Jax doesn't know where to find your real WebGL application.
  You can continue using this page to test your JavaScript, or you can customize it
  by adding the following code to <strong>config/initializers/jax.rb</strong>:
  </p>

  <div class="code">
  Jax.config.webgl_start = "/path/to/start.html"

  # Alternatively, you can use a routing hash like so:
  #
  #   Jax.config.webgl_start = {
  #     :controller => "webgl",
  #     :action => "index"
  #   }
  #
  # You can also use a proc to defer the decision until runtime:
  #
  #   Jax.config.webgl_start = proc do
  #     { :controller => "webgl", :action => "profile", :id => params[:id] }
  #   end
  #
  </div>
</div>

<div id="controller-list" class="list">
  <!--
    this list is populated by JS. It contains a selection of controllers for the user to test.
    When an item is selected, it fires Jax.Controller#redirectTo(item).
  -->
</div>

<canvas id="webgl" width="640" height="470">
  Sorry, your browser doesn't support the &lt;canvas/&gt; tag. Please come back with a newer
  browser.
</canvas>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jax-3.0.0.rc2 app/views/jax/suite/run_webgl.html.erb
jax-2.0.12 app/views/jax/suite/run_webgl.html.erb
jax-3.0.0.rc1 app/views/jax/suite/run_webgl.html.erb
jax-2.0.11 app/views/jax/suite/run_webgl.html.erb
jax-2.0.10 app/views/jax/suite/run_webgl.html.erb
jax-2.0.9 app/views/jax/suite/run_webgl.html.erb
jax-2.0.8 app/views/jax/suite/run_webgl.html.erb
jax-2.0.7 app/views/jax/suite/run_webgl.html.erb
jax-2.0.6 app/views/jax/suite/run_webgl.html.erb
jax-2.0.5 app/views/jax/suite/run_webgl.html.erb
jax-2.0.4 app/views/jax/suite/run_webgl.html.erb
jax-2.0.3 app/views/jax/suite/run_webgl.html.erb
jax-2.0.2 app/views/jax/suite/run_webgl.html.erb
jax-2.0.1 app/views/jax/suite/run_webgl.html.erb
jax-2.0.0 app/views/jax/suite/run_webgl.html.erb