Javascript Integration

How to integrate Tueri.io with Javascript

View on GitHub

Integrate Tueri.io into your website in minutes with Javascript.

Installation

<script src='https://cdn.jsdelivr.net/gh/tueriapp/vanilla-tueri@<stable>/dist/tueri.min.js'></script>

Integrate Tueri

Change img src to tueri-src
<!-- change src -->
<img src="https://cdn.tueri.io/..." alt="Alternate Text"/>

<!-- to tueri-src -->
<img tueri-src="https://cdn.tueri.io/..." alt="Alternate Text/>
Tueri automatically detects the dimensions of the parent element, then generates and returns your image in exactly the right dimensions to fill the parent element.