| 1 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | - License, v. 2.0. If a copy of the MPL was not distributed with this file, |
| 3 | - You can obtain one at http://mozilla.org/MPL/2.0/. --> |
| 4 | |
| 5 | <!DOCTYPE html> |
| 6 | <html manifest="manifest.appcache"> |
| 7 | <head> |
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 9 | <!-- try to counts default scaling on mobile, see |
| 10 | https://developer.mozilla.org/en/Mobile/Viewport_meta_tag --> |
| 11 | <meta name="viewport" content="width=device-width, height=device-height, initial-scale=.6667, maximum-scale=.6667"> |
| 12 | <title>KaiRo.at Mandelbrot Web</title> |
| 13 | <script src="js/mandelbrot.js"></script> |
| 14 | <link rel="stylesheet" href="style/mandelbrot.css"> |
| 15 | <link rel="shortcut icon" href="style/mandelbrotIcon16.png" type="image/png"> |
| 16 | </head> |
| 17 | <body onload="Startup();"> |
| 18 | <h1>KaiRo.at Mandelbrot Web</h1> |
| 19 | |
| 20 | <div id="overlayArea"> |
| 21 | <input type="button" id="drawButton" value="Draw Image" |
| 22 | onclick="drawImage();"> |
| 23 | <input type="button" id="backButton" value="Back" |
| 24 | onclick="goBack();" disabled="true"> |
| 25 | <input type="button" id="settingsButton" value="Settings" |
| 26 | onclick="toggleSettings();"> |
| 27 | <fieldset id="settings"><legend>Image data</legend> |
| 28 | Image coordinates: |
| 29 | <br>Real: |
| 30 | <br><label for="Cr_min">Min:</label> |
| 31 | <input id="Cr_min" value="-2.0" maxlength="10" size="10" type="text" |
| 32 | onchange="checkISValue(this, 'coord'); recalcCoord('Cr', 'scale');"> |
| 33 | <label for="Cr_max">Max:</label> |
| 34 | <input id="Cr_max" value="1.0" maxlength="10" size="10" type="text" |
| 35 | onchange="checkISValue(this, 'coord'); recalcCoord('Cr', 'scale');"> |
| 36 | <label for="Cr_scale">Scale:</label> |
| 37 | <input id="Cr_scale" value="3.0" maxlength="10" size="10" type="text" |
| 38 | onchange="checkISValue(this, 'coord'); recalcCoord('Cr', 'max');"> |
| 39 | <br>Imag: |
| 40 | <br><label for="Ci_min">Min:</label> |
| 41 | <input id="Ci_min" value="-1.5" maxlength="10" size="10" type="text" |
| 42 | onchange="checkISValue(this, 'coord'); recalcCoord('Ci', 'scale');"> |
| 43 | <label for="Ci_max">Max:</label> |
| 44 | <input id="Ci_max" value="1.5" maxlength="10" size="10" type="text" |
| 45 | onchange="checkISValue(this, 'coord'); recalcCoord('Ci', 'scale');"> |
| 46 | <label for="Ci_scale">Scale:</label> |
| 47 | <input id="Ci_scale" value="3.0" maxlength="10" size="10" type="text" |
| 48 | onchange="checkISValue(this, 'coord'); recalcCoord('Ci', 'max');"> |
| 49 | |
| 50 | <br><br>Image size: |
| 51 | <br><label for="image_width">Width:</label> |
| 52 | <input id="image_width" value="300" maxlength="4" size="4" type="number" |
| 53 | onchange="checkISValue(this, 'dim'); recalcCoord('Ci', 'scale');"> |
| 54 | <label for="image_height">Height:</label> |
| 55 | <input id="image_height" value="300" maxlength="4" size="4" type="number" |
| 56 | onchange="checkISValue(this, 'dim'); recalcCoord('Cr', 'scale');"> |
| 57 | <input type="checkbox" id="proportional" checked="true" |
| 58 | onchange="checkProportions();"> |
| 59 | <label for="proportional">proportional</label> |
| 60 | |
| 61 | <br><br><label for="iterMax">Maximum of iterations:</label> |
| 62 | <select id="iterMax"> |
| 63 | <option value="50">50</option> |
| 64 | <option value="100">100</option> |
| 65 | <option value="500" selected="selected">500</option> |
| 66 | <option value="1000">1000</option> |
| 67 | <option value="5000">5000</option> |
| 68 | </select> |
| 69 | |
| 70 | <br><label for="palette">Color palette:</label> |
| 71 | <select id="palette"> |
| 72 | <option value="bw">Black & White</option> |
| 73 | <option value="kairo" selected="selected">KaiRo default</option> |
| 74 | <option value="rainbow-linear1">Rainbow-linear 1</option> |
| 75 | <option value="rainbow-squared1">Rainbow 1 Squared</option> |
| 76 | <option value="rainbow-linear2">Rainbow 2 Linear</option> |
| 77 | <option value="rainbow-squared2">Rainbow 2 Squared</option> |
| 78 | </select> |
| 79 | </fieldset> |
| 80 | </div> |
| 81 | |
| 82 | <div id="mainArea"> |
| 83 | <canvas id="mbrotImage" width="300" height="300" |
| 84 | onclick="drawIfEmpty();"></canvas> |
| 85 | </div> |
| 86 | |
| 87 | <p>Time taken for calculation: <span id="calcTime">none yet</span></p> |
| 88 | |
| 89 | </body></html> |