-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (58 loc) · 2.8 KB
/
Copy pathindex.html
File metadata and controls
90 lines (58 loc) · 2.8 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample of Social Media Comment Box</title>
<link rel="icon" href="https://www.freevector.com/uploads/vector/preview/7484/FreeVector-Social-Media-Icons.jpg">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
</head>
<body style="font-family: 'Montserrat', sans-serif;">
<div>
<h1 class="cmntHere">Comment Page</h1>
<p class="cmntHere">Responsiveness design made for Desktop only.</p>
<div class="parent">
<img class="img1"
src="https://lh3.googleusercontent.com/pw/ADCreHeQ7S-Fmdd_fFXxHJ2pBnbxcv6Qx5ig-efRcv4ggC-1gsNm_ppnv_rpXhhzXyIT7WXlWsG7sK4Rgy1C12qOe0AhwB5k1mffWvQi1gw4HM5yMg1WSDU=w2400"
alt="Paddy Field">
<div class="second">
<h1>Beautiful Paddy Field from sunset.</h1>
<article>Time: 27 April 2020 <br>Location: Bererbari, Dhunat, Bogura, Bangladesh.</article>
<h3>Beautiful paddy field at the time of sunset.</h3>
<div>
<div class="third">
<div class="fourth">
<h4>Comments</h4>
<div id="comment-box" class="fifth">
<p>A rice field with a sunset in the background.</p>
<p>Golden rice fields stretching under a fiery sunset.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cmntArea">
<h2>Comment here</h2>
<textarea style="font-size: 18px;" name="" class="txtArea" id="input-field" cols="119" rows="3"></textarea>
<br>
<button class="btn" id="comment-button">Comment</button>
</div>
</div>
<script>
document.getElementById('comment-button').addEventListener('click', function () {
const textarea = document.getElementById('input-field');
const text = textarea.value;
const p = document.createElement('p');
p.innerText = text;
const box = document.getElementById('comment-box');
box.appendChild(p)
})
</script>
</body>
</html>