-
Notifications
You must be signed in to change notification settings - Fork 0
/
3.html
194 lines (159 loc) · 5.35 KB
/
3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>EduDay</title>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="css/mdb.min.css" rel="stylesheet">
<!-- Your custom styles (optional) -->
<link href="css/style.css" rel="stylesheet">
<!-- JQuery -->
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<!-- Main Script -->
<script type="text/javascript" src="script.js"></script>
<!-- JQuery UI-->
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(document).ready(function() {
function findGetParameter(parameterName) {
var result = null,
tmp = [];
var items = location.search.substr(1).split("&");
for (var index = 0; index < items.length; index++) {
tmp = items[index].split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
}
return result;
}
url="my_courses.php?email="+findGetParameter("email");
$("#allcourses").click(function() {
$.ajax({
type: "GET",
url: "all_courses.php",
dataType: "html",
success: function(response){
$(".main").html(response);
}
});
});
$("#mycourses").click(function() {
$.ajax({
type: "GET",
url: url,
dataType: "html",
success: function(response){
$(".main").html(response);
}
});
});
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$("#feedback").click(function() {
if ($("#content").val()!="")
$( "#dialog" ).dialog( "open" );
else
alert("Hmm. Empty feedback?");
});
});
$(".quiz").click(function() {
$("#quiz").load("quiz.html");
});
});
</script>
<style>
#accordion-1{font-size: 14px;}
</style>
</head>
<body>
<!-- nav-->
<nav class="navbar navbar-expand-lg navbar-dark indigo">
<a class="navbar-brand" href="#">EduDay</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item" id="allcourses">
<a class="nav-link">All courses</a>
</li>
<li class="nav-item" id="mycourses">
<a class="nav-link">My courses</a>
</li>
</ul>
<button class="btn btn-primary white-text" onclick="signout()">
Log out
</button>
</div>
</nav>
<!-- nav-->
<!-- main-->
<div style="height: 100vh" class="main">
<h1 class="text-center mt-5">Neural Networks</h1>
<div id="quiz"></div>
<!-- Grid row -->
<div class="row" style="margin: 100px 20px;">
<!-- Grid column -->
<div class="col-md-4">
<nav class="nav flex-column pink lighten-3 py-4 mb-r font-weight-bold z-depth-1">
<a class="nav-link active white-text" href="#">Week 1</a>
<a class="nav-link white-text" href="#">What are neural networks?</a>
<a class="nav-link white-text" href="#">History of neural networks</a>
<a class="nav-link white-text" href="#">Quiz 1</a>
</nav>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-4">
<nav class="nav flex-column amber lighten-3 py-4 mb-r font-weight-bold z-depth-1">
<a class="nav-link active dark-grey-text" href="#">Week 2</a>
<a class="nav-link dark-grey-text" href="#">Simple Neural Networks</a>
<a class="nav-link dark-grey-text" href="#">Convolutional Natural Networks</a>
<a class="nav-link dark-grey-text" href="#">Quiz 2</a>
</nav>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-4">
<nav class="nav flex-column cyan lighten-3 py-4 mb-r font-weight-bold z-depth-1">
<a class="nav-link active indigo-text" href="#">Week 3</a>
<a class="nav-link indigo-text" href="#">Recurrent Neural Networks</a>
<a class="nav-link indigo-text" href="#">Generative Adversarial Networks</a>
<a class="nav-link indigo-text quiz" href="#">Quiz 3</a>
</nav>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
<!-- main-->
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="../js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="../js/mdb.min.js"></script>
</body>
</html>