feature: add interactive applets

This commit is contained in:
Matthias Jung
2026-01-31 22:12:22 +01:00
parent c1cd1a8ef7
commit e56d0dcea5
18 changed files with 2943 additions and 0 deletions
@@ -0,0 +1,38 @@
<html>
<script src="https://www.50ohm.de/assets/jquery/3.7.1/jquery.min.js"></script>
<script src="https://www.50ohm.de/assets/chartjs/4.4.1/chart.min.js"></script>
<img id="SK" width="100%"/>
<script>
const asgnimage = [
"https://50ohm.de/pictures/925.svg",
"https://50ohm.de/pictures/926.svg",
"https://50ohm.de/pictures/927.svg",
"https://50ohm.de/pictures/928.svg",
"https://50ohm.de/pictures/929.svg",
"https://50ohm.de/pictures/930.svg",
"https://50ohm.de/pictures/929.svg",
"https://50ohm.de/pictures/928.svg",
"https://50ohm.de/pictures/927.svg",
"https://50ohm.de/pictures/926.svg",
];
// Default index to 0
function cycle(index = 0) {
// Set your image
document.querySelector('#SK').src = asgnimage[index];
// If you reach the end of the array set index to zero
// otherwise increment it
let nextIndex = index === asgnimage.length - 1 ? 0 : ++index;
// Call `cycle` again passing in the new `index`
setTimeout(cycle, 1000, nextIndex);
}
cycle();
</script>
</html>