physics/template.html
2021-10-03 18:41:52 +02:00

59 lines
1.4 KiB
HTML

<!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">
<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">
<div class="col">
${CONTENT}
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
let p=new p5(${project_name},"canvas")
</script>
</body>
</html>