()
| 145 | |
| 146 | // Handle continue button click |
| 147 | function handleContinue() { |
| 148 | // Get selected formula format |
| 149 | const selectedFormat = document.querySelector('input[name="formulaFormat"]:checked').value; |
| 150 | |
| 151 | // Save the selected format |
| 152 | chrome.storage.sync.set({ |
| 153 | formulaFormat: selectedFormat |
| 154 | }, () => { |
| 155 | // Hide the first step and show the pin step |
| 156 | const firstStep = document.querySelector('.onboarding-content:not(.pin-step)'); |
| 157 | const pinStep = document.getElementById('pinStep'); |
| 158 | |
| 159 | firstStep.style.display = 'none'; |
| 160 | pinStep.style.display = 'block'; |
| 161 | |
| 162 | // Scroll to top |
| 163 | window.scrollTo({ top: 0, behavior: 'smooth' }); |
| 164 | }); |
| 165 | } |
| 166 | |
| 167 | // Handle back button click |
| 168 | function handleBack() { |
no test coverage detected