<!DOCTYPE html>
<head>

    <title>Pariksha</title>
    <script>
        function start_quiz(x) {
            window.open("/quiz/?q="+x, "_blank", "fullscreen=yes");
        }
    </script>
    <style>
        #quiz_links {
           background-color: #00fff0;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;

        }
        #quiz_links:hover {
           background-color: #ce9a66;
            color: white;

        }
        body {
            margin: 0px;
            background-color: #8EC5FC;
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);

        }
        table,td,tr{
          border: 1px solid black;
          border-collapse: collapse;
          width: 60%;
          text-align: center;
        }

        tr:nth-child(even) {background-color: #FAACA8;
background-image: linear-gradient(19deg, #FAACA8 0%, #DDD6F3 100%);

        }
        tr:nth-child(odd) {background-color: #F4D03F;
background-image: linear-gradient(132deg, #F4D03F 0%, #16A085 100%);
}

    </style>
</head>
<body>

        <center><h1 style="font-family: Optima; font-size:50px;"><a>Welcome Student {{user}}</a></h1><br>
           <h1>List of ongoing quizzes.</h1>
        </center>
        <div class="quiz">
            <center>
            <table >
        {%for quiz in quizId%}
            <br>
                    <tr>
                        <td>
                            <h2><a id="quiz_links" onclick="start_quiz({{quiz.0}})">Start Quiz Code:{{quiz.1}}</a></h2>
                        </td>
                    </tr>

        {%endfor%}
                </table>
                </center>
        </div>


</body>
</html>