-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from Animasingh123/master
Create mcq-quiz.html
- Loading branch information
Showing
1 changed file
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
<html> | ||
<head> | ||
<title>JS Quiz</title> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | ||
<script src="mcq.js"></script> | ||
<style> | ||
h1 { | ||
font-family:'Gabriola', serif; | ||
text-align: center; | ||
} | ||
ul { | ||
list-style: none; | ||
} | ||
li { | ||
font-family:'Cambria', serif; | ||
font-size: 1.5em; | ||
} | ||
input[type=radio] { | ||
border: 0px; | ||
width: 20px; | ||
height: 2em; | ||
} | ||
p { | ||
font-family:'Gabriola', serif; | ||
} | ||
/* Quiz Classes */ | ||
.quizContainer { | ||
background-color: white; | ||
border-radius: 6px; | ||
width: 75%; | ||
margin: auto; | ||
padding-top: 5px; | ||
/*-moz-box-shadow: 10px 10px 5px #888; | ||
-webkit-box-shadow: 10px 10px 5px #888; | ||
box-shadow: 10px 10px 5px #888;*/ | ||
position: relative; | ||
} | ||
.quizcontainer #quiz1 | ||
{ | ||
text-shadow:1px 1px 2px orange; | ||
font-family:"Georgia", Arial, sans-serif; | ||
} | ||
.nextButton { | ||
box-shadow: 3px 3px 5px #888; | ||
border-radius: 6px; | ||
/* width: 150px;*/ | ||
height: 40px; | ||
text-align: center; | ||
background-color: lightgrey; | ||
/*clear: both;*/ | ||
color: red; | ||
font-family:'Gabriola', serif; | ||
position: relative; | ||
margin: auto; | ||
font-size:25px; | ||
font-weight:bold; | ||
padding-top: 5px; | ||
float:right; | ||
right:30%; | ||
} | ||
|
||
.preButton { | ||
box-shadow: 3px 3px 5px #888; | ||
border-radius: 6px; | ||
/*width: 150px;*/ | ||
height: 40px; | ||
text-align: center; | ||
background-color: lightgrey; | ||
/*clear: both;*/ | ||
color: red; | ||
font-family:'Gabriola', serif; | ||
position: relative; | ||
margin: auto; | ||
font-size:25px; | ||
font-weight:bold; | ||
padding-top: 5px; | ||
float:left; | ||
left:30%; | ||
} | ||
|
||
.question { | ||
font-family:'Century', serif; | ||
font-size: 1.5em; | ||
font-weight:bold; | ||
width: 100%; | ||
height: auto; | ||
margin: auto; | ||
border-radius: 6px; | ||
background-color: #f3dc45; | ||
text-align: center; | ||
} | ||
.quizMessage { | ||
background-color: peachpuff; | ||
border-radius: 6px; | ||
width: 20%; | ||
margin: auto; | ||
text-align: center; | ||
padding: 5px; | ||
font-size:20px; | ||
font-weight:bold; | ||
font-family:'Gabriola', serif; | ||
color: red; | ||
position:absolute; | ||
top:80%; | ||
left:40%; | ||
} | ||
.choiceList { | ||
font-family: 'Arial', serif; | ||
color: #ed12cd; | ||
font-size:15px; | ||
font-weight:bold; | ||
} | ||
.result { | ||
width: 40%; | ||
height: auto; | ||
border-radius: 6px; | ||
background-color: linen; | ||
margin: auto; | ||
color:green; | ||
text-align: center; | ||
font-size:25px; | ||
font-family:'Verdana', serif; | ||
font-weight:bold; | ||
position:absolute; | ||
top:80%; | ||
left:30%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="quizContainer container-fluid well well-lg"> | ||
<div id="quiz1" class="text-center"> | ||
<h3>Sam's coding club</h3> | ||
<center><img class="img-responsive" height="180" width="180" src="hibiscus.jpg"></center> | ||
<h4 style="color:#FF0000;position:absolute;left:70%;top:30%;" align="center" ><span id="iTimeShow">Time Remaining: </span><br/><span id='timer' style="font-size:25px;"></span></h4> | ||
<h2>jQuery Quiz</h2> | ||
</div> | ||
|
||
<div class="question"></div> | ||
<ul class="choiceList"></ul> | ||
<div class="quizMessage"></div> | ||
<div class="result"></div> | ||
<button class="preButton">Previous Question</button> | ||
<button class="nextButton">Next Question</button> | ||
</div> | ||
</body> | ||
</html> |