-
Notifications
You must be signed in to change notification settings - Fork 0
/
student_logged.html
153 lines (124 loc) · 4.02 KB
/
student_logged.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
<!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>
<!-- JQuery UI-->
<script src = "https://code.jquery.com/jquery-1.10.2.js"></script>
<script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<!-- Main Script -->
<script type="text/javascript" src="script.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;
}
url0="my_points.php?email="+findGetParameter("email"); //send get parameters
$.ajax({
type: "GET",
url: url0,
dataType: "html",
success: function(response){
$("#points").html(response);
}
});
url="my_courses.php?email="+findGetParameter("email"); //send get parameters
url2="new_password.php?email="+findGetParameter("email"); //send get parameters
$("#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);
}
});
});
$("#new_pass").click(function() {
$.ajax({
type: "GET",
url: url2,
dataType: "html",
success: function(response){
$(".main").html(response);
}
});
});
});
</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>
<p id="points">
Change password
</p>
<button class="btn btn-primary white-text" id="new_pass">
Change password
</button>
<button class="btn btn-danger white-text" onclick="signout()">
Log out
</button>
</div>
</nav>
<!-- nav-->
<!-- main-->
<div style="height: 100vh" class="main">
<h1 class="text-center text-primary" style="font-size:500%;font-weight:bold;margin-top:15%">Welcome to EduDay!</h1>
</div>
<!-- main-->
<!-- SCRIPTS -->
<!-- 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>