<commit_before><!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, shrink-to-fit=no, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Instructor Questions</title>

    <!-- Bootstrap Core CSS -->
    <link href="../static/js/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- jQuery -->
    <script src="../static/js/jquery/dist/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="../static/js/bootstrap/dist/js/bootstrap.min.js"></script>
    
    <!-- Custom CSS -->
    <link href="../static/css/simple-sidebar.css" rel="stylesheet">

    <!-- Our CSS -->
    <link href="../static/css/content.css" rel="stylesheet">
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body style="background-color:#161616">

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span> 
            </button>
            <a class="navbar-brand" href="#"><img alt="GlibGlab" src="../static/images/Glogowhite.png" height="100%"></img></a>
        </div>
        <div class="collapse navbar-collapse" id="myNavbar">
            <ul class="nav navbar-nav navbar-right">

                <li><a href="{{ url_for('logout') }}">Logout <span class="glyphicon glyphicon-log-out"></span></a></li>
            </ul>
        </div>
    </div>
</nav>

        <!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div style="text-align:center">
    {% if error %}
    	<p class="error" style="#ffffff"><strong>Error:</strong> {{ error }} </p>
    {% endif %}
</div>
    
<div class="row">
    <div class="col-sm-12">
        <div class="bd-example">
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content" style="background: linear-gradient(rgba(180, 180, 180, .9), rgba(200, 200, 200, .8));"><!--rgba(200, 200, 200, 0.9);">-->
                        
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                            </button>
                            <h4 class="modal-title" id="myModalLabel"><center>Create New Class</center></h4>
                        </div>
                        
                        <div class="modal-body">
                            <form method="post" action="/teacher" role="form" id="form1">
                                <div class="form-group">
                                    <label for="add-class-name" class="form-control-label">Class:</label>
                                    <input type="text" name="course_name" class="form-control" id="add-class-name" value="{{ request.form.course_name }}">
                                </div>
                                
                            </form>
                        </div>
                        <div class="modal-footer">
                            <div class="form-left-footer">
                                <!-- For any other elments we want on the left side of the footer -->
                            </div>
                            <div class="form-right-footer">
                                <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
                                <button type="submit" class="btn btn-success" onclick="addClass()" form="form1">Add Class</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>  <!--End Row 1 -->

    <!-- ##### Find a better way of adding white vertical space -->

<div class="row">
        <!--<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#myModal">Add Class...</button>-->
    <div class="col-xs-12">
        <div class="container-fluid" id="class_list" style="text-align:center;">
            
        </div>
    </div>
</div> 
<div class="row" style="text-align:center;">
    <button type="button" class="btn btn-secondary new-class-button" data-toggle="modal" data-target="#myModal" style="text-align:center;">Add Class...</button><div id="myModal"></div>
</div>
    <!-- <div class="col-xs-3">-->
        
        
   <!-- </div>-->
</div>  <!-- End container-fluid -->
</div>  <!-- End page-content-wrapper -->
        

    
    <!-- /#wrapper -->

    <!-- Menu Toggle Script -->
<script>
    $(document).ready(function() {
        {% for course in current_courses %}
            addDBClass('{{ course.course_name }}');
        {% endfor %} 
    });
    
    $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled");
    });
    
    
    function addDBClass(className) {
        var node = document.createElement("div");
        node.className = "class-container";
        node.innerHTML = "<div class='class-name'><p style='font-size:32px'>" + className + "</p></div><div class='class-notes-div' onclick='loadQuestionView(" + '"' + className + '"' + ")'><div class='class-notes glyphicon glyphicon-forward'></div></div>";
        $("#class_list").append(node);
    }

    function addClass() {
        var node = document.createElement("div");
        var newClass = document.getElementById('add-class-name').value;
        if (newClass != "") {
            node.className = "class-container";
            $('#myModal').modal('hide');

            node.innerHTML = "<div class='class-name'><p style='font-size:32px'>" + newClass + "</p></div><div class='class-notes-div' onclick='loadQuestionView(" + '"' + newClass + '"' + ")'><div class='class-notes glyphicon glyphicon-forward'></div></div>";
  
            $("#class_list").append(node);
        }
    }   
    
    function loadQuestionView(newClass) {
        
        console.log(newClass);

        localStorage.setItem('ClassName', newClass);
        
        window.location.href = "TeacherFeed.html";
        
    }


</script>

</body>

