File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ <h1>🌱 Programación con Propósito</h1>
2626 < div class ="intro-section ">
2727 < h2 > 🚀 ¡Bienvenido a tu aventura de programación!</ h2 >
2828 < p > Cada día tienes un nuevo reto. Haz clic en las tarjetas para empezar.</ p >
29- < div class ="progress-bar ">
30- < div class ="progress-fill " id ="progressFill "> 0%</ div >
31- </ div >
32- < p class ="progress-text "> Progreso: < span id ="progressText "> 0</ span > de 8 retos completados</ p >
3329 </ div >
3430 < div class ="retos-grid " id ="retosGrid "> </ div >
3531 </ section >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function renderRetos(retos) {
6262
6363 retos . forEach ( reto => {
6464 const card = document . createElement ( 'div' ) ;
65- card . className = ` reto-card ${ isRetoCompleted ( reto . id ) ? 'completed' : '' } ` ;
65+ card . className = ' reto-card' ;
6666
6767 card . innerHTML = `
6868 <div class="reto-header">
@@ -76,9 +76,8 @@ function renderRetos(retos) {
7676 <span class="reto-tag">${ reto . fase } </span>
7777 <span class="reto-tag">${ reto . categoria } </span>
7878 </div>
79- <button class="reto-btn ${ isRetoCompleted ( reto . id ) ? 'completed-btn' : '' } "
80- onclick="openReto(${ reto . id } , '${ reto . url } ')">
81- ${ isRetoCompleted ( reto . id ) ? '✓ Completado' : '🎮 ¡Empezar!' }
79+ <button class="reto-btn" onclick="openReto(${ reto . id } , '${ reto . url } ')">
80+ 🎮 ¡Empezar!
8281 </button>
8382 </div>
8483 ` ;
@@ -92,11 +91,6 @@ function isRetoCompleted(id) {
9291}
9392
9493function openReto ( id , url ) {
95- if ( ! isRetoCompleted ( id ) ) {
96- if ( confirm ( '¿Ya completaste este reto? Si es así, lo marcaré como completado.' ) ) {
97- markRetoCompleted ( id ) ;
98- }
99- }
10094 window . open ( url , '_blank' ) ;
10195}
10296
You can’t perform that action at this time.
0 commit comments