7
7
8
8
< link rel ="stylesheet " href ="http://www.w3schools.com/lib/w3.css ">
9
9
< link rel ="stylesheet " href ="https://fonts.googleapis.com/icon?family=Material+Icons ">
10
- < link rel ="stylesheet " href ="http ://www.w3schools .com/lib/w3-theme-blue. css" >
10
+ < link rel ="stylesheet " href ="https ://fonts.googleapis .com/css?family=Lato:light " >
11
11
< link rel ="stylesheet " href ="style.css ">
12
12
13
13
< script src ="jscolor.js "> </ script >
20
20
< canvas id ="uiCanvas " style ="width: 100%; height: 100%; "> </ canvas >
21
21
</ div >
22
22
23
- < footer class ="tool-menu ">
24
- < div id ="toolMenuButton " class ="toolButton " onclick ="GUI.open(GUI.TOOL_MENU) "> </ div >
25
- < input type ="file " onchange ="loadFile() " id ="fileInput ">
23
+ < div class ="menu ">
24
+ < div class ="toolMenuButtonContainer ">
25
+ < div id ="toolMenuButton " onclick ="GUI.open(GUI.TOOL_MENU) "> </ div >
26
+ < div class ="loader toolButtonLoader "> </ div >
27
+ </ div >
28
+ <!--<input type="file" onchange="loadFile()" id="fileInput">
26
29
<a id="downloadLink" onclick="downloadImage()">Download</a>
27
30
<button class="jscolor {valueElement:null,value:'000000', onFineChange:'Application.values.setColor(this)'}" id="colorPicker"></button>
28
- </ footer >
29
- </ div >
30
- < div id ="toolMenu " style ="display:none; " class ="w3-modal " onclick ="GUI.close('toolMenu') ">
31
- < div class ="w3-modal-content ">
32
- < div >
33
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(Pencil) ">
34
- < img src ="Icons/pencil.png " alt ="pencil tool ">
35
- </ div >
36
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(Eraser) ">
37
- < img src ="Icons/Erase-50.png " alt ="Eraser tool ">
38
- </ div >
39
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(ColorPicker) ">
40
- < img src ="Icons/Color_picker.png " alt ="Color picker tool ">
41
- </ div >
42
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(Hand) ">
43
- < img src ="Icons/Hand.png " alt ="Hand tool ">
44
- </ div >
45
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(Zoom) ">
46
- < img src ="Icons/Search.png " alt ="Zoom tool ">
47
- </ div >
48
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(PaintBucket) ">
49
- < img src ="Icons/PaintBucket.png " alt ="Paint Bucket tool ">
50
- </ div >
51
- < div class ="toolButton " onclick ="GUI.toolButtonClicked(BrushSelection) ">
52
- < img src ="Icons/pencil.png " alt ="Brush selection tool ">
53
- </ div >
54
- </ div >
31
+ -->
55
32
</ div >
56
- < div >
57
- < button onclick ="GUI.filterButtonClicked(Filters.grayscale) "> Grayscale</ button >
58
- < button onclick ="GUI.filterButtonClicked(Filters.negative) "> Negative</ button >
59
- < button onclick ="GUI.filterButtonClicked(Filters.blur) "> Blur</ button >
60
- < button onclick ="GUI.filterButtonClicked(Filters.sharpen) "> Sharpen</ button >
33
+ </ div >
34
+ < div id ="toolMenu " onclick ="GUI.close('toolMenu') ">
35
+ < div class ="w3-modal-content w3-animate-left ">
36
+ < ul >
37
+ < li >
38
+ < h2 > Drawing</ h2 >
39
+ < ul >
40
+ < li >
41
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(Pencil) " src ="Icons/pencil.png " alt ="Pencil tool ">
42
+ </ li >
43
+ < li >
44
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(Eraser) " src ="Icons/Erase-50.png " alt ="Eraser tool ">
45
+ </ li >
46
+ < li >
47
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(PaintBucket) " src ="Icons/PaintBucket.png " alt ="Paint Bucket tool ">
48
+ </ li >
49
+ </ ul >
50
+ </ li >
51
+ < li >
52
+ < h2 > Navigation</ h2 >
53
+ < ul >
54
+ < li >
55
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(Hand) " src ="Icons/Hand.png " alt ="Hand tool ">
56
+ </ li >
57
+ < li >
58
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(Zoom) " src ="Icons/Search.png " alt ="Zoom tool ">
59
+ </ li >
60
+ </ ul >
61
+ </ li >
62
+ < li >
63
+ < h2 > Selection</ h2 >
64
+ < ul >
65
+ < li >
66
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(BrushSelection) " src ="Icons/pencil.png " alt ="Brush selection tool ">
67
+ </ li >
68
+ < li >
69
+ < img class ="toolButton " onclick ="GUI.toolButtonClicked(ColorPicker) " src ="Icons/Color_picker.png " alt ="Color picker tool ">
70
+ </ li >
71
+ </ ul >
72
+ </ li >
73
+ < li >
74
+ < h2 > Filters</ h2 >
75
+ < ul >
76
+ < li >
77
+ < button onclick ="GUI.filterButtonClicked(Filters.grayscale) "> Grayscale</ button >
78
+ </ li >
79
+ < li >
80
+ < button onclick ="GUI.filterButtonClicked(Filters.negative) "> Negative</ button >
81
+ </ li >
82
+ < li >
83
+ < button onclick ="GUI.filterButtonClicked(Filters.blur) "> Blur</ button >
84
+ </ li >
85
+ < li >
86
+ < button onclick ="GUI.filterButtonClicked(Filters.sharpen) "> Sharpen</ button >
87
+ </ li >
88
+ </ ul >
89
+ </ li >
90
+ </ ul >
61
91
</ div >
62
92
</ div >
63
93
</ body >
94
+ < script src ="gui.js "> </ script >
64
95
< script src ="setup.js "> </ script >
65
96
< script src ="fileOperations.js "> </ script >
66
97
< script src ="tools.js "> </ script >
67
- < script src ="gui.js "> </ script >
68
98
< script src ="filters.js "> </ script >
69
99
</ html >
0 commit comments