universal 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/_includes/banner.html +15 -0
- data/_includes/carousel.html +81 -0
- data/_includes/contact.html +25 -0
- data/_includes/copyright.html +8 -0
- data/_includes/cta.questions.html +17 -0
- data/_includes/customers.html +21 -0
- data/_includes/footer.html +42 -0
- data/_includes/get.it.html +10 -0
- data/_includes/head.html +48 -0
- data/_includes/header.html +81 -0
- data/_includes/js.html +38 -0
- data/_includes/offer.html +75 -0
- data/_includes/team.html +31 -0
- data/_includes/testimonials.html +41 -0
- data/_layouts/.DS_Store +0 -0
- data/_layouts/default.html +19 -0
- data/assets/.DS_Store +0 -0
- data/assets/css/.DS_Store +0 -0
- data/assets/css/animate.css +3158 -0
- data/assets/css/custom.css +80 -0
- data/assets/css/owl.carousel.css +71 -0
- data/assets/css/owl.theme.css +69 -0
- data/assets/css/style-default.css +3571 -0
- data/assets/css/style.blue.css +3570 -0
- data/assets/css/style.default.css +3570 -0
- data/assets/css/style.green.css +3570 -0
- data/assets/css/style.marsala.css +3570 -0
- data/assets/css/style.pink.css +3570 -0
- data/assets/css/style.red.css +3570 -0
- data/assets/css/style.turquoise.css +3570 -0
- data/assets/css/style.violet.css +3570 -0
- data/assets/img/.DS_Store +0 -0
- data/assets/img/Chewbacca.jpg +0 -0
- data/assets/img/Georges.jpg +0 -0
- data/assets/img/Han Solo.jpg +0 -0
- data/assets/img/Jean.jpg +0 -0
- data/assets/img/Lionel.jpg +0 -0
- data/assets/img/Luke Skywalker.jpg +0 -0
- data/assets/img/Marie.jpg +0 -0
- data/assets/img/Princesse Leia.jpg +0 -0
- data/assets/img/apple-touch-icon-114x114.png +0 -0
- data/assets/img/apple-touch-icon-120x120.png +0 -0
- data/assets/img/apple-touch-icon-144x144.png +0 -0
- data/assets/img/apple-touch-icon-152x152.png +0 -0
- data/assets/img/apple-touch-icon-57x57.png +0 -0
- data/assets/img/apple-touch-icon-72x72.png +0 -0
- data/assets/img/apple-touch-icon-76x76.png +0 -0
- data/assets/img/apple-touch-icon.png +0 -0
- data/assets/img/customer-bidule.png +0 -0
- data/assets/img/customer-cslink.png +0 -0
- data/assets/img/customer-evian.png +0 -0
- data/assets/img/customer-kofola.png +0 -0
- data/assets/img/customer-mf.png +0 -0
- data/assets/img/customer-vanek.png +0 -0
- data/assets/img/favicon.ico +0 -0
- data/assets/img/fixed-background-1.jpg +0 -0
- data/assets/img/fixed-background-2.jpg +0 -0
- data/assets/img/logo-small.png +0 -0
- data/assets/img/logo.png +0 -0
- data/assets/img/photogrid.jpg +0 -0
- data/assets/img/template-easy-code.png +0 -0
- data/assets/img/template-easy-customize.png +0 -0
- data/assets/img/template-homepage.png +0 -0
- data/assets/img/template-mac.png +0 -0
- data/assets/img/texture-bw.png +0 -0
- data/assets/js/.DS_Store +0 -0
- data/assets/js/front.js +413 -0
- data/assets/js/jquery.cookie.js +117 -0
- data/assets/js/jquery.counterup.min.js +8 -0
- data/assets/js/jquery.parallax-1.1.3.js +69 -0
- data/assets/js/owl.carousel.min.js +1 -0
- data/assets/js/stripe.checkout.js +27 -0
- data/assets/js/stripe.form.js +48 -0
- data/assets/js/waypoints.min.js +8 -0
- metadata +163 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/img/Jean.jpg
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/img/logo.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/.DS_Store
ADDED
Binary file
|
data/assets/js/front.js
ADDED
@@ -0,0 +1,413 @@
|
|
1
|
+
if ($.cookie("theme_csspath")) {
|
2
|
+
$('link#theme-stylesheet').attr("href", $.cookie("theme_csspath"));
|
3
|
+
}
|
4
|
+
if ($.cookie("theme_layout")) {
|
5
|
+
$('body').addClass($.cookie("theme_layout"));
|
6
|
+
}
|
7
|
+
|
8
|
+
$(function () {
|
9
|
+
|
10
|
+
sliderHomepage();
|
11
|
+
sliders();
|
12
|
+
fullScreenContainer();
|
13
|
+
productDetailGallery(4000);
|
14
|
+
menuSliding();
|
15
|
+
productDetailSizes();
|
16
|
+
utils();
|
17
|
+
animations();
|
18
|
+
counters();
|
19
|
+
demo();
|
20
|
+
|
21
|
+
});
|
22
|
+
|
23
|
+
/* for demo purpose only - can be deleted */
|
24
|
+
|
25
|
+
function demo() {
|
26
|
+
|
27
|
+
if ($.cookie("theme_csspath")) {
|
28
|
+
$('link#theme-stylesheet').attr("href", $.cookie("theme_csspath"));
|
29
|
+
}
|
30
|
+
|
31
|
+
$("#colour").change(function () {
|
32
|
+
|
33
|
+
if ($(this).val() !== '') {
|
34
|
+
|
35
|
+
var theme_csspath = 'css/style.' + $(this).val() + '.css';
|
36
|
+
|
37
|
+
$('link#theme-stylesheet').attr("href", theme_csspath);
|
38
|
+
|
39
|
+
$.cookie("theme_csspath", theme_csspath, {expires: 365, path: '/'});
|
40
|
+
}
|
41
|
+
|
42
|
+
return false;
|
43
|
+
});
|
44
|
+
|
45
|
+
$("#layout").change(function () {
|
46
|
+
|
47
|
+
if ($(this).val() !== '') {
|
48
|
+
|
49
|
+
var theme_layout = $(this).val();
|
50
|
+
|
51
|
+
$('body').removeClass('wide');
|
52
|
+
$('body').removeClass('boxed');
|
53
|
+
|
54
|
+
$('body').addClass(theme_layout);
|
55
|
+
|
56
|
+
$.cookie("theme_layout", theme_layout, {expires: 365, path: '/'});
|
57
|
+
}
|
58
|
+
|
59
|
+
return false;
|
60
|
+
});
|
61
|
+
}
|
62
|
+
|
63
|
+
/* slider homepage */
|
64
|
+
|
65
|
+
function sliderHomepage() {
|
66
|
+
if ($('#slider').length) {
|
67
|
+
var owl = $("#slider");
|
68
|
+
|
69
|
+
$("#slider").owlCarousel({
|
70
|
+
autoPlay: 3000,
|
71
|
+
items: 4,
|
72
|
+
itemsDesktopSmall: [900, 3],
|
73
|
+
itemsTablet: [600, 3],
|
74
|
+
itemsMobile: [500, 2]
|
75
|
+
});
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
/* sliders */
|
80
|
+
|
81
|
+
function sliders() {
|
82
|
+
if ($('.owl-carousel').length) {
|
83
|
+
|
84
|
+
$(".customers").owlCarousel({
|
85
|
+
items: 6,
|
86
|
+
itemsDesktopSmall: [990, 4],
|
87
|
+
itemsTablet: [768, 2],
|
88
|
+
itemsMobile: [480, 1]
|
89
|
+
});
|
90
|
+
|
91
|
+
$(".testimonials").owlCarousel({
|
92
|
+
items: 4,
|
93
|
+
itemsDesktopSmall: [990, 3],
|
94
|
+
itemsTablet: [768, 2],
|
95
|
+
itemsMobile: [480, 1]
|
96
|
+
});
|
97
|
+
|
98
|
+
$('.project').owlCarousel({
|
99
|
+
navigation: true, // Show next and prev buttons
|
100
|
+
navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
|
101
|
+
slideSpeed: 300,
|
102
|
+
paginationSpeed: 400,
|
103
|
+
autoPlay: true,
|
104
|
+
stopOnHover: true,
|
105
|
+
singleItem: true,
|
106
|
+
afterInit: '',
|
107
|
+
lazyLoad: true
|
108
|
+
});
|
109
|
+
|
110
|
+
$('.homepage').owlCarousel({
|
111
|
+
navigation: false, // Show next and prev buttons
|
112
|
+
navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
|
113
|
+
slideSpeed: 2000,
|
114
|
+
paginationSpeed: 1000,
|
115
|
+
autoPlay: true,
|
116
|
+
stopOnHover: true,
|
117
|
+
singleItem: true,
|
118
|
+
lazyLoad: false,
|
119
|
+
addClassActive: true,
|
120
|
+
afterInit: function () {
|
121
|
+
//animationsSlider();
|
122
|
+
console.log('init');
|
123
|
+
},
|
124
|
+
afterMove: function () {
|
125
|
+
//animationsSlider();
|
126
|
+
console.log('move');
|
127
|
+
}
|
128
|
+
});
|
129
|
+
}
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
/* menu sliding */
|
136
|
+
|
137
|
+
function menuSliding() {
|
138
|
+
|
139
|
+
|
140
|
+
$('.dropdown').on('show.bs.dropdown', function (e) {
|
141
|
+
|
142
|
+
if ($(window).width() > 750) {
|
143
|
+
$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
|
144
|
+
|
145
|
+
}
|
146
|
+
else {
|
147
|
+
$(this).find('.dropdown-menu').first().stop(true, true).show();
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
);
|
152
|
+
$('.dropdown').on('hide.bs.dropdown', function (e) {
|
153
|
+
if ($(window).width() > 750) {
|
154
|
+
$(this).find('.dropdown-menu').first().stop(true, true).slideUp();
|
155
|
+
}
|
156
|
+
else {
|
157
|
+
$(this).find('.dropdown-menu').first().stop(true, true).hide();
|
158
|
+
}
|
159
|
+
});
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
/* animations */
|
164
|
+
|
165
|
+
function animations() {
|
166
|
+
delayTime = 0;
|
167
|
+
$('[data-animate]').css({opacity: '0'});
|
168
|
+
$('[data-animate]').waypoint(function (direction) {
|
169
|
+
delayTime += 150;
|
170
|
+
$(this).delay(delayTime).queue(function (next) {
|
171
|
+
$(this).toggleClass('animated');
|
172
|
+
$(this).toggleClass($(this).data('animate'));
|
173
|
+
delayTime = 0;
|
174
|
+
next();
|
175
|
+
//$(this).removeClass('animated');
|
176
|
+
//$(this).toggleClass($(this).data('animate'));
|
177
|
+
});
|
178
|
+
},
|
179
|
+
{
|
180
|
+
offset: '90%',
|
181
|
+
triggerOnce: true
|
182
|
+
});
|
183
|
+
|
184
|
+
$('[data-animate-hover]').hover(function () {
|
185
|
+
$(this).css({opacity: 1});
|
186
|
+
$(this).addClass('animated');
|
187
|
+
$(this).removeClass($(this).data('animate'));
|
188
|
+
$(this).addClass($(this).data('animate-hover'));
|
189
|
+
}, function () {
|
190
|
+
$(this).removeClass('animated');
|
191
|
+
$(this).removeClass($(this).data('animate-hover'));
|
192
|
+
});
|
193
|
+
|
194
|
+
}
|
195
|
+
|
196
|
+
function animationsSlider() {
|
197
|
+
|
198
|
+
var delayTimeSlider = 400;
|
199
|
+
|
200
|
+
$('.owl-item:not(.active) [data-animate-always]').each(function () {
|
201
|
+
|
202
|
+
$(this).removeClass('animated');
|
203
|
+
$(this).removeClass($(this).data('animate-always'));
|
204
|
+
$(this).stop(true, true, true).css({opacity: 0});
|
205
|
+
|
206
|
+
});
|
207
|
+
|
208
|
+
$('.owl-item.active [data-animate-always]').each(function () {
|
209
|
+
delayTimeSlider += 500;
|
210
|
+
|
211
|
+
$(this).delay(delayTimeSlider).queue(function (next) {
|
212
|
+
$(this).addClass('animated');
|
213
|
+
$(this).addClass($(this).data('animate-always'));
|
214
|
+
|
215
|
+
console.log($(this).data('animate-always'));
|
216
|
+
|
217
|
+
});
|
218
|
+
});
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
}
|
223
|
+
|
224
|
+
/* counters */
|
225
|
+
|
226
|
+
function counters() {
|
227
|
+
|
228
|
+
$('.counter').counterUp({
|
229
|
+
delay: 10,
|
230
|
+
time: 1000
|
231
|
+
});
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
|
236
|
+
/* picture zoom */
|
237
|
+
|
238
|
+
function pictureZoom() {
|
239
|
+
|
240
|
+
$('.product .image, .post .image, .photostream div').each(function () {
|
241
|
+
var imgHeight = $(this).find('img').height();
|
242
|
+
$(this).height(imgHeight);
|
243
|
+
});
|
244
|
+
}
|
245
|
+
|
246
|
+
/* full screen intro */
|
247
|
+
|
248
|
+
function fullScreenContainer() {
|
249
|
+
|
250
|
+
var screenWidth = $(window).width() + "px";
|
251
|
+
|
252
|
+
if ($(window).height() > 500) {
|
253
|
+
var screenHeight = $(window).height() + "px";
|
254
|
+
}
|
255
|
+
else {
|
256
|
+
var screenHeight = "500px";
|
257
|
+
}
|
258
|
+
|
259
|
+
|
260
|
+
$("#intro, #intro .item").css({
|
261
|
+
width: screenWidth,
|
262
|
+
height: screenHeight
|
263
|
+
});
|
264
|
+
}
|
265
|
+
function utils() {
|
266
|
+
|
267
|
+
/* tooltips */
|
268
|
+
|
269
|
+
$('[data-toggle="tooltip"]').tooltip();
|
270
|
+
|
271
|
+
/* click on the box activates the radio */
|
272
|
+
|
273
|
+
$('#checkout').on('click', '.box.shipping-method, .box.payment-method', function (e) {
|
274
|
+
var radio = $(this).find(':radio');
|
275
|
+
radio.prop('checked', true);
|
276
|
+
});
|
277
|
+
/* click on the box activates the link in it */
|
278
|
+
|
279
|
+
$('.box.clickable').on('click', function (e) {
|
280
|
+
|
281
|
+
window.location = $(this).find('a').attr('href');
|
282
|
+
});
|
283
|
+
/* external links in new window*/
|
284
|
+
|
285
|
+
$('.external').on('click', function (e) {
|
286
|
+
|
287
|
+
e.preventDefault();
|
288
|
+
window.open($(this).attr("href"));
|
289
|
+
});
|
290
|
+
/* animated scrolling */
|
291
|
+
|
292
|
+
$('.scroll-to, .scroll-to-top').click(function (event) {
|
293
|
+
|
294
|
+
var full_url = this.href;
|
295
|
+
var parts = full_url.split("#");
|
296
|
+
if (parts.length > 1) {
|
297
|
+
|
298
|
+
scrollTo(full_url);
|
299
|
+
event.preventDefault();
|
300
|
+
}
|
301
|
+
});
|
302
|
+
function scrollTo(full_url) {
|
303
|
+
var parts = full_url.split("#");
|
304
|
+
var trgt = parts[1];
|
305
|
+
var target_offset = $("#" + trgt).offset();
|
306
|
+
var target_top = target_offset.top - 100;
|
307
|
+
if (target_top < 0) {
|
308
|
+
target_top = 0;
|
309
|
+
}
|
310
|
+
|
311
|
+
$('html, body').animate({
|
312
|
+
scrollTop: target_top
|
313
|
+
}, 1000);
|
314
|
+
}
|
315
|
+
}
|
316
|
+
|
317
|
+
/* product detail gallery */
|
318
|
+
|
319
|
+
function productDetailGallery(confDetailSwitch) {
|
320
|
+
$('.thumb:first').addClass('active');
|
321
|
+
timer = setInterval(autoSwitch, confDetailSwitch);
|
322
|
+
$(".thumb").click(function (e) {
|
323
|
+
|
324
|
+
switchImage($(this));
|
325
|
+
clearInterval(timer);
|
326
|
+
timer = setInterval(autoSwitch, confDetailSwitch);
|
327
|
+
e.preventDefault();
|
328
|
+
}
|
329
|
+
);
|
330
|
+
$('#mainImage').hover(function () {
|
331
|
+
clearInterval(timer);
|
332
|
+
}, function () {
|
333
|
+
timer = setInterval(autoSwitch, confDetailSwitch);
|
334
|
+
});
|
335
|
+
function autoSwitch() {
|
336
|
+
var nextThumb = $('.thumb.active').closest('div').next('div').find('.thumb');
|
337
|
+
if (nextThumb.length == 0) {
|
338
|
+
nextThumb = $('.thumb:first');
|
339
|
+
}
|
340
|
+
switchImage(nextThumb);
|
341
|
+
}
|
342
|
+
|
343
|
+
function switchImage(thumb) {
|
344
|
+
|
345
|
+
$('.thumb').removeClass('active');
|
346
|
+
var bigUrl = thumb.attr('href');
|
347
|
+
thumb.addClass('active');
|
348
|
+
$('#mainImage img').attr('src', bigUrl);
|
349
|
+
}
|
350
|
+
}
|
351
|
+
|
352
|
+
/* product detail sizes */
|
353
|
+
|
354
|
+
function productDetailSizes() {
|
355
|
+
$('.sizes a').click(function (e) {
|
356
|
+
e.preventDefault();
|
357
|
+
$('.sizes a').removeClass('active');
|
358
|
+
$('.size-input').prop('checked', false);
|
359
|
+
$(this).addClass('active');
|
360
|
+
$(this).next('input').prop('checked', true);
|
361
|
+
});
|
362
|
+
}
|
363
|
+
|
364
|
+
|
365
|
+
$.fn.alignElementsSameHeight = function () {
|
366
|
+
$('.same-height-row').each(function () {
|
367
|
+
|
368
|
+
var maxHeight = 0;
|
369
|
+
var children = $(this).find('.same-height');
|
370
|
+
children.height('auto');
|
371
|
+
if ($(window).width() > 768) {
|
372
|
+
children.each(function () {
|
373
|
+
if ($(this).innerHeight() > maxHeight) {
|
374
|
+
maxHeight = $(this).innerHeight();
|
375
|
+
}
|
376
|
+
});
|
377
|
+
children.innerHeight(maxHeight);
|
378
|
+
}
|
379
|
+
|
380
|
+
maxHeight = 0;
|
381
|
+
children = $(this).find('.same-height-always');
|
382
|
+
children.height('auto');
|
383
|
+
children.each(function () {
|
384
|
+
if ($(this).height() > maxHeight) {
|
385
|
+
maxHeight = $(this).innerHeight();
|
386
|
+
}
|
387
|
+
});
|
388
|
+
children.innerHeight(maxHeight);
|
389
|
+
|
390
|
+
});
|
391
|
+
}
|
392
|
+
|
393
|
+
$(window).load(function () {
|
394
|
+
|
395
|
+
windowWidth = $(window).width();
|
396
|
+
|
397
|
+
$(this).alignElementsSameHeight();
|
398
|
+
pictureZoom();
|
399
|
+
});
|
400
|
+
$(window).resize(function () {
|
401
|
+
|
402
|
+
newWindowWidth = $(window).width();
|
403
|
+
|
404
|
+
if (windowWidth !== newWindowWidth) {
|
405
|
+
setTimeout(function () {
|
406
|
+
$(this).alignElementsSameHeight();
|
407
|
+
fullScreenContainer();
|
408
|
+
pictureZoom();
|
409
|
+
}, 205);
|
410
|
+
windowWidth = newWindowWidth;
|
411
|
+
}
|
412
|
+
|
413
|
+
});
|