You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.6 KiB

2 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js" type="text/javascript"></script>
2 years ago
<script src="https://code.jquery.com/jquery-3.6.4.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
2 years ago
<script src="data/scripts/js/main.js" type="text/javascript"></script>
<link href="styles.css" rel="stylesheet">
<link href="data/styles/color_picker.css" rel="stylesheet">
<link href="data/styles/range_input.css" rel="stylesheet">
<title>Pendulum</title>
</head>
<body>
<div id="p5_loading"></div>
<div id="content">
<div id="options">
<fieldset id="preparation">
<legend>Preparation</legend>
</fieldset>
<fieldset id="simulation">
<legend>Simulation</legend>
<label>
Gravity: {{ gravity }} <sup>N</sup>&frasl;<sub>kg</sub>
<input type="range" v-model="gravity" min="0" max="30" step=".01" autocomplete="off">
</label>
<label>
Timescale: x{{ timescale }}
<input type="range" v-model="timescale" min="0.01" max="3" step=".01" autocomplete="off">
</label>
<button @click="togglePlay" id="play_btn" :class="playingBtn"></button>
</fieldset>
2 years ago
</div>
<div id="canvas_holder"></div>
</div>
</body>
</html>