This file contains hidden or 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
| from flask import render_template, flash, redirect, url_for, request, jsonify, session, g, abort | |
| from app import app, db, lm | |
| from flask.ext.login import login_user, logout_user, current_user, login_required | |
| from .forms import LoginForm, RegistrationForm, CreateClassForm, CreateQuizForm, CreateQuestionForm, CreateOptionForm | |
| from .models import User, Allclass, Enrollment, Quiz, Question, Option | |
| import json | |
| import ast | |
| import inspect | |
This file contains hidden or 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
| {% extends "index.html" %} | |
| {% block content %} | |
| <h1>{{ quiz_obj.quizName }}</h1> | |
| <h3 id="quiz_id" style="display: none" >{{ quiz_obj.id}}</h3> | |
| <table class="table"> | |
| {% for question in quiz_obj.questions %} |
This file contains hidden or 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
| {% extends "index.html" %} | |
| {% block content %} | |
| <h1>{{ class_obj.title }}</h1> | |
| <h3>{{ class_obj.callsign }}</h3> | |
| <h3 id="class_id" style="display: none" >{{ class_obj.id}}</h3> | |
| <table> |
This file contains hidden or 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
| $(document).ready( function(){ | |
| $("#fadeInFirst").fadeIn(1000); | |
| $("#fadeInSecond").fadeIn(5500); | |
| $(".clickable-row").click(function(){ | |
| // var class_id =$.get('/class_js/'+$(this).attr('class_id'), function( data ) { | |
| // alert(JSON.stringify(data)); | |
| // }); |