Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sample height working now

  • Loading branch information...
commit 8300a0e8ea022e668166f54d7beb3a1e40a91b92 1 parent 5c2e554
@jywarren authored
View
6 webserver/app/views/capture/_configure.html.erb
@@ -25,9 +25,11 @@
<p><i>This panel is under construction</i></p>
<label for="samplerow-slider">Sample row height (zero = top):</label>
- <input type="range" name="samplerow-slider" id="samplerow-slider" value="240" min="0" max="480" onChange="$W.setSampleRows(parseInt($('#samplerow-slider').val()),parseInt($('#samplerow-slider').val())+40);$('#heightIndicator')[0].style.height = parseInt(($('#samplerow-slider').val()/480)*280)+'px';"/>
+ <input type="range" name="samplerow-slider" id="samplerow-slider" value="240" min="0" max="480" onChange="$W.setSampleRows(parseInt($('#samplerow-slider').val()),parseInt($('#samplerow-slider').val()));$('#heightIndicator')[0].style.height = parseInt(($('#samplerow-slider').val()/480)*240)+'px';"/>
- <div id="heightIndicator" style="position:absolute;z-index:999;opacity:0.4;background:#888;border-bottom:1px solid #ccc;height:120px;width:320px;"></div>
+ <br />
+
+ <div id="heightIndicator" style="position:absolute;margin:0;z-index:999;opacity:0.4;background:#888;border-bottom:1px solid #ccc;height:120px;width:320px;"></div>
<div id="webcam"></div>
<a data-role="button" data-theme="a" href="#capture" data-panel="main">&laquo; Back</a>
</div>
View
2  webserver/public/javascripts/capture.js
@@ -56,7 +56,7 @@ $W = {
setInterval($W.alert_overexposure,3000)
$W.data = [{label: "webcam",data:[]}]
$('video')[0].width = "320"
- $('video')[0].height = "280"
+ $('video')[0].height = "240"
},
success: function (stream) {
//console.log('success')
Please sign in to comment.
Something went wrong with that request. Please try again.