diff options
| author | geremy | 2015-01-04 17:34:29 -0800 | 
|---|---|---|
| committer | geremy | 2015-01-04 17:34:29 -0800 | 
| commit | 2027e8b20ab05946e357f7357c91a19d3a50e483 (patch) | |
| tree | 7410b7fd7ea7f0b44e2ef7c6c41bf5eeb35a98a1 /python/examples/futureHouse/waveViz.js | |
| parent | 58974042044d53309d914eacc0e0abeca972e63e (diff) | |
| download | pubnub-python-2027e8b20ab05946e357f7357c91a19d3a50e483.tar.bz2 | |
adding ability to tweak dynamically
Diffstat (limited to 'python/examples/futureHouse/waveViz.js')
| -rw-r--r-- | python/examples/futureHouse/waveViz.js | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/python/examples/futureHouse/waveViz.js b/python/examples/futureHouse/waveViz.js index 5e59a18..a0cb53f 100644 --- a/python/examples/futureHouse/waveViz.js +++ b/python/examples/futureHouse/waveViz.js @@ -34,6 +34,16 @@ $(function () {          ctx.strokeStyle = '#ffffff';          ctx.fillStyle = 'rgb(50, 50, 80)'; +        $("#minPulseLength").on('keydown', function (e) { + +            if (e.keyCode == 13) { +                var v = $("#minPulseLength").val(); +                osc1.min = v; +                console.log("minP: " + v); +            } + +        }); +          function loop() {              var i; @@ -99,7 +109,7 @@ $(function () {                  //return max * Math.sin(a * Math.PI);                  var waveVal = a < 1 ? this.min : this.max; -                console.log(waveVal); +                // console.log(waveVal);                  return  waveVal;              } | 
