<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Basic Quiz Application with login and logout options as well as computation of final scores</title>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	<link rel="stylesheet" type="text/css" href="\css\topicpage_1.css">
	<script>
		function score(){
	    var count=0;
	    if (document.getElementById('correct_1').checked) {
	    	count=count+1;
	    }
	    if (document.getElementById('correct_2').checked) {
			count=count+1;
		}
		if (document.getElementById('correct_3').checked) {
			count=count+1;
		}
		alert("Score obtained = " + count + "\nRedirecting to the home screen");
		window.location.replace('/');
		}
	</script>
</head>
<body>
	<main>
		<form>
			<h2>Q1 Won the award in 2014 for his outstanding contribution in the feild of cricket ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="bharatratnaawardees" value="Ravi Shankar">Ravi Shankar <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees" value="Bhimsen Joshi">Bhimsen Joshi <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees" value="C. N. R. Rao">C. N. R. Rao <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees" value="Sachin Tendulkar" id="correct_1">Sachin Tendulkar <span class="correct"></span></label><br/>	
			<h2>Q2 Won the award in 2001 and was a renowned Hindustani classical shehnai player ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="bharatratnaawardees_1" value="Lata Mangeshkar">Lata Mangeshkar <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_1" value="J. R. D. Tata">J. R. D. Tata <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_1" value="Ustad Bismillah Khan" id="correct_2">Ustad Bismillah Khan <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_1" value="Morarji Desai">Morarji Desai <span class="correct"></span></label><br/>
			<h2>Q3 Won the award in 2015. Parliamentarian for over four decades and a former prime minister ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="bharatratnaawardees_2" value="Atal Bihari Vajpayee" id="correct_3">Atal Bihari Vajpayee <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_2" value="Gopinath Bordoloi">Gopinath Bordoloi <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_2" value="Amartya Sen">Amartya Sen <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="bharatratnaawardees_2" value="Satyajit Ray">Satyajit Ray <span class="correct"></span></label><br/>
			<input type="button" value="Submit" name="submission" class="transform_1" onclick="score()">
		</form>	
	</main>
</body>
</html>