File: code.html

package info (click to toggle)
coffeescript 2.7.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,360 kB
  • sloc: makefile: 20; xml: 9; sh: 6; javascript: 5
file content (19 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<aside class="code-example container-fluid bg-ribbed-dark" data-example="<%= file %>">
  <div class="row">
    <div class="col-md-6 coffeescript-input-column">
      <textarea class="coffeescript-input" id="<%= file %>-coffee"><%= cs %></textarea>
      <pre class="placeholder-code"><%= highlight('coffeescript', cs) %></pre>
    </div>
    <div class="col-md-6 javascript-output-column">
      <textarea class="javascript-output" id="<%= file %>-js"><%= js %></textarea>
      <pre class="placeholder-code"><%= highlight('javascript', js) %></pre>
    </div>
  </div>
  <% if (run) { %>
  <div class="row">
    <div class="col text-right">
      <button type="button" class="btn btn-primary" data-action="run-code-example" data-example="<%= file %>" data-run="<%= escape(run) %>"><small><%= include('play.svg') %></small><%= run === true ? '' : run.replace(/"/g, '&quot;') %></button>
    </div>
  </div>
  <% } %>
</aside>