In the 1990s, for purely practical reasons, I created a simple applet (yes, yes – there used to be such an invention on websites) for calculating the diameter of a winding wire. I designed and manufactured mains and speaker transformers. To enhance the FonAr website, I modified the applet into a simple calculator, which I posted on the company's website in the early 2000s.

In keeping with my declaration that I am reproducing the content of the Fonar website, I am allowing myself to post the aforementioned script without any changes or modifications. From a modern JavaScript perspective, it contains many unused approaches, such as the use of the var keyword, etc. I believe the script's practical advantages are negligible. However, it may be interesting for someone who programs in JavaScript and is curious to see what a script written a quarter of a century ago looks like.

I should note that due to the program's age, it may have problems running in some browsers. I haven't experienced any. Please feel free to view, try and analyze the code:

Winding wire diameter