forked from trpo-moais-2016/fg01-snowflake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (67 loc) · 3.55 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
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="suhoy">
<link rel="shortcut icon" href="">
<title>Фрактальная графика</title>
<!-- Bootstrap core CSS -->
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap theme -->
<link href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
</head>
<body>
<div class="container" ng-controller="mainController">
<h1 class="page-header" style="margin: 2px 0 10px 0">Снежинка Коха</h1>
<div class="row">
<div class="col-md-8 thumbnail">
<canvas width="800" height="600" id="fractal" style="width:100%;" drawing="fractal"></canvas>
</div>
<div class="col-md-4">
<div class="thumbnail">
<p><div class="input-group">
<span class="input-group-addon">Количество сторон:</span>
<span class="input-group-addon" ng-bind="n"></span>
<input type="range" min="2" max="10" class="form-control" ng-model="n" ng-change="update()">
</div></p>
<p><div class="input-group">
<span class="input-group-addon">Угол поворота</span>
<span class="input-group-addon" ng-bind="fi | number : 2"></span>
<input type="range" min="0" max="{{maxFi}}" step="0.01" class="form-control" ng-model="fi" ng-change="update()">
</div></p>
<p><div class="input-group">
<span class="input-group-addon">Радиус окружности</span>
<span class="input-group-addon" ng-bind="r | number : 1"></span>
<input type="range" min="0" max="{{maxR}}" step="1" class="form-control" ng-model="r" ng-change="update()">
</div></p>
<p align="center">
<label>
<input type="checkbox" ng-model="clearCanvas"> Очищать лист при перерисовке
</label>
</p>
</div>
<div class="thumbnail">
<p><div class="input-group">
<span class="input-group-addon">Количестов поколений:</span>
<span class="input-group-addon" ng-bind="stepsCount"></span>
<input type="range" min="0" max="8" class="form-control" ng-model="stepsCount">
</div></p>
<p>
<button class="btn btn-default" ng-click="recalc()">Построить</button>
</p>
</div>
</div>
</div>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="js/app.js"></script>
</body>
</html>