-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·171 lines (153 loc) · 8.33 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>GNC</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="lib/js/jquery-1.8.2.min.js"></script>
<!--<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css">-->
<link rel="stylesheet" type="text/css" href="http://localhost:8888/GNC/css/jquery.jcrop.min.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8888/GNC/css/main.css">
<!--<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>-->
<script type="text/javascript" src="http://localhost:8888/GNC/lib/js/jquery.jcrop.min.js"></script>
<script type="text/javascript" src="http://localhost:8888/GNC/lib/js/canvas.txt.extension.js"></script>
<script type="text/javascript" src="http://localhost:8888/GNC/lib/js/load.js"></script>
</head>
<body>
<div class="logo"><!--GNC--></div>
<div id="intro" class="intro container">
<div class="box intro">
<button id="btnStart"></button>
</div>
</div>
<div id="step1" class="upload container">
<!-- Upload and save image to server -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_on.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_off.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_off.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<div class="lbl_upload"></div>
<form method="post" enctype="multipart/form-data" action="lib/php/upload.php">
<input type="file" name="images" id="images" class="btnUpload"/>
<button type="submit" id="btnUpload">Click to Upload.</button>
</form>
</div>
</div>
<div id="step2" class="crop container"> <!-- style="display:block; left:0px; " -->
<!-- Crop and save image -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_off.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_on.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_off.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<div class="jcroppy">
<img id="canvasToThumb" class='thumbnail-img' width="" height="" src=""/>
</div>
<input type="text" id="x" class="hidden_input" name="coord_x" />
<input type="text" id="y" class="hidden_input" name="coord_y" />
<input type="text" id="x2" class="hidden_input" name="coord_x2"/>
<input type="text" id="y2" class="hidden_input" name="coord_y2"/>
<input type="text" id="w" class="hidden_input" name="size_w"/>
<input type="text" id="h" class="hidden_input" name="size_h"/>
<div class="next_prev_container">
<img src="assets/images/lbl_pos_txt.png" id="lblColorImage" width="217" height="18"/>
<button id="prevStepOne" class="previous"></button> <!-- prev step 1 button -->
<button id="crop" class="next"></button>
</div>
<ul id="image-list"/><!-- need to remove but referenced to a function all weird so it is invisible -->
</div>
</div>
<div id="step3" class="filter container">
<!-- Loads cropped image as black and white with image overlay options -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_off.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_on.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_off.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<div class="color_tools_container">
<ul id="colorTools">
<li><img src="assets/images/rad_orange_off.png" id="btnOrange" width="32" height="32" alt="ORANGE"/></li>
<li><img src="assets/images/rad_red_off.png" id="btnRed" width="32" height="32" alt="RED"/></li>
<li><img src="assets/images/rad_purple_off.png" id="btnPurple" width="32" height="32" alt="PURPLE"/></li>
<li><img src="assets/images/rad_blue_off.png" id="btnBlue" width="32" height="32" alt="BLUE"/></li>
<li><img src="assets/images/rad_green_off.png" id="btnGreen" width="32" height="32" alt="GREEN"/></li>
<li><img src="assets/images/rad_yellow_off.png" id="btnYellow" width="32" height="32" alt="YELLOW"/></li>
</ul>
</div>
<canvas id="canvasThumbResult" width="380" height="380"></canvas>
<div class="next_prev_container">
<img src="assets/images/lbl_color_image.png" id="lblColorImage" width="160" height="17"/>
<button id="prevStepTwo" class="previous"></button> <!-- prev step 2 button -->
<button id="btnSaveCanvas" class="next"></button>
</div>
</div>
</div>
<div id="step4" class="form container">
<!-- Text form -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_off.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_on.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_off.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<div id="form">
<input type="text" id="beatName" placeholder="NAME" width="391" height="61"/>
<img src="assets/images/lbl_beat_avg.png" width="391" height="61"/>
<textarea id="beatText" placeholder="HOW?"></textarea>
<button id="btnEnterTxt" class="btn_enter_txt"></button>
</div>
</div>
</div>
<div id="step5" class="text container">
<!-- Text placement on filtered image -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_off.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_on.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_off.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<canvas id="txtCanvas" width="380" height="380"></canvas>
<div class="next_prev_container">
<img class="lbl_pos_txt" src="assets/images/lbl_pos_txt.png" width="217" height="18"/>
<button id="prevStepFour" class="previous"></button>
<button id="btnAddText" class="next"></button>
</div>
</div>
</div>
<div id="step6" class="share container">
<!-- smoked share functionality -->
<div class="box">
<ul class="nav_icons">
<li><img src="assets/images/icon_upload_off.png" width="28" height="28" alt="STEP ONE"/></li>
<li><img src="assets/images/icon_edit_off.png" width="31" height="27" alt="STEP TWO"/></li>
<li><img src="assets/images/icon_share_on.png" width="31" height="27" alt="STEP THREE"/></li>
</ul>
<img class="lbl_share" src="assets/images/lbl_share.png" width="274" height="50"/>
<div class="share_box">
<img id="previewShare" src="" width="80" height="80" style="float:left; margin:0 10px 0 0;" />
<textarea style="float:left; border:0px; width:200px;" placeholder="ENTER SHARE MESSAGE"></textarea>
</div>
<ul class="share_buttons">
<li><img src="assets/images/btn_twitter.png" width="41" height="42"/></li>
<li><img src="assets/images/btn_fb.png" width="41" height="42"/></li>
<li><img src="assets/images/btn_instagram.png" width="41" height="42"/></li>
<li><img src="assets/images/btn_google.png" width="41" height="42"/></li>
</ul>
<button id="btnShare"></button>
</div>
</div>
<div id="step7" class="final container">
<!-- display final image that would be shared. -->
<div class="box">
<div class="final_frame">
<img id="finalImage" src="" width="380" height="380" style=""/>
<img src="assets/images/gnc_logo_red.png" width="215" height="48" style="margin:24px 0 0 88px;"/>
</div>
</div>
</div>
</body>
</html>