Wednesday 29 May 2013

Simple Capacitor Code Calculator Offline

 JavaScript based offline web page simple capacitor code calculator
browser save as .html => only saves the page source.
--------------------------------------------------------------------------------------------------------------
HTML source code


<HTML>
<HEAD>
<TITLE>Capacitor Value Calculator</TITLE>
<META name="description" content="solid state
electronics">

<BASE TARGET="_top">
<head>

<script Language="JavaScript">
<!--
function compute (obj) {

var v3=eval(obj.X2.value.charAt(2));
var v1=eval(obj.X2.value);
var v4=eval(obj.X2.value.length);

if (v4==3) {

v1=Math.floor(v1/10);
v3=Math.pow(10,v3);

obj.Out.value=v1*v3;
obj.X1.value=(v1*v3)/1000000;
obj.X3.value=(v1*v3)/1000;
}
else
{
v3=1;
obj.Out.value=v1*v3;
obj.X1.value=(v1*v3)/1000000;
obj.X3.value=(v1*v3)/1000;
}
  }
//-->
</SCRIPT>
</head>
<BODY bgcolor="#ffffff" text="#000000">
<center>
<!--  This is the title header at the top of the page with logo and advert1   -->

<!-- **************  Rotating Advert ************* -->
<p>
<font face=verdana,arial,helvetica size=5 color="#0000c0"><b><marquee>Calculate Capacitor Values</marquee></b></font><br>
<p>
<table width="640">
<tr>
<td valign="top" colspan="2">
<font face=verdana,arial,helvetica size=2>
This calculator is used to find the value of a capacitor from the 3 digit code printed on its side.  Enter the code in the box below and then hit the button to calculate the value of  the capacitor.
<p>
If the rightmost digit is zero, then the code may be a value in pF instead of the 3-digit code...  example: 100 should indicate 10pF but it may instead be a marking of the actual value of 100pF. If the rightmost digit is not zero, then the value is probably coded. Example: 101 is not 101pF but more likely 100pF.
<p>
If the capacitor code is only 2 digits, then that is certainly the value in picofarads (pF).
<p>


<br>
</font>
</td></tr></table>

<form>
<table WIDTH=610 BORDER=2 CELLPADDING=10 CELLSPACING=0>
<tr>
<td ALIGN=center VALIGN=top><font  face=verdana,arial,helvetica  SIZE=-1>

<p><b>Capacitor Code</b><p>
<input TYPE=TEXT NAME=X2 COLS=10 SIZE=10 value="240">
<br>
</td>

<td ALIGN=center VALIGN=top><font  face=verdana,arial,helvetica  SIZE=-1>
<p><b>C in uF</b><p>
<input TYPE=TEXT NAME=X1 COLS=10 SIZE=10 value="0">
</td>

<td ALIGN=center VALIGN=top><font  face=verdana,arial,helvetica  SIZE=-1>
<p><b>C in nF</b><p>
<input TYPE=TEXT NAME=X3 COLS=10 SIZE=10 value="0">
</td>

<td ALIGN=center VALIGN=top><font  face=verdana,arial,helvetica size=-1>
<p><b>C in pF</b><p>
<input TYPE=TEXT NAME=Out SIZE=10><p>
<input TYPE=Button Value="Calculate" onClick="compute(this.form)">
</td></tr>
</table>
</form>
<p> &nbsp; </p>


<hr width=80%>


<p>
<font face=verdana,arial,helvetica size="1">
<p>&copy;2013 S.Manikandan<br>
All Rights Reserved
<p>This page last modified on Friday, 23-May-2013 16:52:27 Pm
<p>http://selvanmani.blogspot.in/
<P>E-Mail : selvanmanieee@gmail.com</p>
<p>
</font>
</center>
</font>
</body></html>
-------------------------------------------------------------------------------------------------------------

ScreenShot



1 comment :

  1. This is very significant, and yet necessary towards just click this unique backlink: 48 inches in feet

    ReplyDelete