android - Need assistance with video file size project -


not sure why piece of code isn't returning value in lower box, ideas? need multiply many variables there no output in lowermost box, must work on android devices program targeted.

<!doctype html>  <html width="75">  <head>     <title>video file size calculator</title>    <script>function compute(){     var f=document.forms.form;  var iw=(number(f.pixels_wide.value / f.dpi.value));  var it=(number(f.pixels_high.value / f.dpi.value));  document.getelementbyid('inches_wide').value=iw;  document.getelementbyid('inches_high').value=it;  var tp=(number(f.pixels_wide.value * f.pixels_high.value));  document.getelementbyid('total_pixels').value=tp;  var bytes=(number(f.total_pixels.value * f.bit_depth.value));  var vfsb=(number(f.bytes.value * f.camera_frames.value * f.video_time.value));  document.getelementbyid('videobytes').value=vfsb;  }}</script>  </head>  <body width="75" bgcolor="ffff99">  <body style="width:1080px">   <h3><center>video file size calculator</center></h3>    <form action="" method="post" name="form">     <p><table>          <tr>           <td inches_wide="123" width="25">              <p>image width:</p>           </td>           <td width="251">              <p><input type="number" pattern="\d*" name="pixels_wide" size="10" onblur="compute()">              pixels</p>           </td>          </tr>        <tr>           <td inches_wide="123" width="25">              <p>image height:</p>           </td>           <td width="251">              <p><input type="number" pattern="\d*" name="pixels_high" size="10" onblur="compute()">              pixels</p>           </td>        </tr>        <tr>           <td inches_wide="123" width="250">              <p>bit depth:</p>           </td>           <td width="251">              <p><select name="bit_depth" onchange="compute()">                 <option value="0.125">1 bit (black , white)                 <option value="1">8 bit (256 color)                 <option value="2">16 bit (65536 colors)                 <option value="3">24 bit rgb (16.7 million colors)                 <option value="4" selected>32 bit cymk (16.7 million colors)                 <option value="6"> 48 bit              </select></p>           </td>        </tr>        <tr>        	 <td inches_wide="123" width="25">        	 	<p>camera fps:</p>        	 </td>        	 <td width="251">        	 	<p><input type="number" pattern="\d*" name="camera_frames" size="10" max="120" onblur="compute()">        	 	frames/second</p>        	 </td>        </tr>        <tr>        	 <td inches_wide="123" width="25">        	 	<p>length of video:</p>        	 </td>        	 <td width="251">        	 	<p><input type="number" pattern="\d*" name="video_time" size="10" onblur="compute()">        	 	seconds</p>        	 </td>        </tr>        <tr>           <td colspan="2" width="100">              <p>                            <hr>                            </p>           </td>        </tr>        <tr>           <td width="250">              <p>file size</p>           </td>           <td width="251">              <p><input type="text" name="videobytes" value="" size="10" id="videobytes" class="nn" readonly>              bytes</p>           </td>        </tr>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -