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

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

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);

```