79 lines
3.4 KiB
HTML
79 lines
3.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<title>Quiz App</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
<link rel="stylesheet" href="./css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="./style.css">
|
|
<!-- Place favicon.ico in the root directory -->
|
|
<script src="./js/bootstrap.bundle.min.js"></script>
|
|
<script src="./index.js" defer></script>
|
|
<!-- Place favicon.ico in the root directory -->
|
|
|
|
</head>
|
|
<body>
|
|
<!--[if lt IE 8]>
|
|
<p class="browserupgrade">
|
|
You are using an <strong>outdated</strong> browser. Please
|
|
<a href="http://browsehappy.com/">upgrade your browser</a> to improve
|
|
your experience.
|
|
</p>
|
|
<![endif]-->
|
|
<h1 class="container"> Quiz App </h1>
|
|
<div class="container p-4" id="privacyViolation">
|
|
<!-- Name ID etc -->
|
|
<form action="javascript:;">
|
|
<label class="form-label" for="sName"> Student Name </label>
|
|
<input class="form-control" type="text" id="sName", name="sName">
|
|
<br>
|
|
<label class="form-label" for="sId"> Student ID </label>
|
|
<input class="form-control" type="text" id="sId", name="sid">
|
|
<br>
|
|
<button onclick="nameSubmit()" type="submit" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="quizScreen" class="card container pt-4">
|
|
<span id="question" class="card-title"> Question </span>
|
|
<div id="choices" class="card-body">
|
|
<form action="javascript:;">
|
|
<div>
|
|
<label class="form-label" for="ans1"> Student Name </label>
|
|
<input class="form-check-label" type="radio" id="ans1", name="ans">
|
|
<label class="form-label" for="ans2"> Student Name </label>
|
|
<input class="form-check-label" type="radio" id="ans2", name="ans">
|
|
</div>
|
|
<div>
|
|
<label class="form-label" for="ans3"> Student Name </label>
|
|
<input class="form-check-label" type="radio" id="ans3", name="ans">
|
|
<label class="form-label" for="ans4"> Student Name </label>
|
|
<input class="form-check-label" type="radio" id="ans4", name="ans">
|
|
</div>
|
|
<button onclick="questionSubmit()" type="submit" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="scoreScreen" class="pt-5 d-none">
|
|
<p id="sInfoName"></p>
|
|
<br>
|
|
<p id="sInfoId"></p>
|
|
<!-- End of quiz screen-->
|
|
</div>
|
|
<div id="controls" class="pt-5 container">
|
|
<!-- the things for submit and previous questions -->
|
|
<button onclick="prevQ()" class="btn btn-primary">Previous</button>
|
|
<button onclick="nextQ()" class="btn btn-primary">Next</button>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
<script src="./js/bootstrap.bundle.min.js"></script>
|
|
<script src="./index.js"></script>
|
|
</html>
|