-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
dashboard.html
58 lines (56 loc) · 2.38 KB
/
dashboard.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 || Topic 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>
<p>Topic's Section</p>
<button type="button" name="button" class="btn btn-warning" onclick="logout()">Logout</button>
</div>
</div>
<div class="maincontainer" id='c'>
<div id="containerdo2" class="col-lg-10 col-md-10 col-sm-9 col-xs-7 "></div>
<div id="comment" class="col-lg-2 col-lg-offset-10 col-md-2 col-md-offset-10 col-sm-4 col-sm-offset-8 col-xs-3 col-xs-offset-9"></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">
<button type="button" name="button" class="btn btn-danger btn-group-justified" onclick="newM()" id='adt'>Add New Topic</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="ss()">×</button>
<h4 class="modal-title">Topic Information</h4>
</div>
<div class="modal-body">
<textarea name="name" rows="8" cols="80" id="topicinformation" onfocus="clearContent(this)" placeholder="Write some information about your topic here"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-left" data-dismiss="modal" onclick="addTopic()">Add</button>
</div>
</div>
</div>
</div>
<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/dashboard.js'></script>
</body>
</html>