Skip to content

Commit

Permalink
Merge pull request #27 from frattezi/wesley
Browse files Browse the repository at this point in the history
tudo certo tela final
  • Loading branch information
frattezi authored Oct 15, 2018
2 parents 2d5a087 + 4e30c30 commit 04c42ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function contador() {

//resets all global variables and go to game screen
function resetGame(where_from) {
sessionStorage.setItem('HIT', '0');
if (where_from == "index") {
location.replace("./views/tela_jogo.html")
}
Expand All @@ -93,7 +94,10 @@ function ConfereResposta(i) {
JSres = TratamentoString(JSres);

//Resposta correta
if (Fres == JSres) {
if(Fres == ''){
PassouAPalavra();
}
else if (Fres == JSres) {
colorirCircle(1);
HIT_COUNT++;
sessionStorage.setItem("HIT", HIT_COUNT);
Expand Down
2 changes: 1 addition & 1 deletion views/tela_jogo.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h1 class="mb-5" id="question">Pergunta</h1>
<div class='circle-container' id="circle-container"></div>
<form class="mb-3 mt-5"id="form-resposta" action="JavaScript:ConfereResposta(LETTER_COUNT)" method="post">
<input class="rounded col-lg-8 col-md-8 col-sm-6" type="text" name="Fresposta" placeholder=" Digite aqui sua resposta!">
<input class="rounded col-lg-8 col-md-8 col-sm-6" type="text" name="Fresposta" autocomplete="off" placeholder=" Digite aqui sua resposta!">
</form>

<button class="btn btn-primary col-lg-4 col-md-4 col-sm-3" id="button-res" form="form-resposta">Responder</button>
Expand Down

0 comments on commit 04c42ed

Please sign in to comment.