Spaces:
Running
Running
File size: 1,045 Bytes
a67ae61 48cb32a 3a238b7 a67ae61 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# Trials
Thissince \gls{cnmc}
<!-- load lotti js code -->
<script src="https://unpkg.com/@dotlottie/[email protected]/dist/dotlottie-player.js"></script>
<dotlottie-player autoplay controls loop mode="normal" style="width: 320px"> </dotlottie-player>
<script>
// when th full page is laoded --> slows down quite abite
window.addEventListener("load", function() {
// when the tornada plotly plot is shown let the riksha disappear
const player = document.querySelector('dotlottie-player');
player.load('./Data/7_Animation/Riksha.lottie');
});
// this without addEventListener is much faster
// const player = document.querySelector('dotlottie-player');
// player.load('./Data/7_Animation/Riksha.lottie');
</script
<div>
<h1>Hello, World!</h1>
<p>This is my first HTML code.</p>
</div>
<div>
<h1>Hello, World!</h1>
<script>
document.write("This text is generated by JavaScript!");
</script>
</div>
<div>
<h1>Final header</h1>
<p>This is my first HTML code.</p>
</div>
|