Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linted the code and fixed the behaviour of radio button #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 22 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Guess The Number</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/index.css">
<link href="https://fonts.googleapis.com/css?family=Acme|Volkhov" rel="stylesheet">
</head>

<body>
<div class="container-fluid">
<div class="row text-center">
<div class="col-xs-3 text-center" style="padding-top: 30px">
<div id="diffchoose">
<label class="container">Easy
<input type="radio" name="radio" class="dif" value="0">
<input type="radio" name="radio" class="dif" value="0">
<span class="checkmark"></span>
</label>
<label class="container">Medium
<input type="radio" checked="checked" name="radio" class="dif" value="1">
<input type="radio" name="radio" class="dif" value="1">
<span class="checkmark"></span>
</label>
<label class="container">Hard
Expand All @@ -36,7 +38,7 @@ <h2>
I'm thinking of a number between
</h2>
<h1>1 and <span id="max">100</span></h1>
<h3 >
<h3>
You have ten guesses<br>
Can you figure out what it is?
</h3>
Expand All @@ -57,13 +59,14 @@ <h2>Show Hints</h2>
<div class="row">
<div id="guesspanel" class="blocks col-xs-3 text-center">

<h2>Guesses <span id="guesses" class="badge" style="margin-bottom: 5px">0</span></h2>
<h2>Guesses <span id="guesses" class="badge" style="margin-bottom: 5px">0</span></h2>
<div class="gcontent">

</div>
</div>
<div id="mainpanel" class="blocks col-xs-4 text-center " style="padding-top: 130px">
<input id="gno" type="number" step="1" min="1" oninput="validity.valid||(value='');" class="form-control center-block" placeholder="Type Your Guess Here!">
<input id="gno" type="number" step="1" min="1" oninput="validity.valid||(value='');"
class="form-control center-block" placeholder="Type Your Guess Here!">

<a id="gbtn" class="btn btn-danger text-uppercase">Guess</a>

Expand All @@ -73,36 +76,39 @@ <h2 class="text-center">Hints</h2><br><br>
<div class="hcontent center-block text-center">

</div>
<h1 id="tsfd" class="text-center" style="color: blue" >Too smart for hints</h1>
<h1 id="tsfd" class="text-center" style="color: blue">Too smart for hints</h1>
</div>
</div>


</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog" >
<div class="modal-dialog">
<div class="modal-content" style="background-color: #00a86b">

<div class="modal-body">
<h1 class="text-center">You Won!</h1>
</div>
<div class="modal-footer">
<button id="clw" type="button" class="btn btn-danger center-block" data-dismiss="modal">Play Again</button>
<button id="clw" type="button" class="btn btn-danger center-block" data-dismiss="modal">Play
Again</button>
</div>
</div>

</div>
</div>
<div class="modal fade" id="myModal2" role="dialog">
<div class="modal-dialog" >
<div class="modal-dialog">
<div class="modal-content" style="background-color: crimson">

<div class="modal-body">
<h1 class="text-center">You lost!</h1>
<h2 id="lost_msg" class="text-center"></h1>
<h2 id="lost_msg" class="text-center">
</h1>
</div>
<div class="modal-footer">
<button id="cll" type="button" class="btn btn-success center-block" data-dismiss="modal">Try Again</button>
<button id="cll" type="button" class="btn btn-success center-block" data-dismiss="modal">Try
Again</button>
</div>
</div>

Expand All @@ -117,8 +123,9 @@ <h2 id="lost_msg" class="text-center"></h1>



<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/index.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/index.js"></script>
</body>
</html>

</html>
Loading