<!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>
		<form action="/current" method="post" onsubmit="score()">
			<h2>Q1 Presently how many states and union territories does india have ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="stateun" value="29 states and 7 union territories">29 states and 7 union territories <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="stateun" value="28 states and 8 union territories" id="correct_1">28 states and 8 union territories <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="stateun" value="28 states and 9 union territories">28 states and 9 union territories <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="stateun" value="27 states and 8 union territories">27 states and 8 union territories <span class="correct"></span></label><br/>	
			<h2>Q2 Who is the current cheif justice of india ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="ccj" value="Justice Sharad Arvind Bobde" id="correct_2">Justice Sharad Arvind Bobde <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="ccj" value="Justice Ranjan Gogoi">Justice Ranjan Gogoi <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="ccj" value="Justice Dipak Misra">Justice Dipak Misra <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="ccj" value="Justice Jagdish Singh Khehar">Justice Jagdish Singh Khehar <span class="correct"></span></label><br/>
			<h2>Q3 Who serves as the current president of india ?</h2>
			<aside><p>1 point</p></aside>
			<label class="transform"><input type="radio" checked="checked" name="cp" value="Shri Pranab Mukherjee">Shri Pranab Mukherjee <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="cp" value="Smt. Pratibha Devisingh Patil">Smt. Pratibha Devisingh Patil <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="cp" value="Shri Ram Nath Kovind" id="correct_3">Shri Ram Nath Kovind <span class="correct"></span></label><br/>
			<label class="transform"><input type="radio" name="cp" value="Dr. A.P.J. Abdul Kalam">Dr. A.P.J. Abdul Kalam <span class="correct"></span></label><br/>
			<input type="submit" value="Submit" name="submission" class="transform_1">
		</form>	
</body>
</html>