-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (66 loc) · 3.46 KB
/
index.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- BOOTSTRAP -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<!-- END BOOTSTRAP -->
<!-- JQUERY -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- END JQUERY -->
<!-- MATH.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/5.4.0/math.js"></script>
<!-- END MATH.JS -->
<script src="static/scripts/main.js" async defer></script>
<link rel="stylesheet" href="static/styles/main.css">
</head>
<body>
<h1 class="display-2 text-light mb-2" style="text-align: center">Fractals JS</h1>
<div class="card bg-dark text-light" id="main-panel">
<div class="card-body form-group">
<canvas id="canvas"></canvas>
<i id="prompt">Click on a point to center on it.</i>
<div class="card-footer" id="menu">
<div class="form-group">
<label for="res">Type</label>
<select class="form-control" id="type-menu" onchange="changeType()">
<option value="0" selected="selected">Mandelbrot Set</option>
<option value="1">Julia Set</option>
</select>
</div>
<div class="form-group" id="julia-menu">
<div class="in-row pb-2">
<label for="re">Re(c): </label>
<input class="form-control mr-4" id="re" type="number" min="-2" max="2" value="-0.800" step="0.001">
</div>
<div class="in-row">
<label for="im" class="ml-4">Im(c): </label>
<input class="form-control" id="im" type="number" min="-2" max="2" value="0.156" step="0.001">
</div>
</div>
<div class="form-group">
<label for="comp">Iterations (<span id="comp-label">100</span>)</label>
<input class="custom-range" id="comp" type="range" min="10" max="1000" value="100" step="10" onchange="updateLabel()">
</div>
<div class="form-group">
<label for="zoom">Zoom (<span id="zoom-label">1.5</span>)</label>
<input class="custom-range" id="zoom" type="range" min="1" max="100" value="1.5" step="0.1" onchange="updateLabel()">
</div>
<div class="form-group">
<button class="btn btn-info" id="gen-btn" style="margin: auto;" onclick="generate()">Generate</button>
</div>
</div>
</div>
</div>
</body>
</html>