Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // the below code displays a slider that will control a DMX channel
  2.  
  3. <form action="{{url}}" method="POST" id="formid">
  4.     <script>
  5.         function update(caller) {
  6.             form = document.getElementById('formid')
  7.             form.caller.value = caller;
  8.             form.submit();
  9.         }
  10.     </script>
  11.     <input type="hidden" name="caller" value="">
  12.     <label for="fader{{channel.attr['id']}}">{{channel.attr['name']}}</label>
  13.     <input type="range" name="fader" id="fader{{channel.attr['id']}}" min="0" max="100" value="{{channel.attr['P']}}" onchange="update('fader{{channel.attr['id']}}')"/>
  14.  
  15.     // many more channels go here
  16.  
  17. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement