master_Thesis / trials.qmd
JavedA's picture
loader is working finde - not as desired, but its okay
48cb32a
raw
history blame
1.05 kB
# 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>