-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewquestion.html
59 lines (51 loc) · 1.76 KB
/
newquestion.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
<!DOCTYPE html>
<html lang="eng">
<head>
<meta charset="utf-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1">
<title>StackOverflow-Lite - Admin</title>
<!-- Link to font awesome icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--Links to our main css-->
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--Link to javascript file-->
<script src="js/main.js"></script>
</head>
<body>
<div>
<nav class="navbar" id="myNavbar">
<a href="index.html"><img src="" height="60">StackOverflow-Lite - Admin</a>
<a href="index.html" id="addNew">View Questions</a>
<a href="login.html" id="logout">LogOut</a>
<a href="javascript:void(0)" class="icon" onclick="toogleMenu()"><i class="fa fa-bars"></i></a>
</nav>
</div>
<div class="main">
<div class="header">
<h4>Post new question</h4>
</div>
<br>
<div >
<form method="POST" class="formdiv" action="#" >
<label for="title">Title: </label>
<input type="text" name="title" id="title" placeholder="Enter Question Title" required>
<label for="description">Description: </label>
<textarea name="description" id="description" placeholder="Describe your question" required></textarea>
<input type="submit" value="Add Question">
<br>
</form>
</div>
</div>
</body>
</html>
<!-- This function toggles the class of myNavbar between adding and removing the responsive class -->
<script type="text/javascript">
function toogleMenu() {
var x = document.getElementById("myNavbar");
if (x.className === "navbar") {
x.className += " responsive";
} else {
x.className = "navbar";
}
}
</script>