From: Jan Michel Date: Wed, 31 Jul 2013 10:50:19 +0000 (+0200) Subject: added shortcut to change board address X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9c4773eb6968c822cc19bdfdc837a7980510104f;p=daqtools.git added shortcut to change board address --- diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index d566de5..8a4ebdc 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -46,6 +46,7 @@
  • Shift + Up/Down: Increase/Decrease by 16
  • PageUp/PageDown: Increase/Decrease by 256
  • Shift + PageUp/PageDown: Increase/Decrease by 2048 +
  • a/A: Increase / Decrease board address
  • r: Refresh values, read-back values from Padiwa @@ -139,6 +140,9 @@ function setValues() { } } +Mousetrap.bind('a', function() { board = (parseInt(board,16)+1).toString(16); document.getElementById("form_board").value = board; setValues(); }); +Mousetrap.bind('A', function() { board = (parseInt(board,16)-1).toString(16); document.getElementById("form_board").value = board; setValues(); }); + Mousetrap.bind('c', function() { ++chan; chan %= 16; document.getElementById("form_channel").value = chan; setValues(); }); Mousetrap.bind('d', function() { ++chain; chain %= 16; document.getElementById("form_chain").value = chain; setValues(); }); Mousetrap.bind(['C','v'], function() { --chan; chan%=16; if (chan<0) chan=15; document.getElementById("form_channel").value = chan; setValues(); });