orep-js/tests/init.html

31 lines
868 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tests - init</title>
<script>
var onloadPre = onload || (() => {});
onload = () => {
onloadPre();
console.log("TEST - onload defined before module load");
}
</script>
<script type="module" src="/sunpy/orep/orep.js" async></script>
<script>
var onloadPost = onload || (() => {});
onload = () => {
onloadPost();
console.log("TEST - onload defined after module load");
}
</script>
</head>
<body>
<script type="orep/canvas" class="test" id="render">
size = 400x300
</script>
<script type="orep/canvas" class="test abc" id="stats">
size = 600x450
</script>
</body>
</html>