forked from omhoumz/profile-with-flexbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (67 loc) · 2.15 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Copy 05</title>
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<section class="card-bg">
<div class="location" title="Location">
<span class="l-icon">
<img src="img/navigation.png" alt="Location">
</span>
<span class="l-text">
<h3>Cambridge, England</h3>
</span>
</div>
<div class="verified" title="Verified Profile">
<img src="img/tick.png" alt="Verified Profile">
</div>
<div class="avatar-circle" title="Benedict Cumberbatch">
<div class="inner-avatar">
<img src="img/avatar.png" alt="Benedict Cumberbatch">
</div>
</div>
<div class="profile-desc">
<h1 class="f-name">Benedict Cumberbatch</h1>
<p>Benedict Timothy Carlton Cumberbatch was born and raised in London, England.</p>
<a class="btn noselect follow-btn">Follow</a>
</div>
<div class="bottom-bar">
<div class="bb-buttun bbb1">
<span class="icon">
<img src="img/picture.png" alt="Posts">
</span>
<span class="bb-text">
<span class="red-text">Posts</span> 546</span>
</div>
<div class="bb-buttun bbb2">
<span class="icon">
<img src="img/like.png" alt="Favorites">
</span>
<span class="bb-text">
<span class="red-text">Favorites</span> 5,406</span>
</div>
<div class="bb-buttun bbb3">
<span class="icon">
<img src="img/plane.png" alt="Messages">
</span>
<span class="bb-text">
<span class="red-text">Messages</span> 1,546</span>
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript">
$('a.btn').on("click", function () {
$this = $(this);
if ($this.hasClass('follow-btn')){
$this.removeClass("follow-btn").addClass("unfollow-btn").text('Following');
} else if ($this.hasClass('unfollow-btn')) {
$(this).removeClass("unfollow-btn").addClass("follow-btn").text('Follow');
}
});
</script>
</body>
</html>