new tabs

body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #fdfdfd; } .container { max-width: 900px; margin: 20px auto; padding: 0 15px; } .story-block { background-color: #fffde7; padding: 20px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-bottom: 20px; line-height: 1.6; } .tab-group { margin: 20px 0; } .tab-buttons { display: flex; justify-content: space-around; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; } .tab-buttons button { padding: 10px 20px; cursor: pointer; background-color: #ffe082; border: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s; } .tab-buttons button.active { background-color: #ffca28; } .tab-content { display: none; background-color: #fff8e1; padding: 20px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-bottom: 20px; } .tab-content.active { display: block; } .summary-block { background-color: #e8f5e8; padding: 20px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-bottom: 20px; line-height: 1.6; } h2 { margin-top: 0; color: #2e7d32; } ul { padding-left: 20px; } li { margin-bottom: 6px; } strong { color: #2e7d32; }
#SHORT_ENGLISH_SUMMARY#

#title of the story#

#Full Story#

Title In English

#STORY IN ENGLISH#

Vocabulário da História

#VOCAB#

Gramática

#GRAMMAR#

Expressões Informais

#EXPRESS#

Dicas Culturais

#DICAS#

Áudio

#Audio#

Preencher as Lacunas

#FILL_GAPS#

10 Perguntas

#QUESTIONS#

Recontar a História

#RETELL#

Múltipla Escolha

#MULTIPLE_CHOICE#
// Initialize tabs for ALL tab groups independently document.querySelectorAll(‘.tab-group’).forEach(group => { const buttons = group.querySelectorAll(‘.tab-btn’); const contents = group.querySelectorAll(‘.tab-content’); buttons.forEach(button => { button.addEventListener(‘click’, () => { // Only affect buttons and contents WITHIN this specific group buttons.forEach(btn => btn.classList.remove(‘active’)); contents.forEach(content => content.classList.remove(‘active’)); // Activate clicked button and its tab content button.classList.add(‘active’); const targetTab = button.dataset.tab; document.getElementById(targetTab).classList.add(‘active’); }); }); });

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top