-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageexample.html
57 lines (53 loc) · 2.27 KB
/
Messageexample.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
<!DOCTYPE html>
<html>
<head>
<title>W3.CSS Template!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link rel="stylesheet" href="css/input.css"/>
</head>
<body>
<H1 id="title">Message</H1>
<div id="messexample" class="container-fluid">
<div class='anitem'>
<a href="profile2.html">
<div class="massagepic">
<img class="propic" src="images/JoeShmoe.png">
</div>
Contact: Joe Shmoe
</a>
</div>
<div id='replies'>
<div class="rightm box1 sb8">Hello, Joe Shmoe</div>
<div class="leftm box1 sb7">Hello, John Smith</div>
<div class="rightm box1 sb8">I'm interested in your apples. Are they still available?</div>
</div>
</div>
<inputtext>
<input id="messagetosend" type="text" class="form-control" placeholder="Say hi!">
<button onclick="sendmessage()" type="submit" class="btn-primary">Send</button>
</inputtext>
<navbar>
<a href="index.html"><i class="fas fa-home"></i>Home</a>
<a href="filter.html"><i class="fas fa-search"></i>Search</a>
<a href="add_listing.html"><i class="fas fa-plus"></i>Add Item</a>
<a href="profileview.html"><i class="fas fa-bars"></i>Menu</a>
</navbar>
<script>
function sendmessage(){
mess = document.getElementById('messagetosend').value
if (mess != "") {
document.getElementById("replies").innerHTML += "<div id='rightm' class='box1 sb8'>" + mess + "</div>"
document.getElementById('messagetosend').value =""}
}
</script>
</body>
</html>