mirror of
https://github.com/kemko/blogfeeds.net.git
synced 2026-01-01 16:05:41 +03:00
chore: updated copy
This commit is contained in:
@@ -238,7 +238,7 @@
|
|||||||
const scrollContainer = document.getElementById('scrollContainer');
|
const scrollContainer = document.getElementById('scrollContainer');
|
||||||
const prevBtn = document.getElementById('prevBtn');
|
const prevBtn = document.getElementById('prevBtn');
|
||||||
const nextBtn = document.getElementById('nextBtn');
|
const nextBtn = document.getElementById('nextBtn');
|
||||||
const backToStartBtn = document.getElementById('backToStartBtn');
|
//const backToStartBtn = document.getElementById('backToStartBtn');
|
||||||
|
|
||||||
let currentSection = 0;
|
let currentSection = 0;
|
||||||
const totalSections = scrollContainer.children.length;
|
const totalSections = scrollContainer.children.length;
|
||||||
@@ -269,9 +269,9 @@
|
|||||||
scrollToSection(currentSection + 1);
|
scrollToSection(currentSection + 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
backToStartBtn.addEventListener('click', () => {
|
// backToStartBtn.addEventListener('click', () => {
|
||||||
scrollToSection(0);
|
// scrollToSection(0);
|
||||||
});
|
// });
|
||||||
|
|
||||||
// Update current section when user manually scrolls
|
// Update current section when user manually scrolls
|
||||||
scrollContainer.addEventListener('scroll', () => {
|
scrollContainer.addEventListener('scroll', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user