physics/template.html

67 lines
1.8 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-03 21:34:25 +02:00
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<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>
<script type="text/javascript" src="${JS}"></script>
<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">
<div class="col">
<center>
<div id="canvas"></div>
</center>
</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-03 18:41:52 +02:00
${CONTENT}
</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>