-
Notifications
You must be signed in to change notification settings - Fork 2
/
potts.html
67 lines (59 loc) · 3.45 KB
/
potts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="ja">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="author" content="Satoshi Morita" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous" />
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js"
integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz"
crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js"
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
<!-- <script src="https://kit.fontawesome.com/ae5a8fc31f.js" crossorigin="anonymous"></script> -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<title>Monte Carlo simulation of the Potts model</title>
</head>
<body>
<canvas id="potts" class="fixed-top" style="z-index: -1; width: 100vw; height: 100vh;"></canvas>
<div class="container">
<div class="row">
<div class="col-12 col-md-10 col-lg-8 col-xl-6 py-3 text-white" style="background-color:rgba(0, 0, 0, 0.75);">
<h1 class="h4">Monte Carlo simulation of the Potts model</h1>
<div id="options" class="collapse">
<label for="states">The number of states: Q = <span id="states_text">4</span></label>
<input id="states" type="range" class="custom-range" min="2" max="6" step="1">
<label for="temperature">Temperature: T = <span id="temperature_text"></span> T<sub>c</sub></label>
<input id="temperature" type="range" class="custom-range" min="0.5" max="1.5" step="0.01">
<label for="field">Magnetic field: H = <span id="field_text">0.0</span></label>
<input id="field" type="range" class="custom-range" min="-1.0" max="1.0" step="0.1">
</div>
<div class="text-right">
<a class="text-white" data-toggle="collapse" href="#options" role="button" aria-expanded="false">Options</a>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<script src="potts.js"></script>
</body>
</html>