From 42b0adca4c832d7bd8e1ac37ff305cb172a0a23c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C5=A0ub=C3=ADn?= Date: Tue, 6 Jun 2023 09:52:16 +0200 Subject: [PATCH] wip --- assets/css/layout.css | 6 ------ assets/js/app.js | 28 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/assets/css/layout.css b/assets/css/layout.css index 09970b5..b4c653a 100644 --- a/assets/css/layout.css +++ b/assets/css/layout.css @@ -262,12 +262,6 @@ transform: rotate(-90deg); } -.section--preview.horizontal img { - width: 90vw; - height: 90vh; - transform: rotate(0deg); -} - .section--switch .section__intro{ flex-direction: column; } diff --git a/assets/js/app.js b/assets/js/app.js index b92ecb0..2cc0339 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -12,26 +12,26 @@ $(document).ready(function(){ }); }); -$(function() { - $(window).on('resize', function(e) { - if (screen.width < screen.height){ - $('.section--preview').addClass('horizontal'); - }else{ - $('.section--preview').removeClass('horizontal'); - } - }); -}) +// $(function() { +// $(window).on('resize', function(e) { +// if (screen.width < screen.height){ +// $('.section--preview').addClass('horizontal'); +// }else{ +// $('.section--preview').removeClass('horizontal'); +// } +// }); +// }) init(); function init() { let state = 0; - if (screen.width < screen.height){ - $('.section--preview').addClass('horizontal'); - }else{ - $('.section--preview').removeClass('horizontal'); - } + // if (screen.width < screen.height){ + // $('.section--preview').addClass('horizontal'); + // }else{ + // $('.section--preview').removeClass('horizontal'); + // } $('.js-prev-slide').click(function() { if(state - 1 == -1){state = 2;}else{state = state - 1;}