-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomment.html
58 lines (55 loc) · 2.42 KB
/
comment.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Forum Application || Comment Section</title>
<link rel="stylesheet" href="boot/css/bootstrap.css">
<link id="pagestyle" rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container-fluid">
<div class="jumbotron">
<h1 id="jumb">Forum Application</h1>
<h3 id="user"></h3>
<p>Comment's Section.</p>
<button type="button" name="button" class="btn btn-warning" onclick="back()">Back</button>
<button type="button" name="button" class="btn btn-warning" onclick="logout()">Logout</button>
</div>
</div>
<div id="containerdo" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 "></div>
<button type="button" name="button" class="btn btn-danger btn-group-justified" onclick="newMethod()" id='adt'>Add New Comment</button>
</div>
<div id="myModal" style="display:none;" class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-2 col-xs-6 col-xs-offset-2">
<div>
<div>
<div>
<button type="button" class="close" data-dismiss="modal" onclick="methodm()">×</button>
<h4 class="modal-title">Comment Information</h4>
</div>
<div class="modal-body">
<textarea name="name" rows="8" cols="80" id="commentinformation" onfocus="clearContents(this)" placeholder="Write your comment here"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-left" data-dismiss="modal" onclick="addComment()">Add</button>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-2 col-xs-6 col-xs-offset-2">
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCOZ1sqBldrAr2sDeB7Tjg3NPW3ksVlJPw",
authDomain: "forum-application.firebaseapp.com",
databaseURL: "https://forum-application.firebaseio.com",
projectId: "forum-application",
storageBucket: "forum-application.appspot.com",
messagingSenderId: "266496813834"
};
firebase.initializeApp(config);
</script>
<script type='text/javascript' src='js/comment.js'></script>
</body>
</html>