-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html
124 lines (97 loc) · 4.87 KB
/
profile.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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />
<!-- Good default declaration:
* gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of eval() and inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
* Enable inline JS: add 'unsafe-inline' to default-src
* Enable eval(): add 'unsafe-eval' to default-src
* Create your own at http://cspisawesome.com
-->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" /> -->
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<link rel="stylesheet" type="text/css" href="css/profile.css"/>
<link rel="stylesheet" type="text/css" href="css/materialize.min.css"/>
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css"/>
<title>Hello World</title>
</head>
<body>
<header class="headerCon">
<div class="header">
<a class="active a-left" style="margin-right:;" href="#"><i class="fa fa-search"></i></a>
<a class="center-text">Discover</a>
<a class="active a-right" href="#"><i class="fa fa-map"></i></a>
</div>
</header>
<div class="protop">
<div class="econ" style="color:white;">
<span >
<a class="active" style="color:white;" href="#" onclick="logout()"><i class="fa fa-power-off"></i></a>
<a class="active" href="settings.html"><i class="fa fa-gear"></i></a>
</span>
</div>
<div class="imgcon">
<div class="imgcir">
<img alt="profile" width="50%" height="50%"/>
</div>
</div>
<div class="indentity"><h5 id="f"></h5><p id="u"></p></div>
</div>
<div class="about">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">About</span>
<p></p>
</div>
<div class="card-action">
<a href="#">following</a>
<a href="#">followers</a>
<a href="#">Events</a>
</div>
</div>
</div>
<footer class="footer">
<a class="active" href="index.html"><i class="fa fa-eye"></i></a>
<a class="active" href="schedule.html"><i class="fa fa-calendar"></i></a>
<a class="active" href="create.html"><i class="fa fa-plus-square"></i></a>
<a class="active" href="notification.html"><i class="fa fa-bell"></i></a>
<a class="active" href="profile.html"><i class="fa fa-user"></i></a>
</footer>
<script src="js/jquery-2.2.3.min.js"></script>
<script>
$(document).ready(function(){
$.ajax({
type: 'get',
url: 'http://gothere.000webhostapp.com/profile.php.php',
//url: 'profile.php',
dataType: 'json',
success: function (response) {
$('#f').html(response.fname);
$('#u').html(response.uname);
}
});
});
function logout() {
$.ajax({
type: 'get',
//url: 'http://gothere.000webhostapp.com/logout.php',
url: 'logout.php',
success: function (response) {
if (response == "success") {
window.location.href="login.html";
}else{
alert("You were not logged out");
}
}
});
}
</script>
</body>
</html>