First commits be like
This commit is contained in:
31
tests/init.html
Normal file
31
tests/init.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!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">
|
||||
size = 400x300
|
||||
</script>
|
||||
<script type="orep/canvas">
|
||||
size = 600x450
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
15
tests/render.html
Normal file
15
tests/render.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tests - render</title>
|
||||
<script type="module" src="/sunpy/orep/orep.js" async></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="orep/canvas">
|
||||
size = 800x600 # Render resolution
|
||||
fps = 60 # Max fps
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user