Skip to content

Commit

Permalink
chore: fixed carousel
Browse files Browse the repository at this point in the history
rick-rtt committed Dec 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 304eb9c commit 1ec77c4
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _includes/carousel-team.html
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
<div class="carousel-container">
<div class="carousel-info-container">
<div class="carousel-info" id="carousel-info-1">
<div id="carousel-strip-1"></div>
<div id="carousel-strip-1" class="active-carousel"></div>
<div class="carousel-info-content">
<span>Centralize Cloud Access</span>
<span>Create, Manage, and share Leapp Sessions centrally to govern how and where your employees use Leapp at scale</span>
@@ -17,7 +17,7 @@
</div>
</div>
<div class="carousel-info" id="carousel-info-3">
<div id="carousel-strip-3" class="active-carousel"></div>
<div id="carousel-strip-3"></div>
<div class="carousel-info-content">
<span>Unlock Leapp and access in a click</span>
<span>Protect your Cloud login with a lock screen. <br> Let Leapp generate your company credentials for you.</span>
6 changes: 3 additions & 3 deletions _includes/js/main.js
Original file line number Diff line number Diff line change
@@ -819,7 +819,7 @@
if (carouselWrapper !== null) {
setInterval(() => {
$('.active-carousel').removeClass('active-carousel');
if (carouselSlide > 2) {
if (carouselSlide >= 3) {
carouselWrapper.scrollLeft -= 1800;
carouselSlide = 1;
} else {
@@ -834,10 +834,10 @@
const carouselWrapper = document.querySelector('.img-wrapper');
let id = $(this)[0].id;
id = id.replace('carousel-info-','');
console.log(id);
$('.active-carousel').removeClass('active-carousel');
$('#carousel-strip-'+id).addClass('active-carousel');
$(carouselWrapper).scrollLeft(600* (id-1))
$(carouselWrapper).scrollLeft(900 * (id-1));
carouselSlide = id;
})
},
_typingTheHappens: function() {

0 comments on commit 1ec77c4

Please sign in to comment.