varios cambios esteticos y optimizaciones
This commit is contained in:
parent
e3a99d9604
commit
9a243db633
8 changed files with 64 additions and 105 deletions
|
|
@ -94,26 +94,6 @@
|
|||
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('click', function(event) {
|
||||
if (event.target.classList.contains('ver-mas-btn')) {
|
||||
const container = event.target.closest('.resumen-container');
|
||||
const corto = container.querySelector('.resumen-corto');
|
||||
const completo = container.querySelector('.resumen-completo');
|
||||
|
||||
if (completo.style.display === 'none' || completo.style.display === '') {
|
||||
corto.style.display = 'none';
|
||||
completo.style.display = 'block';
|
||||
event.target.textContent = 'Ver menos';
|
||||
} else {
|
||||
corto.style.display = 'block';
|
||||
completo.style.display = 'none';
|
||||
event.target.textContent = 'Ver más';
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue