wip
This commit is contained in:
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user