grr
This commit is contained in:
parent
bae61d7968
commit
c11045e50b
|
@ -1,13 +1,14 @@
|
||||||
{% set id = "typeit-{% get_random(0, 100) %}" %}
|
{% set id = get_random(start=0, end=100) %}
|
||||||
|
{% set id = "typeit-" ~ id %}
|
||||||
|
|
||||||
<script src="https://unpkg.com/typeit@8.7.1/dist/index.umd.js"></script>
|
<script src="https://unpkg.com/typeit@8.7.1/dist/index.umd.js"></script>
|
||||||
|
|
||||||
<h2 id="type">{{ body }}</h2>
|
<{% if tag %}{{ tag }}{% else %}div{% endif %} id="{{ id }}">{{ body }}</{% if tag %}{{ tag }}{% else %}div{% endif %}>
|
||||||
<script>
|
<script>
|
||||||
console.log("type");
|
console.log("type");
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
new TypeIt("#type", {
|
new TypeIt("#{{ id }}", {
|
||||||
strings: {{ body }},
|
strings: ["", {{ body }}, ""],
|
||||||
speed: 100,
|
speed: 100,
|
||||||
lifeLike: true,
|
lifeLike: true,
|
||||||
startDelay: 0,
|
startDelay: 0,
|
||||||
|
|
Loading…
Reference in a new issue