Files @ d8b25edf6c74
Branch filter:

Location: light9/light9/effecteval/index.html

drewp@bigasterisk.com
fix dropping of subs onto effecteval
Ignore-this: 7150db275055597cdb9a5347910b032b
<!doctype html>
<html>
  <head>
    <title>effecteval</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="static/style.css">
  </head>
  <body>
    <div><a href="stats">/stats</a></div>
    <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: uri})}, text: uri"></a> <button data-bind="click: deleteEffect">Delete</button>
          </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>