-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more meta tags and reworked markov chain diagram
- Loading branch information
Showing
5 changed files
with
132 additions
and
195 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,38 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> | ||
<title>Markov Chain Visualization and Visualization</title> | ||
<meta name="description" content="A markov chain visualization and simulation" /> | ||
<title>Markov Chain Visualization</title> | ||
<meta name="description" content="A Markov Chain Visualization and Simulation" /> | ||
<meta name="robots" content="noindex, nofollow" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css" /> | ||
<script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"></script> | ||
<meta content="Markov Chain, Simulation, Visualization, Guide, Educational" name="keywords"> | ||
<link href="icon.png" rel="icon" type="image/png"/> | ||
|
||
<!-- This is for Facebook's Open Graph. --> | ||
<meta content="Markov Chain Visualization and Simulation" property="og:title"/> | ||
<meta content="https://sakuzn.github.io/MarkovChainSimulation/" property="og:url"/> | ||
<meta content="A Markov Chain Visualization and Simulation" property="og:description"/> | ||
|
||
<!-- This is for Twitter's Card feature. --> | ||
<meta content="Markov Chain Visualization" name="twitter:title"/> | ||
<meta content="A Markov Chain Visualization and Simulation" | ||
name="twitter:description"/> | ||
|
||
<link rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" | ||
integrity="sha512-7nTa5CnxbzfQgjQrNmHXB7bxGTUVO/DcYX6rpgt06MkzM0rVXP3EYCv/Ojxg5H0dKbY7llbbYaqgfZjnGOAWGA==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" | ||
crossorigin="anonymous" | ||
/> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
<link href="https://unpkg.com/[email protected]/styles/vis-network.min.css" rel="stylesheet" /> | ||
|
||
<link rel="stylesheet" href="css/main.css" /> | ||
<link rel="stylesheet" href="css/modal-animation.css" /> | ||
<link href="https://unpkg.com/[email protected]/styles/vis-network.min.css" rel="stylesheet" /> | ||
|
||
</head> | ||
<body> | ||
<div class="container-fluid mb-5"> | ||
|
@@ -408,7 +424,7 @@ <h6>What is this all for?</h6> | |
</p> | ||
<p> | ||
From the results of the weather chain, we can say that the probability of it being sunny is | ||
around 31%, rainy 45%, and cloudy 24%. | ||
around <strong>31%</strong>, rainy <strong>45%</strong>, and cloudy <strong>24%</strong>. | ||
</p> | ||
<p> | ||
In a perfect world, where there are no changes due to factors like global warming, and | ||
|
@@ -428,17 +444,19 @@ <h5>Let's try the diagram below!</h5> | |
</div> | ||
</div> | ||
<!-- Title --> | ||
<h3 class="mb-3 mt-5 text-center">Markov Chain Diagram</h3> | ||
<small class="text-center text-muted"> | ||
|
||
<h3 class="mb-1 mt-5 text-center">Markov Chain Diagram</h3> | ||
<small class="text-center text-muted mb-3"> | ||
Note: The diagram is interactable, you can drag the nodes around and zoom in and out. | ||
</small> | ||
<div class="d-grid gap-2 d-md-flex justify-content-center"> | ||
<button id="simulate-btn" class="btn btn-primary ms-2" type="button">Simulate</button> | ||
</div> | ||
<div class="col-lg-8 col-md-12 mb-3"> | ||
<div id="canvas" class="border" style="height: 600px"></div> | ||
<script src="https://unpkg.com/[email protected]/standalone/umd/vis-network.min.js"></script> | ||
<script src="scripts/markov_diagram.js"></script> | ||
</div> | ||
<div class="col mt-2 me-4"> | ||
<div class="card" style="height: 100%"> | ||
<div class="col mt-2 me-4" > | ||
<div class="card" id="form-tab" style="height: 100%"> | ||
<div class="card-body"> | ||
<ul class="nav nav-pills nav-fill" id="myTab" role="tablist"> | ||
<li class="nav-item" role="presentation"> | ||
|
@@ -506,7 +524,6 @@ <h3 class="mb-3 mt-5 text-center">Markov Chain Diagram</h3> | |
|
||
<div class="d-grid gap-2 d-md-flex justify-content-md-end"> | ||
<button id="display-btn" class="btn btn-success" type="submit">Show Markov Chain</button> | ||
<button id="simulate-btn" class="btn btn-primary ms-2" type="button">Simulate</button> | ||
<button id="reset-btn" class="btn btn-danger ms-2" type="button">Reset</button> | ||
</div> | ||
</form> | ||
|
@@ -529,6 +546,7 @@ <h3 class="mb-3 mt-5 text-center">Markov Chain Diagram</h3> | |
<hr> | ||
<div class="text-center timeline border" > | ||
<h3 class="mb-3 mt-3">Event Sequence | Timeline:</h3> | ||
<hr> | ||
<div id="state-history" class="mx-3"> | ||
<!-- State history goes here --> | ||
</div> | ||
|
@@ -558,25 +576,36 @@ <h4 class="modal-title" id="exampleModalLongTitle">Info!</h4> | |
</div> | ||
</div> | ||
<!-- Scripts --> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
var mathElements = document.getElementsByClassName('math') | ||
for (var i = 0; i < mathElements.length; i++) { | ||
var mathElement = mathElements[i] | ||
katex.render(mathElement.innerText, mathElement) | ||
} | ||
}) | ||
</script> | ||
<script | ||
crossorigin="anonymous" | ||
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" | ||
referrerpolicy="no-referrer" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" | ||
></script> | ||
crossorigin="anonymous" | ||
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" | ||
referrerpolicy="no-referrer" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"> | ||
|
||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.1/js/bootstrap.bundle.min.js" | ||
integrity="sha512-ToL6UYWePxjhDQKNioSi4AyJ5KkRxY+F1+Fi7Jgh0Hp5Kk2/s8FD7zusJDdonfe5B00Qw+B8taXxF6CFLnqNCw==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer"> | ||
|
||
</script> | ||
<script src="https://unpkg.com/[email protected]/standalone/umd/vis-network.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.js" | ||
integrity="sha512-aoZChv+8imY/U1O7KIHXvO87EOzCuKO0GhFtpD6G2Cyjo/xPeTgdf3/bchB10iB+AojMTDkMHDPLKNxPJVqDcw==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer"></script> | ||
|
||
<script src="scripts/markov_diagram.js"></script> | ||
<script src="scripts/main.js"></script> | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
var mathElements = document.getElementsByClassName('math') | ||
for (var i = 0; i < mathElements.length; i++) { | ||
var mathElement = mathElements[i] | ||
katex.render(mathElement.innerText, mathElement) | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains 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
Oops, something went wrong.