Files @ a2081b9adfe4
Branch filter:

Location: light9/light9/effecteval/index.html

Drew Perttula
effecteval now takes dropped subs and makes new effects out of them
Ignore-this: 69423eca1858291f486dd2a202d3732a
<!doctype html>
<html>
  <head>
    <title>effecteval</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="static/style.css">
  </head>
  <body>
    <h1>All effect instances</h1>
    <!-- subscribe to a query of all effects and their songs -->
    <ul data-bind="foreach: songs" class="twoColList">
      <li>
        <a class="song" data-bind="attr: {href: uri}">Song <span data-bind="text: label"></span></a>
        <ul>
          <!-- ko foreach: effects -->
          <li><a class="effect" data-bind="attr: {href: 'effect?'+jQuery.param({uri: $data})}, text: $data"></a></li>
          <!-- /ko -->
          <li class="dropTarget" data-bind="event: {dragover: $root.dragover, dragenter: $root.dragover, drop: function(data, event) { $root.drop(uri, event); }}">Add another (drop a sub or effect class)</li>
        </ul>
      </li>
    </ul>
    <script src="static/jquery-2.1.1.min.js"></script>
    <script src="static/knockout-3.1.0.js"></script>
    <script src="static/websocket.js"></script>
    <script src="index.js"></script>
  </body>
</html>