example.com/cat.html
cat.html
)
cat.html
as the payload.
This is an example of an animated SVG diagram controlled by step/run/stop buttons. KeyshapeDiagram is a wee JavaScript program which adds the buttons and manages the presentation.
Everything is inline in this example: no external calls being made.
That is: stylesheets, SVG diagram, and JavaScript is all in
<style>
<svg>
and
<script>
tags.
This means, at a push, you can paste content like this into a Moodle page.
(It gets a bit more complex if you want multiple animations on the same page
this way, but it's doable).
This example differs from this similar one by the SVG having been exported from Keyshape with embedded-in-the-SVG (not external) Keyshape library.