orep-js/tests/init.html

31 lines
868 B
HTML
Raw Normal View History

2020-04-21 00:03:26 +02:00
<!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>
2020-04-21 15:14:04 +02:00
<script type="orep/canvas" class="test" id="render">
2020-04-21 00:03:26 +02:00
size = 400x300
</script>
2020-04-21 15:14:04 +02:00
<script type="orep/canvas" class="test abc" id="stats">
2020-04-21 00:03:26 +02:00
size = 600x450
</script>
</body>
</html>