-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpi.html
202 lines (171 loc) · 8.32 KB
/
pi.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="src/p5lib/p5.min.js"></script>
<script defer src="src/p5lib/grafica.min.js"></script>
<script defer src="src/scripts/plot.js"></script>
<script defer src="src/scripts/block.js"></script>
<script defer src="src/scripts/main.js"></script>
<title>PI berechnen mit Kollision</title>
<style>
#main{
font-family: "Lucida Console", "Courier New", monospace;
max-width: 75%;
margin: auto;
background-color: #e2ded5;
}
@media screen and (max-width: 1500px){
#main{
max-width: 100%;
margin: 0.25rem;
border: unset;
}
.breakOnPhone{
flex-wrap: nowrap;
flex-direction: column !important;
}
.breakOnPhone2{
max-width: 100% !important;
overflow-y: auto;
}
#buttonControls{
flex-wrap: wrap !important;
justify-content: center !important;
gap: 1rem !important;
}
}
button {
background-color: #ccc9c2;
color: black;
border: none;
border-style: solid;
border-color: gray;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
}
button:not(button:disabled):hover {
background-color: white;
color: black;
box-shadow: 0 3px 3px 0 rgba(0,0,0,0.24), 0 5px 5px 0 rgba(0,0,0,0.19);
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: lightgray;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #93c593;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 20px;
}
.slider.round:before {
border-radius: 50%;
}
a{
text-decoration: none;
color: rgb(153, 103, 11);
}
a:hover{
text-decoration: underline;
}
</style>
</head>
<body id="main" style="overflow-y: scroll;">
<div style="display: flex; flex-direction: column; float: right;">
<h4 style="margin: 0.2rem; text-align: right;">Furkan G.</h4>
<h4 style="margin: 0.2rem; text-align: right;">Burak K.</h4>
<h4 style="margin: 0.2rem; text-align: right;">David K.</h4>
</div>
<h1>Diskrete Mathematik</h1>
<h3>Projektarbeit Hochschule Rhein-Waal Diskrete Mathematik 2020/2021.</h3>
<h5 style="margin-bottom: 0;">Stand: 30.01.2021</h5>
<hr>
<main>
<div id="alert" style="padding: 0.25rem; background-color: #f44336; color: white; border-radius: 1rem; margin-top: 2rem; max-width: 100%; display: none;">
<p style="text-align: center;"><strong>Achtung!</strong> Die Masse muss größer als 0 sein!</p>
</div>
<div class="breakOnPhone" style="display: flex; flex-direction: row; justify-content: space-between;">
<div style="display: flex; flex-direction: column; width: 100%;" >
<h1 style="align-self: flex-start; margin-bottom: 1rem; margin-top: 1rem;">Infos</h1>
<div class="breakOnPhone2" style="height: 100%; background-color: #ccc9c2; border-style: solid;padding: 1rem;display: flex; flex-wrap: nowrap; align-items: baseline; flex-direction: column;">
<p style="margin-top: 0.5rem; margin-bottom: 1rem;">Die Berechnung ist angelehnt an das Video von <a target="_blank" href="https://www.youtube.com/watch?v=jsYwFizhncE">3Blue1Brown</a>.</p>
<p style="margin-top: 0rem; margin-bottom: 1rem;">Zur Visualisierung haben wir die Library <a target="_blank" href="https://p5js.org/">p5.js</a> genutzt.</p>
<p style="margin-top: 0rem; margin-bottom: 0.5rem;">Weitere Infos und das Projekt finden Sie auf <a target="_blank" href="https://github.com/FNG-2002/collisionPiWebsite">GitHub</a>.</p>
<hr style="width: 100%;">
<p style="margin-top: 0rem; margin-bottom: 0.5rem; margin-top: 0.5rem;">Das Paper finden Sie hier. <a target="_blank" href="paper.pdf">Paper ansehen</a></p>
</div>
</div>
<div style="display: flex; flex-direction: column;">
<h1 style="align-self: flex-start; margin-bottom: 1rem; margin-top: 1rem;">Einstellungen</h1>
<div id="buttonControls" style="height: 100%; max-width: max-content; background-color: #ccc9c2; border-style: solid;padding: 1rem;display: flex; flex-wrap: nowrap; gap: 5rem; align-items: baseline;">
<div id="inputDigitAmount" style="width: min-content; display: flex;justify-content: center;flex-direction: column;">
<p style="margin: unset;text-align: center;font-weight: bold; margin-bottom: 1rem; font-size: large;">Masse</p>
</div>
<div id="inputVelocity" style="width: min-content; display: flex;justify-content: center;flex-direction: column;">
<p style="margin: unset;text-align: center;font-weight: bold; margin-bottom: 1rem; font-size: large;">Startgeschwindigkeit</p>
</div>
<div id="checkboxGraphDiv" style="width: min-content; display: flex;justify-content: center; align-items: center; flex-direction: column;">
<p style="margin: unset;text-align: center;font-weight: bold; margin-bottom: 1rem; font-size: large; white-space: nowrap;">Graphen anzeigen</p>
<label class="switch">
<input id="checkboxGraph" type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
</div>
</div>
<hr style="margin-bottom: 2rem; margin-top: 2rem;">
<div id="canvasHolder" style="margin-top: 0.5rem; margin-bottom: 0.5rem; width: 100%; height: 100%;"></div>
<div id="playControls"></div>
<hr style="margin-bottom: 2rem;">
<div id="graphHolder" style="display: flex; justify-content: center; flex-direction: column; align-items: center; margin-bottom: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem; width: 100%; height: 100%;"></div>
</main>
</body>
</html>