physics/template.html

93 lines
3 KiB
HTML
Raw Normal View History

2021-10-03 18:41:52 +02:00
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Physics Simulation</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
2021-10-04 10:32:14 +02:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.css" integrity="sha384-zTROYFVGOfTw7JV7KUu8udsvW2fx4lWOsCEDqhBreBwlHI4ioVRtmIvEThzJHGET" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js" integrity="sha384-GxNFqL3r9uRJQhR+47eDxuPoNE7yLftQM8LcxzgS4HT73tp970WS/wV5p8UzCOmb" crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
2021-10-03 21:34:25 +02:00
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
2021-10-03 18:41:52 +02:00
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/p5.min.js"></script>
2021-10-04 10:32:14 +02:00
<script type="text/javascript" src="js/p5_custom.js"></script>
2021-10-03 18:41:52 +02:00
<script type="text/javascript" src="${JS}"></script>
2021-10-06 15:32:23 +02:00
<style>
#canvas {
width: intrinsic; /* Safari/WebKit uses a non-standard name */
width: -moz-max-content; /* Firefox/Gecko */
width: -webkit-max-content; /* Chrome */
width:fit-content;
height: intrinsic; /* Safari/WebKit uses a non-standard name */
height: -moz-max-content; /* Firefox/Gecko */
height: -webkit-max-content; /* Chrome */
height:fit-content;
margin-bottom:2em;
}
</style>
2021-10-03 18:41:52 +02:00
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="images/icon.png" width="30" height="30" class="d-inline-block align-top" alt=""> &Phi;Sics
</a>
</nav>
</div>
</div>
<br />
<div class="row">
<div class="col">
<center>
<div class="btn-group">
${LINKS}
</div>
</center>
</div>
</div>
<br />
<div class="row">
2021-10-04 17:53:12 +02:00
<div class="col" style="padding:0px;">
2021-10-05 20:12:35 +02:00
<center>
2021-10-06 15:32:23 +02:00
<div id="canvas" class="img-thumbnail"></div>
2021-10-05 20:12:35 +02:00
</center>
2021-10-03 18:41:52 +02:00
</div>
</div>
<div class="row">
<div class="col">
<div class="container">
<div class="row">
2021-10-03 21:34:25 +02:00
<div class="col" id="app">
2021-10-05 09:26:35 +02:00
${CONTENT}
2021-10-03 18:41:52 +02:00
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
2021-10-03 21:34:25 +02:00
var p5_instance=null
p5Load=function(){
if(p5_instance != null){p5_instance.remove()}
p5_instance=new p5(${project_name},"canvas")
}
project_init()
2021-10-03 18:41:52 +02:00
</script>
</body>
</html>