<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="UTF-8">
|
<title>Cash||Crash-Simulation</title>
|
|
<style>
|
html, body {
|
margin: 0;
|
border: 0;
|
width: 100%;
|
height: 100%;
|
overflow: hidden;
|
}
|
.page {
|
margin: 15px;
|
height: calc(100% - 30px);
|
overflow-y: scroll;
|
}
|
|
.row {
|
display: flex;
|
flex-direction: row;
|
flex-wrap: wrap;
|
width: 100%;
|
}
|
.button-column {
|
display: flex;
|
flex-direction: column;
|
flex: 2;
|
}
|
.button-content {
|
background-color: #ddffdd;
|
height: 100%;
|
padding: 30px;
|
}
|
|
|
|
.propagate-column {
|
display: flex;
|
flex-direction: column;
|
/*flex-basis: 100%;*/
|
flex: 9;
|
}
|
.propagate-content {
|
background-color: #f3f3f3;
|
height: 100%;
|
margin-left: 1ex;
|
}
|
</style>
|
</head>
|
<body>
|
|
|
<div class='page'>
|
<div class='row'>
|
<div class='button-column'>
|
<div class='button-content'>
|
<label for="init">n: </label>
|
<input id="init" value="5" />
|
<label for="rate">k: </label>
|
<input id="rate" value="1.6" />
|
|
<button id="reset">Reset</button>
|
<button id="more">More</button>
|
</div>
|
</div>
|
<div class='propagate-column'>
|
<div class='propagate-content'>
|
<pre id="state"></pre>
|
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<script src="cashOrCrash.js" type="module"></script>
|
</body>
|
</html>
|