-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
166 lines (136 loc) · 6.71 KB
/
main.html
File metadata and controls
166 lines (136 loc) · 6.71 KB
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
<html>
<head>
<title>Dots Factory</title>
<link rel="stylesheet" href="main_style.css">
</head>
<body>
<div id="header">
<h1>Dots Factory</h1>
</div>
<div id="side">
<p id="number_indicator">Page 1/1</p>
<hr color="black">
<div id="file_btns">
<button class="btn_blue" onmouseup="save_file()">Save</button>
<button class="btn_blue" onmouseup="export_file()">Export</button>
<button class="btn_blue" onmouseup="load_file()">Load</button>
</div>
<hr color="black">
<div id="modes">
<div class="mode_change" onmouseup="change_mode('page')" id="btn_page">
<img src="gear.png">
<!-- <p>Page</p> -->
</div>
<div class="mode_change" onmouseup="change_mode('point')" id="btn_point">
<img src="point.png">
<!-- <p>Point</p> -->
</div>
<div class="mode_change" onmouseup="change_mode('img')" id="btn_img">
<img src="img.png">
<!-- <p>Image</p> -->
</div>
<div class="mode_change" onmouseup="change_mode('text')" id="btn_text">
<img src="text.png">
<!-- <p>Text</p> -->
</div>
</div>
<hr color="black">
<div id="page" class="settings">
<h2>Page Settings</h2>
<hr>
<div class="setting_container">
<label for="page_color">Page Color:</label>
<input type="color" id="page_color" name="page_color" value="#ffffff" onchange="change_page_color()">
</div><hr>
<div class="setting_container">
<label for="page_zoom">Page Zoom:</label>
<input type="number" id="page_zoom" name="page_zoom" min="3" value="4" style="width: 100px;" onchange="change_zoom()">
</div><hr>
<div class="setting_container">
<button class="btn_blue" onmouseup="insert_page(page_number)"><</button>
<p style="display: inline;">Insert Page</p>
<button class="btn_blue" onmouseup="insert_page(page_number+1)">></button>
</div><hr>
<div class="setting_container" id="move_page">
<button class="btn_blue" id="page_left" onmouseup="change_page(-1)"><</button>
<p style="display: inline;">Change Page</p>
<button class="btn_blue" id="page_right" onmouseup="change_page(1)">></button>
</div><hr>
<div class="setting_container">
<button class="btn_red" onmouseup="delete_page()">Delete Page</button>
</div>
<hr>
</div>
<div id="point" class="settings">
<h2>Point Settings</h2>
<hr>
<div class="setting_container" id="move_point">
<button class="btn_blue" id="point_left" onmouseup="change_point(-1)"><</button>
<p style="display: inline;">Change Point</p>
<button class="btn_blue" id="point_right" onmouseup="change_point(1)">></button>
</div><hr>
<div class="setting_container">
<button class="btn_red" onmouseup="delete_point()">Delete Point</button>
</div>
</div>
<div id="img" class="settings">
<h2>Image Settings</h2>
<hr>
<div class="setting_container">
<p style="text-align: center;">Refrence Image:</p>
<input type="file" name="img_file" id="img_file" accept="image/png, image/jpeg" onchange="new_image()">
</div><hr>
<div class="setting_container">
<label for="img_width">width:</label>
<input type="number" id="img_width" name="img_width" min="1" max="340" value="100" onchange="change_img()">
<br>
<br>
<label for="img_height">height:</label>
<input type="number" id="img_height" name="img_height" min="1" max="440" value="100" onchange="change_img()">
</div><hr>
<div class="setting_container">
<label for="img_x">x:</label>
<input type="number" id="img_x" name="img_x" min="0" max="340" value="0" onchange="change_img()">
<br>
<br>
<label for="img_y">y:</label>
<input type="number" id="img_y" name="img_y" min="0" max="440" value="0" onchange="change_img()">
</div><hr>
<div class="setting_container">
<button class="btn_red" onmouseup="delete_img()">Delete Image</button>
</div>
</div>
<div id="text" class="settings">
<h2>Text Settings</h2>
<hr>
<div class="setting_container">
<p>Click over page to add text</p>
</div><hr>
<div class="setting_container">
<label for="text_text">Text:</label>
<input type="text" id="text_text" name="text_text" style="width: 100px">
</div><hr>
<div class="setting_container">
<label for="text_color">Color:</label>
<input type="color" id="text_color" name="text_color">
</div><hr>
<div class="setting_container">
<label for="text_font">Font:</label>
<select id="text_font" name="text_font">
<option value="Arial">Arial</option>
<option value="ComicSansMS">ComicSansMS</option>
</select>
</div><hr>
<div class="setting_container">
<label for="text_size">Font Size:</label>
<input type="number" id="text_size" name="text_size" min="1" value="12" style="width: 100px;">
</div><hr>
<div class="setting_container">
<button class="btn_red" onmouseup="delete_text()">Delete Last Text</button>
</div>
</div>
</div>
<div id="canvholder"><canvas class="page" id="canv"></canvas></div>
</body>
<script type="text/javascript" src="main.js"></script>
</html>