https://github.com/matronator/devito-converter
Measure length in Danny DeVitos
https://github.com/matronator/devito-converter
converter convertor danny-devito devito length length-converter unit-conversion unit-converter
Last synced: 6 months ago
JSON representation
Measure length in Danny DeVitos
- Host: GitHub
- URL: https://github.com/matronator/devito-converter
- Owner: matronator
- Created: 2020-05-08T14:47:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T23:32:11.000Z (over 4 years ago)
- Last Synced: 2025-02-15T01:31:56.656Z (8 months ago)
- Topics: converter, convertor, danny-devito, devito, length, length-converter, unit-conversion, unit-converter
- Language: JavaScript
- Homepage: https://matronator.github.io/devito-converter/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# DeVito Converter
Measure length in Danny DeVitos!
Demo: https://matronator.github.io/devito-converter/
## Use in Browser
Download the `devito.js` file from `dist` folder and include it in your HTML file.
### External file
#### index.html
```html
Hello World! Danny DeVito is meters tall!
var converter = new DannyDeVito();
var span = document.getElementById(`devitoHeight`);span.innerHtml = converter.toMeters(1, 0);
```
### Inline `script` tag
#### index.html
```html
Hello World!
Danny DeVito is meters tall!```
#### script.js
```javascript
var converter = new DannyDeVito();
var span = document.getElementById(`devitoHeight`);span.innerHtml = converter.toMeters(1, 0);
```