diff --git a/index.html b/index.html index 14dcba6..167bc05 100644 --- a/index.html +++ b/index.html @@ -2,12 +2,13 @@
++ { format!("Palabra encontrada en {}/{} intentos", attempts.fields.len(), MAX_ATTEMPTS) } +
{ for attempts.fields.iter().map(|attempt| { html_nested! { -
{ + <> { for attempt.iter().map(| att| { match att.status { Status::Found => html_nested! { <> { "🟩" } > }, - Status::Almost => html_nested! { { "🟨" } }, - Status::NotFound => html_nested! { { "⬜" } } + Status::Almost => html_nested! { <>{ "🟨" }> }, + Status::NotFound => html_nested! { <>{ "⬛" }> } + } }) - }
+ }