// Function to detect if user is on mobile device function isMobileDevice() { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 768; } // Function to scroll to quiz section function scrollToQuizSection() { const quizSection = document.getElementById('sljy6o'); if (quizSection) { // Add a small delay to ensure the page is fully loaded setTimeout(() => { quizSection.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'nearest' }); }, 500); } } // Main initialization function function init() { // Check if user is on mobile and automatically scroll to quiz if (isMobileDevice()) { scrollToQuizSection(); } } // Teardown function (required) function teardown() { // No cleanup needed for this implementation } // Export the required functions export { init, teardown };