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.
38 lines
1.6 KiB
38 lines
1.6 KiB
<!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>
|
|
<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>
|
|
<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>⁄<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>
|
|
</div>
|
|
<div id="canvas_holder"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|