-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (71 loc) · 3.66 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
<!DOCTYPE html>
<html>
<head>
<title>
Pixel Painter
</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script type="text/javascript" src="scripts/jscolor/jscolor.js"></script>
<script type="text/javascript" src="scripts/pixel-painter-scripts.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="styles/pixel-painter-styles.css">
</head>
<body>
<div id="app-container" data-ng-app="PixelPainterApp">
<div id="pixel-painter-container" data-ng-controller="AppController">
<div id="pixel-painter-toolbar" data-handle-toolbar>
<div id="general-button-control-container">
<div id="hide-grid-button" class="button" data-ng-click="toggleShowGrid()">
{{showGridButtonText}}
</div>
</div>
<div id="zoom-control-container" data-ng-class="zoomFactorContainerClass">
<div class="button" data-ng-click="toggleShowZoomFactor()">
Zoom
</div>
<div id="zoom-button-container">
<div class="button"
data-ng-class="{'selected': (zoomFactor == zoomFactorButton.zoomFactor)}"
data-ng-click="changeZoomFactor(zoomFactorButton.zoomFactor)"
data-ng-repeat="zoomFactorButton in zoomFactorButtons">
{{zoomFactorButton.buttonTitle}}
</div>
</div>
</div>
<div id="colour-control-container">
<span class="title" data-ng-click="showColourPicker()">
Selected Colour:
</span>
<input class="color {pickerFaceColor:'white',pickerFace:1,pickerBorder:1,pickerInsetColor:'lightgrey', hash: true}"
id="toolbarColourSelect"
data-ng-click="showColourPicker()"
data-ng-model="colourPickerValue">
</div>
<div id="tool-control-container">
<span class="title">
Selected Tool:
</span>
<div class="button"
data-ng-class="{selected: (currentToolId == 'brush')}"
data-ng-click="changeTool('brush')">
Brush
</div>
<div class="button"
data-ng-class="{selected: (currentToolId == 'fill')}"
data-ng-click="changeTool('fill')">
Fill
</div>
</div>
</div>
<div id="pixel-painter-viewport" data-sync-height>
<table id="pixel-painter-canvas" data-ng-class="{'no-grid': !showGrid}" data-handle-canvas>
<tr class="pixel-row" data-ng-repeat="row in pixelMap">
<td class="pixel" data-ng-repeat="pixel in row" data-handle-pixel>
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>