Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/barrettotte/wc-resistor-calc

A resistor color code calculator as a vanilla JS web component.
https://github.com/barrettotte/wc-resistor-calc

vanilla-js web-components

Last synced: about 1 month ago
JSON representation

A resistor color code calculator as a vanilla JS web component.

Awesome Lists containing this project

README

        

# wc-resistor-calc

A resistor color code calculator as a vanilla JS web component.

This was just a trivial example to play around with web components before diving
into making web components with Stencil.js. I pretty much just cloned the resistor
color code calculator from [Digi-Key](https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-resistor-color-code)

## Usage

```html

```

Also deployed to [https://barrettotte.github.io/wc-resistor-calc/](https://barrettotte.github.io/wc-resistor-calc/), [index.html](index.html) instantiates this web component.

### Attributes

- `band` - Default resistor type (`4`,`5`, or `6`); Defaults to `4` if not specified.

### Screenshot

![docs/screenshot.PNG](docs/screenshot.PNG)

## References

- [Digi-Key Resistor Color Code Calculator](https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-resistor-color-code)
- [Inkscape - for SVG editing](https://inkscape.org/)