-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathindex.html
108 lines (95 loc) · 5.44 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Whatsapp</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-fluid" id="main-container">
<div class="row h-100">
<div class="col-12 col-sm-5 col-md-4 d-flex flex-column" id="chat-list-area" style="position:relative;">
<!-- Navbar -->
<div class="row d-flex flex-row align-items-center p-2" id="navbar">
<img alt="Profile Photo" class="img-fluid rounded-circle mr-2" style="height:50px; cursor:pointer;" onclick="showProfileSettings()" id="display-pic">
<div class="text-white font-weight-bold" id="username"></div>
<div class="nav-item dropdown ml-auto">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><i class="fas fa-ellipsis-v text-white"></i></a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">New Group</a>
<a class="dropdown-item" href="#">Archived</a>
<a class="dropdown-item" href="#">Starred</a>
<a class="dropdown-item" href="#">Settings</a>
<a class="dropdown-item" href="#">Log Out</a>
</div>
</div>
</div>
<!-- Chat List -->
<div class="row" id="chat-list" style="overflow:auto;"></div>
<!-- Profile Settings -->
<div class="d-flex flex-column w-100 h-100" id="profile-settings">
<div class="row d-flex flex-row align-items-center p-2 m-0" style="background:#009688; min-height:65px;">
<i class="fas fa-arrow-left p-2 mx-3 my-1 text-white" style="font-size: 1.5rem; cursor: pointer;" onclick="hideProfileSettings()"></i>
<div class="text-white font-weight-bold">Profile</div>
</div>
<div class="d-flex flex-column" style="overflow:auto;">
<img alt="Profile Photo" class="img-fluid rounded-circle my-5 justify-self-center mx-auto" id="profile-pic">
<input type="file" id="profile-pic-input" class="d-none">
<div class="bg-white px-3 py-2">
<div class="text-muted mb-2"><label for="input-name">Your Name</label></div>
<input type="text" name="name" id="input-name" class="w-100 border-0 py-2 profile-input">
</div>
<div class="text-muted p-3 small">
This is not your username or pin. This name will be visible to your WhatsApp contacts.
</div>
<div class="bg-white px-3 py-2">
<div class="text-muted mb-2"><label for="input-about">About</label></div>
<input type="text" name="name" id="input-about" value="" class="w-100 border-0 py-2 profile-input">
</div>
</div>
</div>
</div>
<!-- Message Area -->
<div class="d-none d-sm-flex flex-column col-12 col-sm-7 col-md-8 p-0 h-100" id="message-area">
<div class="w-100 h-100 overlay"></div>
<!-- Navbar -->
<div class="row d-flex flex-row align-items-center p-2 m-0 w-100" id="navbar">
<div class="d-block d-sm-none">
<i class="fas fa-arrow-left p-2 mr-2 text-white" style="font-size: 1.5rem; cursor: pointer;" onclick="showChatList()"></i>
</div>
<a href="#"><img src="https://via.placeholder.com/400x400" alt="Profile Photo" class="img-fluid rounded-circle mr-2" style="height:50px;" id="pic"></a>
<div class="d-flex flex-column">
<div class="text-white font-weight-bold" id="name"></div>
<div class="text-white small" id="details"></div>
</div>
<div class="d-flex flex-row align-items-center ml-auto">
<a href="#"><i class="fas fa-search mx-3 text-white d-none d-md-block"></i></a>
<a href="#"><i class="fas fa-paperclip mx-3 text-white d-none d-md-block"></i></a>
<a href="#"><i class="fas fa-ellipsis-v mr-2 mx-sm-3 text-white"></i></a>
</div>
</div>
<!-- Messages -->
<div class="d-flex flex-column" id="messages"></div>
<!-- Input -->
<div class="d-none justify-self-end align-items-center flex-row" id="input-area">
<a href="#"><i class="far fa-smile text-muted px-3" style="font-size:1.5rem;"></i></a>
<input type="text" name="message" id="input" placeholder="Type a message" class="flex-grow-1 border-0 px-3 py-2 my-3 rounded shadow-sm">
<i class="fas fa-paper-plane text-muted px-3" style="cursor:pointer;" onclick="sendMessage()"></i>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"
crossorigin="anonymous"></script>
<script src="datastore.js"></script>
<script src="date-utils.js"></script>
<script src="script.js"></script>
</body>
</html>