Hong-Phuc Bui
2025-01-16 2889de7f0c2d587a17fbd322af57c29e84238620
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
68
69
70
71
72
73
74
75
76
77
78
79
80
<!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>