summaryrefslogtreecommitdiff
path: root/public/assets/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/app.js')
-rw-r--r--public/assets/js/app.js44
1 files changed, 26 insertions, 18 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 2bef5f5..dd2a7e1 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -3,30 +3,38 @@ var is_ipad = (navigator.userAgent.match(/iPad/i));
var is_android = (navigator.userAgent.match(/Android/i))
var is_mobile = is_iphone || is_ipad || is_android;
$(function() {
- if (is_mobile) {
- $("html").addClass("mobile");
- } else {
- $("html").addClass("desktop");
- }
+ if (is_mobile) {
+ $("html").addClass("mobile");
+ } else {
+ $("html").addClass("desktop");
+ }
+});
+
+$(".cell").css({ 'height': ($(".top").height() + 'px') });
+
+$(window).resize(function() {
+ $(".cell").css({ 'height': ($(".top").height() + 'px') });
});
$('.top').flickity({
- cellAlign: 'left',
- contain: true,
- pageDots: false,
- wrapAround: true,
- arrowShape: {
- x0: 10,
- x1: 35, y1: 25,
- x2: 40, y2: 25,
- x3: 15
- }
+ cellAlign: 'left',
+ contain: true,
+ pageDots: false,
+ wrapAround: true,
+ arrowShape: {
+ x0: 10,
+ x1: 35,
+ y1: 25,
+ x2: 40,
+ y2: 25,
+ x3: 15
+ }
});
-$('.index').click( function(){
+$('.index').click(function() {
$('body').toggleClass('navopen');
});
-$('.item').click( function(){
+$('.item').click(function() {
$('body').removeClass('navopen');
-});
+}); \ No newline at end of file