This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/gpu.js@latest/dist/gpu-browser.min.js"></script> | |
</head> | |
<body> | |
<script src="main.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script> | |
<style> | |
#overlay { | |
position: fixed; | |
/* Sit on top of the page content */ | |
display: block; | |
/* Hidden by default */ | |
width: 100%; | |
/* Full width (cover the whole page) */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script> | |
<div id="chartDiv"> | |
<canvas id="chart" width="1200" height="600" style="border:1px solid"> | |
</canvas> | |
</div> | |
<div> | |
<label for="beta">beta</label> | |
<input type="range" min="0" max="10" step=0.1 id="beta" class="inputs" value=3 title="Infection constant"> | |
<span id="betaText">3</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let chart, worker; | |
let Z0, Q, B, n, s0, porosity, a, b, reachLength, simulationTime, delX, delT, delayMs, qsInjected; | |
let calculatedProfiles; | |
function updateGraph() { | |
if (worker != undefined) { | |
worker.terminate(); | |
} | |
worker = new Worker('worker.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script> | |
<script src="sketch.js"></script> | |
</head> | |
<body> | |
<div id="canvas"></div> | |
<input type="button" id="btnGo" value="Go" onclick="btnGoClicked()"> | |
</body> | |
</html> |