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

Update quiz.html #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
92 changes: 52 additions & 40 deletions quiz.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,64 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Quiz</title>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">

<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/quiz.css">
</head>

<body>
<h1 class="text-white text-center display-4 font-weight-bold">Welcome To Quiz App</h1>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
/>

<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/quiz.css" />
</head>

<body>
<h1 class="text-white text-center display-4 font-weight-bold">
Welcome To Quiz App
</h1>
<div class="container">

<ol id="questions" class="list-group">

</ol>
<div class="text-center submit-answer">
<button class="btn btn-success btn-lg " data-target="#result-show" data-toggle="modal" onclick="onSubmit()">Submit Answers</button>
</div>


<!-- PopUp-Modal -->
<div class="modal fade" id="result-show">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content bg-secondar">
<div class="modal-header text-center">
<h3 class=" text-info display-4 font-weight-bold">Score Box</h3>
</div>
<div class="modal-body text-center">
<h2 class="result"><span class="text-warning"></span></h2>
<button type="button" class="btn btn-lg btn-info" data-dismiss="modal">Close</button>
</div>

</div>
<ol id="questions" class="list-group"></ol>
<div class="text-center submit-answer">
<button
class="btn btn-success btn-lg"
data-target="#result-show"
data-toggle="modal"
onclick="onSubmit()"
>
Submit Answers
</button>
</div>

<!-- PopUp-Modal -->
<div class="modal fade" id="result-show">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content bg-secondar">
<div class="modal-header text-center">
<h3 class="text-info display-4 font-weight-bold">Score Box</h3>
</div>
<div class="modal-body text-center">
<h2 class="result"><span class="text-warning"></span></h2>
<a href="quiz.html"
><button type="button" class="btn btn-lg btn-danger">
Try Again
</button></a
>

<a href="index.html"
><button type="button" class="btn btn-lg btn-info">
Close
</button>
</a>
</div>
</div>
</div>


</div>
</div>


<script src="js/bootstrap.min.js"></script>
<script src="js/quiz.js"></script>
<!-- jQuery library -->
Expand All @@ -56,6 +69,5 @@ <h2 class="result"><span class="text-warning"></span></h2>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>

</html>
</body>
</html>