-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
107 lines (102 loc) · 4.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ulam spiral generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootswatch/2.3.2/cosmo/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.0/css/font-awesome.min.css">
<!--link rel="stylesheet" href="components/bootstrap/docs/assets/css/bootstrap.css"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="components/bootstrap/docs/assets/css/bootstrap-responsive.css"/-->
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="">Ulam spiral generator</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
<a href="http://blog.ejci.net" class="navbar-link">Contact</a>
</p>
<ul class="nav">
<li>
<a href="https://github.com/ejci/Ulam-spiral">Source</a>
</li>
<li>
<a href="http://en.wikipedia.org/wiki/Ulam_spiral">Ulam Spiral</a>
</li>
<li>
<a href="http://www.youtube.com/watch?v=iFuR97YcSLM">Numberphile video</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<fieldset>
<legend>
Settings
</legend>
<label>Start number</label>
<input type="text" value="1" id="startNum"/>
<label>Size of spiral (columns)</label>
<input type="text" value="100" id="canvasSize"/>
<br/>
<button class="btn btn-inverse" id="generateButton">
Generate
</button>
</fieldset>
<hr/>
<div id="error" class="alert alert-error" style="display:none;">
<strong>Hmm... </strong>
</div>
<div class="alert">
<strong> Be carrefull</strong> with the size of the spiral. Sizes bigger than 500* can make your browser (and computer) to sweat :)
<hr />
<small>* Depends on the browser</small>
</div>
<div class="alert alert-info">
Click on generated image to <strong>save</strong> ganerated spiral.
</div>
</div>
<div class="span9 text-left">
<canvas class="canvas" id="canvas"></canvas>
</div>
</div>
</div>
<div class="container-fluid">
<hr>
<small>© <a href="http://blog.ejci.net">Miroslav Magda</a> 2013 </small>
</div>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<!--script src="components/jquery/jquery.min.js"></script>
<script src="components/bootstrap/docs/assets/js/bootstrap.min.js"></script-->
<script src="js/app.js"></script>
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] ||
function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-32777257-5', 'ejci.net');
ga('send', 'pageview');
</script>
</body>
</html>