-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
184 lines (152 loc) · 9.31 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
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
<!doctype html>
<html>
<head>
<meta charset = 'utf-8'>
<meta name = 'viewport' content = 'width=device-width, initial-scale=1'>
<title>Mandelbrot Explorer</title>
<link rel = 'stylesheet' type = 'text/css' href = 'index.css'>
</head>
<body>
<div id = 'canvas_div'>
<canvas id = 'canvas'></canvas>
</div>
<h1 id = 'coords' style = 'display: none;'>X: 0, Y: 0, Scale: 1</h1>
<h1 id = 'konami_progress' style = 'display: none;'></h1>
<h1 id = 'sorting_algos_attribution' style = 'display: none;'></h1>
<button id = 'settings_btn' onclick = 'toggleSettings();'>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill" viewBox="0 0 16 16">
<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
</svg>
</button>
<div id = 'settings' class = 'popup' style = 'display: none;'>
<h1 class = 'popup_header'>Settings</h1>
<div class = 'flex-horizontal'>
<div class = 'flex-vertical'>
<label for = 'settings_x'>X</label>
<input type = 'text' id = 'settings_x' onchange = 'settingInputsToSettingVars();'>
</div>
<div class = 'flex-vertical'>
<label for = 'settings_y'>Y</label>
<input type = 'text' id = 'settings_y' onchange = 'settingInputsToSettingVars();'>
</div>
<div class = 'flex-vertical'>
<label for = 'settings_scale'>Scale</label>
<input type = 'text' id = 'settings_scale' onchange = 'settingInputsToSettingVars();'>
</div>
<button onclick = 'resetCoordsButton();'>Reset</button>
</div>
<div class = 'flex-horizontal'>
<div class = 'flex-vertical'>
<label for = 'settings_color_pallete'>Color Pallete</label>
<select id = 'settings_color_pallete' onchange = 'settingInputsToSettingVars();'>
<option value = '0'>Blue</option>
<option value = '1'>Green</option>
<option value = '2'>Red</option>
<option value = '3'>Rainbow</option>
</select>
</div>
<div class = 'flex-vertical'>
<label for = 'settings_log_render'>Log Render</label>
<select id = 'settings_log_render' onchange = 'settingInputsToSettingVars();'>
<option value = '0'>None</option>
<option value = '1'>Half</option>
<option value = '2'>Full</option>
</select>
</div>
<div class = 'flex-vertical flex-vertical-2'>
<label for = 'settings_smooth_iteration_count'>Smooth Iteration Count</label>
<input type = 'checkbox' id = 'settings_smooth_iteration_count' onchange = 'settingInputsToSettingVars();'>
</div>
</div>
<div class = 'flex-horizontal'>
<div class = 'flex-vertical'>
<label for = 'settings_render_method'>Render Method</label>
<select id = 'settings_render_method' onchange = 'settingInputsToSettingVars();'>
<option value = '5'>CPU Math.JS (GLACIAL)</option>
<option value = '1'>CPU (SLOW)</option>
<option value = '4'>GPU Shader</option>
<option value = '6'>CPU with Perturbation Math.JS (BETA)</option>
<option value = '7'>GPU Shader with Perturbation Math.JS (BETA)</option>
<option value = '0'>FillRect (TEST)</option>
<option value = '2'>WebGl ClearColor (TEST)</option>
<option value = '3'>WebGl Shader (TEST)</option>
</select>
</div>
<div class = 'flex-vertical'>
<label for = 'settings_max_iterations'>Max Iterations</label>
<input type = 'number' id = 'settings_max_iterations' onchange = 'settingInputsToSettingVars();'>
</div>
<div class = 'flex-vertical'>
<label for = 'settings_escape_radius'>Escape Radius</label>
<input type = 'text' id = 'settings_escape_radius' onchange = 'settingInputsToSettingVars();'>
</div>
<div class = 'flex-vertical flex-vertical-2'>
<label for = 'settings_inertia'>Inertia</label>
<input type = 'checkbox' id = 'settings_inertia' onchange = 'settingInputsToSettingVars();'>
</div>
<div class = 'flex-vertical flex-vertical-2'>
<label for = 'settings_show_coordinates'>Show Coordinates</label>
<input type = 'checkbox' id = 'settings_show_coordinates' onchange = 'settingInputsToSettingVars_ShowCoords();'>
</div>
</div>
<div class = 'flex-horizontal'>
<div class = 'flex-vertical'>
<label for = 'settings_subpixel_scale'>Subpixel Scale</label>
<input type = 'text' id = 'settings_subpixel_scale' onchange = 'settingInputsToSettingVars_SubpixelScale();'>
</div>
</div>
<button id = 'settings_close_btn' onclick = 'closeSettings();'>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
</svg>
</button>
</div>
<div id = 'starting_popup' class = 'popup'>
<h1 class = 'popup_header'>Mandelbrot Explorer</h1>
<p>This page is an exploration app for the fractal called the Mandelbrot Set. To open the settings menu, click the cogwheel. To close this window and use the app, click proceed.</p>
<button id = 'proceed_btn' onclick = 'closeStartingPopup();'>Proceed</button>
</div>
<div id = 'remarketing_popup' class = 'popup' style = 'display: none;'>
<div id = 'remarketing_popup_phase_1' class = 'remarketing_popup_phases'>
<template id = 'remarketing_btn_template'><button class = 'remarketing_btn' onclick = 'setRemarketingPhase(1, this);'>$CONTENT</button></template>
<h1 class = 'popup_header'>AdSend Analysis</h1>
<div id = 'remarketing_btn_container' class = 'dark_mode_scroll'></div>
</div>
<div id = 'remarketing_popup_phase_2' class = 'remarketing_popup_phases' style = 'display: none;'>
<h1 class = 'popup_header' id = 'remarketing_wiki_entry_title'></h1>
<div id = 'remarketing_wiki_entry_contents_div' class = 'dark_mode_scroll'>
<p id = 'remarketing_wiki_entry_contents'></p>
</div>
<button id = 'remarketing_popup_phase_2_back_btn' onclick = 'setRemarketingPhase(0);'>Back</button>
</div>
<button id = 'remarketing_close_btn' onclick = 'closeRemarketing();'>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
</svg>
</button>
</div>
<!-- https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context
<script src = 'gl-matrix-min.js' integrity = 'sha512-zhHQR0/H5SEBL3Wn6yYSaTTZej12z0hVZKOv3TwCUXT1z5qeqGcXJLLrbERYRScEDDpYIJhPC1fk31gqR783iQ==' crossorigin = 'anonymous' defer></script>
-->
<script src = 'js_lib/gl-matrix-min.js'></script>
<script src = 'js_lib/math_js_11.8.0.js'></script>
<script src = 'js/variables.js'></script>
<script src = 'js/shader_code.js'></script>
<script src = 'js/internal_variables.js'></script>
<script src = 'js/js_mandel_calculations.js'></script>
<script src = 'js/math_js_mandel_calculations.js'></script>
<script src = 'js/perturbation_calculations.js'></script>
<script src = 'js/gpu_boilerplate.js'></script>
<script src = 'js/render_canvas.js'></script>
<script src = 'js/render_ui.js'></script>
<script src = 'js/update_elems.js'></script>
<script src = 'js/event_hook_funcs.js'></script>
<script src = 'js/loops.js'></script>
<script src = 'js/base_event_handlers.js'></script>
<script src = 'js/base_touch_event_handlers.js'></script>
<script src = 'js/real_event_handlers.js'></script>
<script src = 'js/remarketing.js'></script>
</body>
</html>