logo

ChooseYourDistro

Unnamed repository; edit this file 'description' to name the repository.
commit: d2133c7016c4091cd01f871f296eb72fd6470197
parent: e9bab26728d39b5b33ebd501d18165c2d7b90484
Author: Monsieur Tino <mrtino@users.noreply.github.com>
Date:   Tue, 21 Feb 2017 10:18:46 +0100

Displaying the "Recommencer" button correctly now

Diffstat:

index.html | 2+-
questions.js | 8+++++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html @@ -71,7 +71,7 @@ <br/> <div id="Restart"> - <button type="button" id="btn-restart" class="btn btn-restart btn-lg">Recommencer ?</button> + <button type="button" id="btn-restart" class="btn btn-restart btn-lg" style="display: none;">Recommencer ?</button> </div> <br/> diff --git a/questions.js b/questions.js @@ -1,33 +1,39 @@ $('.btn-infosi').click(function() { $('#infosi').hide(); $('#ootb').show(); + $('.btn-restart').show(); }); $('.btn-ootb').click(function() { $('#ootb').hide(); $('#old').show(); + $('.btn-restart').show(); }); - $('.btn-olds').click(function() { $('#old').hide(); $('#rolling').show(); + $('.btn-restart').show(); }); $('.btn-oldd').click(function() { $('#old').hide(); $('#vold').show(); + $('.btn-restart').show(); }); $('.btn-vold').click(function() { $('#vold').hide(); $('#rolling').show(); + $('.btn-restart').show(); }); $('.btn-rolling').click(function() { $('#rolling').hide(); $('#inssi').show(); + $('.btn-restart').show(); }); $('.btn-inssi').click(function() { $('#inssi').hide(); $('#Result').show(); }); $('.btn-restart').click(function() { + $('.btn-restart').hide(); $('#infosi').show(); $('#ootb').hide(); $('#old').hide();