</html><commit_msg>TeacherView to TeacherFeed<commit_after><!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, shrink-to-fit=no, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Instructor Questions</title>

    <!-- Bootstrap Core CSS -->
    <link href="../static/js/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- jQuery -->
    <script src="../static/js/jquery/dist/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="../static/js/bootstrap/dist/js/bootstrap.min.js"></script>
    
    <!-- Custom CSS -->
    <link href="../static/css/simple-sidebar.css" rel="stylesheet">

    <!-- Our CSS -->
    <link href="../static/css/content.css" rel="stylesheet">
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body style="background-color:#161616">

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span> 
            </button>
            <a class="navbar-brand" href="#"><img alt="GlibGlab" src="../static/images/Glogowhite.png" height="100%"></img></a>
        </div>
        <div class="collapse navbar-collapse" id="myNavbar">
            <ul class="nav navbar-nav navbar-right">

                <li><a href="{{ url_for('logout') }}">Logout <span class="glyphicon glyphicon-log-out"></span></a></li>
            </ul>
        </div>
    </div>
</nav>

        <!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div style="text-align:center">
    {% if error %}
    	<p class="error" style="#ffffff"><strong>Error:</strong> {{ error }} </p>
    {% endif %}
</div>
    
<div class="row">
    <div class="col-sm-12">
        <div class="bd-example">
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content" style="background: linear-gradient(rgba(180, 180, 180, .9), rgba(200, 200, 200, .8));"><!--rgba(200, 200, 200, 0.9);">-->
                        
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                            </button>
                            <h4 class="modal-title" id="myModalLabel"><center>Create New Class</center></h4>
                        </div>
                        
                        <div class="modal-body">
                            <form method="post" action="/teacher" role="form" id="form1">
                                <div class="form-group">
                                    <label for="add-class-name" class="form-control-label">Class:</label>
                                    <input type="text" name="course_name" class="form-control" id="add-class-name" value="{{ request.form.course_name }}">
                                </div>
                                
                            </form>
                        </div>
                        <div class="modal-footer">
                            <div class="form-left-footer">
                                <!-- For any other elments we want on the left side of the footer -->
                            </div>
                            <div class="form-right-footer">
                                <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
                                <button type="submit" class="btn btn-success" onclick="addClass()" form="form1">Add Class</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>  <!--End Row 1 -->

    <!-- ##### Find a better way of adding white vertical space -->

<div class="row">
        <!--<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#myModal">Add Class...</button>-->
    <div class="col-xs-12">
        <div class="container-fluid" id="class_list" style="text-align:center;">
            
        </div>
    </div>
</div> 
<div class="row" style="text-align:center;">
    <button type="button" class="btn btn-secondary new-class-button" data-toggle="modal" data-target="#myModal" style="text-align:center;">Add Class...</button><div id="myModal"></div>
</div>
    <!-- <div class="col-xs-3">-->
        
        
   <!-- </div>-->
</div>  <!-- End container-fluid -->
</div>  <!-- End page-content-wrapper -->
        

    
    <!-- /#wrapper -->

    <!-- Menu Toggle Script -->
<script>
    $(document).ready(function() {
        {% for course in current_courses %}
            addDBClass('{{ course.course_name }}');
        {% endfor %} 
    });
    
    $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled");
    });
    
    
    function addDBClass(className) {
        var node = document.createElement("div");
        node.className = "class-container";
        node.innerHTML = "<div class='class-name'><p style='font-size:32px'>" + className + "</p></div><div class='class-notes-div' onclick='loadQuestionView(" + '"' + className + '"' + ")'><div class='class-notes glyphicon glyphicon-forward'></div></div>";
        $("#class_list").append(node);
    }

    function addClass() {
        var node = document.createElement("div");
        var newClass = document.getElementById('add-class-name').value;
        if (newClass != "") {
            node.className = "class-container";
            $('#myModal').modal('hide');

            node.innerHTML = "<div class='class-name'><p style='font-size:32px'>" + newClass + "</p></div><div class='class-notes-div' onclick='loadQuestionView(" + '"' + newClass + '"' + ")'><div class='class-notes glyphicon glyphicon-forward'></div></div>";
  
            $("#class_list").append(node);
        }
    }   
    
    function loadQuestionView(newClass) {
        
        console.log(newClass);

        localStorage.setItem('ClassName', newClass);
        
        window.location.href = "{{ url_for('teacherfeed') }}";
        
    }


</script>

</body>

</html>
{'fraction_non_alphanumeric': 0.18915447734570104, 'fraction_numerical': 0.009846592936139851, 'mean_word_length': 1.954468802698145, 'pattern_counts': {'":': 0, '<': 321, '<?xml version=': 0, '>': 323, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5739755', 'n_tokens_mistral': 4199, 'n_tokens_neox': 3951, 'n_words': 761}