-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (157 loc) · 8.52 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
185
186
187
188
<!DOCTYPE html>
<head>
<title>Edit Your Project</title>
<link rel="stylesheet" type="text/css" href="styles/sketch.css">
<link rel="shortcut icon" href="https://i.pinimg.com/originals/7c/43/0b/7c430ba6fb3cd7058aec52cb84a080e6.png" type="image/x-icon">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.14.0/Sortable.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
</head>
<body onselectstart="return false">
<div class="backdrop" id="canvas-size-window">
<div class="option-window">
<h1>Enter a size of the canvas</h1>
<div class="canvas-sizes">
<input type="text" class="size-input" id="size-x" value="1400" maxlength="4" size="4">
<input type="text" class="size-input" id="size-y" value="700" maxlength="4" size="4">
</div>
<button id="startCanvas"> Create </button>
</div>
</div>
<div class="page">
<div class="nav" id="sideBar" onselectstart="return false">
<button id="close_button" class="close-button" accesskey="esc"><img src="icons/close.png" class="icon switchable"></button>
<div class="section">
<div class="colors-section">
<!--<input id="color_input" style="visibility: hidden;" data-coloris>-->
<input class="userColor" type="color" id="color-input" title="Pen color" value="#000000">
<button id="palette_button" class="userColor" title="Color palettes"><img src="icons/palette.png" class="icon"></button>
</div>
<!--<input type="range" class="slider" min="0" max="100" value="100" id="transparency_slider" title="Transparency of pen">
<label for="transparency_slider" id="transparency_slider_label"></label>-->
</div>
<div class="section">
<button id="undoButton" title="Undo" class="undoredo"><img src="icons/undo.png" class="icon"></button>
<button id="redoButton" title="Redo" class="undoredo"><img src="icons/redo.png" class="icon"></button>
</div>
<div class="section">
<button id="save" title="Save as image"><img src="icons/save.png" class="icon"></button>
<button id="clear" title="Clear the canvas"><img src="icons/clear.png" class="icon"></button>
<!--<p><b>Settings</b></p>-->
<button id="settings_button" class="settings_button" title="Settings"><img src="icons/parameters.png" class="icon"></button>
<button id="tips_button" class="settings_button" title="Tips"><img src="icons/tips.png" class="icon"></button>
</div>
<div class="section" style="display: flex;">
<div class="small-button solid-black" id="stroke-button"><img src="icons/curve.png" class="small-icon"></div>
<div id="stroke-options" class="hoverable">
<div class="section">
<input type="checkbox" id="smoothCheckbox" checked><label for="allowSmoothing">Smooth stroke</label>
</div>
<div class="section">
<input type="number" name="" min="0" max="1" step="0.1" value="0.2" id="smoothFactorInput"><label for="smoothFactorInput">Smooth factor</label>
</div>
</div>
<div class="small-button solid-black" id="selection-button"><img src="icons/area.png" class="small-icon"></div>
<div id="selection-options" class="hoverable">
<div id="reset-clip" class="option">
<p>Reset Selection</p>
</div>
</div>
<div class="small-button solid-black " id="filters-button"><img src="icons/function.png" class="small-icon""></div>
<div id="filters-options" class="hoverable">
</div>
</div>
<div class="section" id="tools-section">
<!--Drawing tools as scrollable list-->
<div style="display: flex; justify-content: flex-start;">
<h3 style="display: inline-block">Tools</h3>
<div id="showBrushes" style="display: inline-block"><img src="icons/settings.png" height="30" width="30" class="switchable"></div>
</div>
<div id="tools-container">
</div>
</div>
<h3>Tool Properties</h3>
<div class="section" id="tools-properties">
</div>
</div>
<div class="nav closed" id="settingsBar">
<button id="close_settings" class="close-button"><img src="icons/back.png" class="icon switchable"></button>
<div class="section">
<h3>Color Themes</h3>
<div id="themesContainer" class="section">
</div>
</div>
</div>
<div class="nav closed" id="tips-bar">
<button id="close-tips-bar" class="close-button"><img src="icons/back.png" class="icon switchable"></button>
<h3>Shortcuts</h3>
<div class="shortcuts">
<p>Close Sidebar</p><div class="key"> <p>Esc</p></div>
<p>Undo</p><div class="key"><p>Ctrl</p>+<p>Z</p></div>
<p>Redo</p><div class="key"><p>Ctrl</p>+<p>Y</p></div>
<p>Open Menu</p><div class="key"> <p>M</p></div>
<p>Layers Bar</p><div class="key"><p>L</p></div>
<p>Palette</p><div class="key"><p>P</p></div>
<p>Settings</p><div class="key"><p>S</p></div>
<p>Tips</p><div class="key"><p>Q</p></div>
<p>Save as Image</p><div class="key"><p>Ctrl</p>+<p>S</p></div>
</div>
<div class="section">
<footer class="footer">
<div class="footer-contents">
<p>Created by tasiya1</p><a href="https://github.com/tasiya1/Bloomie_v3" target="_blank">GitHub Repo<img src="icons/external-link.svg" class="switchable" width="15px" height="15px"></a>
</div>
</footer>
</div>
</div>
<div class="nav closed" id="paletteBar">
<button id="closePalette" class="close-button"><img src="icons/back.png" class="icon switchable" height="20" width="20"></button>
<div>
<h3 style="display: inline-block;">Custom palette</h3>
<button id="add_to_palette" style="display: inline-block;"><img src="icons/plus.png"></button>
</div>
<div class="palette-cell-container" id="custom_palette">
</div>
<div id="standard-palettes">
</div>
</div>
<span class="menuButton"><button id="menu_button" title="Show menu"><img src="icons/menu.png" class="icon switchable"></button></span>
<div class="canvas-container" style="position: relative;">
<div id="layers">
</div>
</div>
<div id="layer-bar" class="floating-bar folded">
<img src="icons/layers.png" alt="" class="icon switchable" id="layers-icon">
<div class="tool" id="add-layer">
<img src="icons/plus.png" width="20" class="switchable">
<p>Add a layer</p>
</div>
<div style="height: 80%; overflow-y: scroll; overflow-x: clip; border-bottom: 1px lightgrey solid;">
<ol type="1" class="section" id="layer-list">
</ol>
</div>
<div class="layer-properties">
<p>Layer opacity</p>
<input type="range" id="layerOpacityInput" min="0" max="1" step="0.01" value="1" class="slider">
<label for="layerOpacityInput" id="layerOpacityLabel">1</label>
</div>
</div>
<!-- Display width -->
<div id="pen-width-container">
<div id="displayPenWidth">
<div style="position: fixed;
width: 100%;
height: 100%;
border: 1px solid black;
border-radius: 50%;">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="script/colorThemes.js"></script>
<script type="text/javascript" src="script/canvasStateController.js"></script>
<script type="text/javascript" src="script/drawingTools.js"></script>
<script type="text/javascript" src="script/layerhandlingUI.js"></script>
<script type="text/javascript" src="script/main.js"></script>
<script type="text/javascript" src="script/initColorPalettes.js"></script>
</body>
</html>