-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeedback.html
executable file
·186 lines (177 loc) · 8.1 KB
/
feedback.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="shortcut icon" type="image/png" href="/images/favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Roboto+Mono:wght@500&display=swap"
rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/feedback.css">
<title>WizDwarfs</title>
</head>
<body>
<div class='main-dashboard-div'>
<nav class="navbar navbar-expand-md navbar-light custom-navbar" style=" background-color: #ededed;display: flex;">
<a class="navbar-brand" href="#">
<img src="/images/logo.png" alt="Logo" class="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown" style="position: absolute;left: 37pc;">
<ul class="navbar-nav">
<li class="nav-item active pl-3">
<a class="nav-link" href="/">
<i class="fa fa-home icon-light" aria-hidden="true"></i>
</a>
</li>
<li class="nav-item dropdown pl-3">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fa fa-envelope" aria-hidden="true"></i>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item active" href="#" title="Private Conversation"><i class="fa fa-envelope-o" aria-hidden="true"></i> Private </a>
<a class="dropdown-item" href="#" title="Gossips"> <i class="fa fa-comments-o" aria-hidden="true"></i> Public </a>
</div>
</li>
<li class="nav-item dropdown pl-3">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item active" href="/dashboard/profile" title="Edit Profile"><i class="fa fa-sliders" aria-hidden="true"></i>
Edit Your Profile
</a>
<a class="dropdown-item" href="#" title="Custom Settings "><i class="fa fa-cogs" aria-hidden="true"></i>
Preferences
</a>
<a class="dropdown-item" href="/logout" title="Lock the account"><i class="fa fa-sign-out icon icon-light"
aria-hidden="true"></i>Logout</a>
</div>
</li>
</ul>
</div>
</nav>
</div>
<div class="useract">
<div class="card" style="width: 25rem;">
<div class="card-body ux">
<h5 class="card-title"> Customer feedback </h5>
<p class="card-text">
<button type="button" class="btn-star0">
<i class="fa fa-star-o" aria-hidden="true"></i>
</button>
<button type="button" class="btn-star1">
<i class="fa fa-star-o" aria-hidden="true"></i>
</button>
<button type="button" class="btn-star2">
<i class="fa fa-star-o" aria-hidden="true"></i>
</button>
<button type="button" class="btn-star3">
<i class="fa fa-star-o" aria-hidden="true"></i>
</button>
<button type="button" class="btn-star4">
<i class="fa fa-star-o" aria-hidden="true"></i>
</button>
<button type="button" class="btn-edit">
<i class="fa fa-pencil" aria-hidden="true"></i>
</button>
<button type="button" class="btn-download">
<i class="fa fa-cloud-download" aria-hidden="true"></i>
</button>
</p>
<ul class="list-group">
<li class="list-group-item">
<form class="feedback-form" method="post" action="">
<input type="text" name="liked" class="like" placeholder="which features do you like in the app?"/>
<input type="text" name="improved" class="improve" placeholder="which features do improved in the app?"/>
<input type="text" name="recommend" class="recommend" placeholder="which features you will recommend?"/>
<button type="submit" class="review">
<i class="fa fa-spinner" aria-hidden="true"></i>
</button>
</form>
</li>
</ul>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script>
const btn_low = document.getElementsByClassName('btn-star0')[0];
const btn_medium = document.getElementsByClassName('btn-star1')[0];
const btn_medium_low = document.getElementsByClassName('btn-star2')[0];
const btn_medium_high = document.getElementsByClassName('btn-star3')[0];
const btn_high = document.getElementsByClassName('btn-star4')[0];
const btn_editor = document.getElementsByClassName('btn-edit')[0];
const btn_download = document.getElementsByClassName('btn-download')[0];
const editor = document.getElementsByClassName('list-group')[0];
const card = document.getElementsByClassName('ux')[0];
btn_low.addEventListener('click',(event)=>{
btn_low.children[0].style.color = 'lawngreen';
btn_low.style.backgroundColor = 'white';
});
btn_medium.addEventListener('click',(event)=>{
btn_low.children[0].style.color = 'lawngreen';
btn_low.style.backgroundColor = 'white';
btn_medium.children[0].style.color = 'lightgreen';
btn_medium.style.backgroundColor = 'white';
});
btn_medium_high.addEventListener('click',(event)=>{
btn_low.children[0].style.color = 'lawngreen';
btn_low.style.backgroundColor = 'white';
btn_medium.children[0].style.color = 'lightgreen';
btn_medium.style.backgroundColor = 'white';
btn_medium_low.children[0].style.color = 'darkgreen';
btn_medium_low.style.backgroundColor = 'white';
});
btn_medium_high.addEventListener('click',(event)=>{
btn_low.children[0].style.color = 'lawngreen';
btn_low.style.backgroundColor = 'white';
btn_medium.children[0].style.color = 'lightgreen';
btn_medium.style.backgroundColor = 'white';
btn_medium_low.children[0].style.color = 'darkgreen';
btn_medium_low.style.backgroundColor = 'white';
btn_medium_high.children[0].style.color = 'darkolivegreen';
btn_medium_high.style.backgroundColor = 'white';
});
btn_high.children[0].addEventListener('click', (event)=>{
btn_low.children[0].style.color = 'lawngreen';
btn_low.style.backgroundColor = 'white';
btn_medium.children[0].style.color = 'lightgreen';
btn_medium.style.backgroundColor = 'white';
btn_medium_low.style.backgroundColor = 'white';
btn_medium_low.children[0].style.color = 'darkgreen';
btn_medium_high.style.backgroundColor = 'white';
btn_medium_high.children[0].style.color = 'darkolivegreen';
btn_high.children[0].style.color = 'forestgreen';
btn_high.style.backgroundColor = 'white';
});
btn_editor.addEventListener('click', ()=>{
btn_editor.children[0].style.color = 'forestgreen';
editor.style.height = '161px';
card.style.height = '300px';
editor.style.visibility = 'visible';
console.log("card", card);
});
btn_download.addEventListener('click',(event)=>{
btn_download.children[0].style.color = 'darkgreen';
})
</script>
</body>
</html>