-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html
102 lines (85 loc) · 3.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Deuxdrop</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
<script src="js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$(".next").css("visibility", "hidden");
$('button.red').click(function() {
$('#alert').addClass('visible');
});
$('#alert button.cancel').click(function() {
$('#alert').removeClass('visible');
});
var person = decodeURIComponent(window.location.href.slice(window.location.href.indexOf('?') + 1));
var username = person.split(" ")[0].toLowerCase();
$(".back").click(function () {
if (document.referrer) {
window.location = document.referrer;
} else {
window.location = "person.html?" + person;
}
});
$("#navTitle, .username").text(person).css("text-transform", "captialize")
$(".avatar > img").attr("src", "i/" + username + ".png")
$("#twitter > a").text("@" + username);
$("#email > a").text(person.replace(" ", ".").toLowerCase() + "@gmail.com");
$("#url > a").text("http://" + username + "forthewin.com");
$(".confirm").text($(".confirm").text().replace("PERSONNAME", person));
$("#alert .red").text($("#alert .red").text().replace("PERSONNAME", person));
});
</script>
</head>
<body>
<div id="wrapper" class="mobile">
<!-- header element -->
<div id="header" class="hbox">
<button class="back">Back</button>
<div class="boxFlex">
<h1 id="navTitle" class="overflow">People</h1>
</div>
<button class="next">Info</button>
</div>
<!-- profile/actions/settings -->
<div id="profile" class="settings">
<div id="userProfileHeader" class="hbox">
<div>
<div class="avatar">
<img src="i/andy.png">
</div>
</div>
<div class="username boxFlex overflow">James Burke</div>
<div id="actions"><button class="red">remove</button></div>
</div>
<ul id="menu">
<li class="hbox">
<label for="twitter" class="boxFlex">Twitter</label>
<div id="twitter"><a href="#">@jrburke</a></div>
</li>
<li class="hbox">
<label for="email" class="boxFlex">Email</label>
<div id="email"><a href="#">[email protected]</a></div>
</li>
<li class="hbox">
<label for="url" class="boxFlex">URL</label>
<div id="url"><a href="#">requirejs.org</a></div>
</li>
</ul>
</div>
<!-- alert to be used for notifications or errors -->
<div id="alert">
<div class="notificationWrapper">
<div class="notification">
<p class="confirm">This will remove PERSONNAME from your contacts.</p>
<p>Do you wish to continue?</p>
<button class="red">Remove PERSONNAME</button>
<button class="cancel">Cancel</button>
</div>
</div>
</div>
</div>
</body>
</html>