/
design.html
327 lines (277 loc) · 17.4 KB
/
design.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<div ng-app="cdesign" id="mainContainer" resizable>
<div ng-controller="MainController as main">
<div class="sk-cube-grid" ng-hide="loaded">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
<div ng-cloak="" ng-show="loaded">
<div class="visible-xs visible-sm">
<div class="col-xs-12 customize_banner mob">
<div class="pageContainer">
<select onchange="if (this.value) window.location.href=this.value">
<option ng-selected="startType == 'jhumka'" value="{{siteUrl}}index.php?designearrings=jhumka">Jhumkas</option>
<option ng-selected="startType == 'dangler'" value="{{siteUrl}}index.php?designearrings=dangler">Danglers</option>
<option ng-selected="startType == 'hoop'" value="{{siteUrl}}index.php?designearrings=hoop">Hoops</option>
<option ng-selected="startType == 'chandelier'" value="{{siteUrl}}index.php?designearrings=chandelier">Chandeliers</option>
</select>
<div class="previewParent mob">
<img class="ear mob" src="../images/cocreateface1.png" alt="">
<div class="previewbox">
<div class="designDiv">
<figure class='star' style="left:20px; top: 15px;"><figure class='star-top'></figure><figure class='star-bottom'></figure></figure>
<div class="prd_elements shadowed elements{{$index}}" ng-repeat="imgItem in mySelectedItems track by $index" prd-position selected-item="imgItem" level="designLevel">
<img ng-src="{{siteUrl}}productImages/{{imgItem.selectedImage}}" />
</div>
<div class="clearfix"></div>
</div>
</div>
</div> <!--preview ends here -->
</div> <!-- pagecontainer ends here -->
</div>
<div class="clearfix"></div>
<section name="col_options" class="imgoptionsmob">
<div class="col-xs-12">
<h5 ng-if="mySelectedItems[prdIndex[designLevel][0]].images.length == 0" ng-show="levelFilled">{{mySelectedItems[prdIndex[designLevel][0]].name}}</h5>
<div id="imgOptions" ng-if="mySelectedItems[prdIndex[designLevel][0]].images.length > 0">
<h5 ng-show="levelFilled">{{mySelectedItems[prdIndex[designLevel][0]].name}} options:</h5>
<ul style="list-style: none;">
<li ng-if="levelFilled" class="aelements mob" ng-click="selectImage(mySelectedItems[designLevel].carouselImg, false);">
<img ng-if="mySelectedItems[prdIndex[designLevel][0]].style.indexOf('hook') > -1" ng-src="{{siteUrl}}productImages/{{mySelectedItems[prdIndex[designLevel][0]].hookImg}}" alt="" />
<img ng-if="mySelectedItems[prdIndex[designLevel][0]].style.indexOf('hook') <= -1" ng-src="{{siteUrl}}productImages/{{mySelectedItems[prdIndex[designLevel][0]].carouselImg}}" alt="" />
</li>
<li class="aelements mob" ng-repeat="altItem in mySelectedItems[prdIndex[designLevel][0]].images">
<img ng-src="{{siteUrl}}productImages/{{altItem.imagefile}}" ng-click="selectImage(altItem.imagefile, false);" />
</li>
</ul>
</div>
</div>
</section>
<div class="clearfix"></div>
<section class="customcontrols mob" >
<div class="col-xs-12">
<div class="custombuttons" ng-hide="startType == 'stud'" >
<button ng-click="resetDesign()" ng-disabled="!showCartbtn" class="btn btn-primary">Start Over</button>
<button type="button" ng-disabled="designLevel == 0" class="btn btn-primary" ng-click="gobackLevel()">Go Back</button>
<button ng-click="processForm()" ng-disabled="!showCartbtn" class="pull-right btn btn-primary">Show Pricing</button>
<button class="btn btn-primary pull-right nextbtn" ng-if="startType != 'stud'" ng-disabled="nextDisable()" ng-click="updateLevel()"> Next <i class="fa fa-check-circle"></i> </button>
<div class="clearfix"></div>
<p class="pull-right" ng-if="startType != 'stud' && mySelectedItems.length > 0 && levelFilled && nextDisable()"><small> No more possible designs.</small></p>
</div>
</div>
</section>
<div class="clearfix"></div>
<section name="prdelements">
<div class="col-xs-12">
<div class="scrollarea loader" ng-hide="showPieces">
<img ng-src="{{siteUrl}}images/hourglass.gif" alt="">
</div>
<div ng-scrollbars ng-scrollbars-config="config" ng-scrollbars-update=updateScrollbar class="scrollarea mob" ng-style="{'visibility': showPieces ? 'visible' : 'hidden'}">
<div class="col-xs-12" >
<div class="product-grid elem mob" ng-repeat="imgElem in piecesElm = filteredSet | orderBy:'-priority'" ng-click="selectImage(imgElem, true);">
<img ng-if="imgElem.images.length >0" align="right" ng-src="{{siteUrl}}images/paint-board-and-brush.svg" alt="">
<div class="product-img">
<img ng-if="imgElem.style.indexOf('hook') > -1" ng-src="{{siteUrl}}productImages/{{imgElem.hookImg}}" alt="" />
<img ng-if="imgElem.style.indexOf('hook') <= -1" ng-src="{{siteUrl}}productImages/{{imgElem.carouselImg}}" alt="" />
</div>
</div>
</div>
</div> <!-- scrollbar plugin ends -->
</div>
</section>
<div class="clearfix"></div>
<!-- <h1> Oops! </h1>
<p> Nothing's wrong, our awesome customization feature needs a little more screen space for you to play!</p>
<p> So keep calm and switch to your laptop/tablet and be surprised!</p> -->
<!-- Message for user -->
</div>
<section class="hidden-xs hidden-sm customize_banner">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-7">
<div class="design_header">
<ul class="nav nav-tabs">
<li ng-class="{active: startType == 'jhumka'}"><a target="_self" href="{{siteUrl}}index.php?designearrings=jhumka">Jhumkas</a></li>
<li ng-class="{active: startType == 'dangler'}"><a target="_self" href="{{siteUrl}}index.php?designearrings=dangler">Danglers</a></li>
<li ng-class="{active: startType == 'hoop'}"><a target="_self" href="{{siteUrl}}index.php?designearrings=hoop">Hoops</a></li>
<li ng-class="{active: startType == 'chandelier'}"><a target="_self" href="{{siteUrl}}index.php?designearrings=chandelier">Chandeliers</a></li>
</ul>
</div>
<div class="scrollarea loader" ng-hide="showPieces">
<img ng-src="{{siteUrl}}images/hourglass.gif" alt="">
</div>
<div ng-scrollbars ng-scrollbars-config="config" ng-scrollbars-update=updateScrollbar class="scrollarea" ng-style="{'visibility': showPieces ? 'visible' : 'hidden'}">
<div class="col-xs-12" >
<div class="product-grid elem" ng-repeat="imgElem in piecesElm = filteredSet | orderBy:'-priority'" ng-click="selectImage(imgElem, true);">
<img ng-if="imgElem.images.length >0" align="right" ng-src="{{siteUrl}}images/paint-board-and-brush.svg" alt="">
<div class="product-img">
<img class="scrlTop" ng-if="imgElem.style.indexOf('hook') > -1" ng-src="{{siteUrl}}productImages/{{imgElem.hookImg}}" alt="" />
<img class="scrlTop" ng-if="imgElem.style.indexOf('hook') <= -1" ng-src="{{siteUrl}}productImages/{{imgElem.carouselImg}}" alt="" />
</div>
</div>
</div>
</div> <!-- scrollbar plugin ends -->
</div><!-- col10 ends here -->
<div class="col-lg-4 col-md-5">
<div class="previewParent">
<img class="ear" src="../images/cocreateface1.png" alt="">
<div class="previewbox">
<div class="designDiv">
<figure class='star' style="left:20px; top: 15px;"><figure class='star-top'></figure><figure class='star-bottom'></figure></figure>
<div class="prd_elements shadowed elements{{$index}}" ng-repeat="imgItem in mySelectedItems track by $index" prd-position selected-item="imgItem" level="designLevel">
<img ng-src="{{siteUrl}}productImages/{{imgItem.selectedImage}}" />
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div> <!-- col ends -->
</div> <!-- row ends here-->
</div> <!-- container ends here -->
</section>
<section class="customcontrols hidden-xs hidden-sm ">
<div class="container">
<div class="col-lg-7 col-md-7">
<div class="custombuttons" ng-hide="startType == 'stud'" >
<button ng-click="resetDesign()" ng-disabled="!showCartbtn" class="btn btn-primary">Start Over</button>
<button type="button" ng-disabled="designLevel == 0" class="btn btn-primary" ng-click="gobackLevel()">Go Back</button>
<button ng-click="processForm()" ng-disabled="!showCartbtn" class="pull-right btn btn-primary">Show Pricing</button>
<button class="btn btn-primary pull-right nextbtn" ng-if="startType != 'stud'" ng-disabled="nextDisable()" ng-click="updateLevel()"> Next <i class="fa fa-check-circle"></i> </button>
<div class="clearfix"></div>
<p class="pull-right" ng-if="startType != 'stud' && mySelectedItems.length > 0 && levelFilled && nextDisable()"><small> No more possible designs.</small></p>
</div>
</div>
<div class="col-lg-5 col-md-5">
<h5 ng-if="mySelectedItems[prdIndex[designLevel][0]].images.length == 0" ng-show="levelFilled">{{mySelectedItems[prdIndex[designLevel][0]].name}}</h5>
<div id="imgOptions" ng-if="mySelectedItems[prdIndex[designLevel][0]].images.length > 0">
<h5 ng-show="levelFilled">{{mySelectedItems[prdIndex[designLevel][0]].name}} options:</h5>
<ul style="list-style: none;">
<li ng-if="levelFilled" class="aelements" ng-click="selectImage(mySelectedItems[designLevel].carouselImg, false);">
<img ng-if="mySelectedItems[prdIndex[designLevel][0]].style.indexOf('hook') > -1" ng-src="{{siteUrl}}productImages/{{mySelectedItems[prdIndex[designLevel][0]].hookImg}}" alt="" />
<img ng-if="mySelectedItems[prdIndex[designLevel][0]].style.indexOf('hook') <= -1" ng-src="{{siteUrl}}productImages/{{mySelectedItems[prdIndex[designLevel][0]].carouselImg}}" alt="" />
</li>
<li class="aelements" ng-repeat="altItem in mySelectedItems[prdIndex[designLevel][0]].images">
<img ng-src="{{siteUrl}}productImages/{{altItem.imagefile}}" ng-click="selectImage(altItem.imagefile, false);" />
</li>
</ul>
</div>
</div>
</div>
<section class="designerpick" ng-if="designerPicks.length > 0">
<h3>Designer's Suggestion</h3>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item" ng-repeat="despick in designerPicks" ng-class={active:$first}>
<a target="_blank" ng-href="{{siteUrl}}index.php?single&id={{despick['productid']}}">
<img ng-src="{{siteUrl}}/productImages/{{despick['mainimg']}}" />
</a>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> >
</a>
</div>
</section>
</section>
<!-- show custom designs here -->
<section class="saved_designs ">
<div class="container">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<h4>Your Saved Designs</h4>
<div class="products" ng-if="customizedEarrings.length > 0">
<div ng-repeat="cdes in customizedEarrings" class="product-card">
<div class="product-image">
<img ng-src="{{siteUrl}}productImages/{{ cdes.imgName }}"/>
</div>
<div class="product-info design">
<div class="details">
<p class="pr-price">Price: <i class="fa fa-inr"></i> {{ cdes.price }}</p>
<button ng-if="!isAgent" type="button" class="btn btn-primary" ng-click="addDesToCart(cdes.pid, cdes.price);">Add To Cart</button>
</div>
</div>
</div>
</div>
<div class="products" ng-if="customizedEarrings.length == 0">
<p>View your recently created designs here. </p>
</div>
</div> <!-- col ends -->
</div> <!-- row ends -->
</div><!-- container ends -->
</section>
<br><br>
</div>
<!-- end of cloak -->
</div>
<!-- controller ends-->
</div>
<!--topmost div ends -->
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-md">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Your Personalized <span id='earringType'></span></h4>
</div>
<div class="modal-body">
<input type='hidden' name='pid' value="" />
<input type='hidden' name='pprice' value="" />
<div class="row">
<div class="col-xs-6">
<img style="width:100%; margin:100px 0" id="cimg" src='' />
</div>
<div class="col-xs-6 savedlist">
<h4 style="text-align: left;">Materials:</h4>
<p id="matlist"></p><br>
<h4 style="text-align: left;">Price: </h4><small>All inclusive (Shipping, Taxes)<small/>
<p style="font-size: 18px;"> <i class="fa fa-inr"></i> <span id="pr_price"></span></p>
<button ng-if="!isAgent" type="button" class="btn btn-primary" onclick="addToCart();" style="border: 2px solid transparent; white-space: nowrap; padding: 6px 18px; line-height: 1.8; border-radius: 10px;">Add To Cart</button>
<button onclick="openfb()"><img style="width:80px" src="images/fb-button.png" alt="" /></button>
</div>
</div>
</div>
<!-- <div class="modal-footer" style="text-align: left;">
<strong>Quick Tip:</strong> Make sure the color of your hook or stud is matching with rest of your earring. You can always go back and edit this design<br><br>
<small>Care Instructions : Keep away from water or products containing alcohol. For best durability store in a separate box. Keep away from fragrance and water. <br>
<sup>Disclaimers : Colors may slightly vary from photos due to different monitor settings.</sup></small>
</div> -->
<ul class="nav nav-tabs">
<li><a href="#1b" data-toggle="tab">Care Instructions</a></li>
<li class="active"><a href="#2b" data-toggle="tab">Quick tip</a></li>
<li><a href="#3b" data-toggle="tab">Disclaimer</a></li>
</ul>
<div class="tab-content clearfix">
<div class="tab-pane" id="1b">
Keep away from water or fragrance. Store separately, wrapped in tissue or soft cotton for best durability. Do not bath or sleep wearing it.
</div>
<div class="tab-pane active" id="2b">
Make sure the color of your hook or stud is matching with rest of your earring. You can always go back and edit this design.
</div>
<div class="tab-pane" id="3b">
Colors may slightly vary from photos due to different monitor settings.
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
$('div.product-img img').on("click",function(){
$(window).scrollTop(0);
});
$('product-grid').on("click",function(){
$(window).scrollTop(0);
});
});
</script>