Skip to content

Commit 5a411e1

Browse files
fix: last try to fix UI test
1 parent e0b292d commit 5a411e1

File tree

1 file changed

+36
-50
lines changed

1 file changed

+36
-50
lines changed

plugins/star-rating/frontend/public/templates/feedback-popup.html

Lines changed: 36 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,35 @@
22
<html>
33
<head>
44
<title>Countly Feedback Popup</title>
5-
<link
6-
href="../../star-rating/stylesheets/ratings-iframe.css"
7-
rel="stylesheet"
8-
/>
9-
<link
10-
href="../../stylesheets/font-awesome/css/font-awesome.min.css"
11-
rel="stylesheet"
12-
/>
13-
<link
14-
href="../stylesheets/ionicons/css/ionicons.min.css"
15-
rel="stylesheet"
16-
/>
5+
<link href="../../star-rating/stylesheets/ratings-iframe.css" rel="stylesheet" />
6+
<link href="../../stylesheets/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
7+
<link href="../stylesheets/ionicons/css/ionicons.min.css" rel="stylesheet" />
178
<% if (themeFiles && themeFiles.css) { %>
189
<% for(var i=0, l=themeFiles.css.length; i < l; i++) {%>
19-
<link
20-
href='<%= themeFiles.css[i]%>'
21-
rel='stylesheet'
22-
type='text/css'
23-
/>
10+
<link href='<%= themeFiles.css[i]%>' rel='stylesheet' type='text/css' />
2411
<% } %>
2512
<% } %>
26-
<meta
27-
content="width=device-width, initial-scale=1"
28-
name="viewport"
29-
></meta>
13+
<meta content="width=device-width, initial-scale=1" name="viewport"></meta>
3014
</head>
3115
<body class="ratings-popup cly-vue-ratings-preview">
3216
<div class="rating-loader-wrapper">
3317
<img
34-
src="../../star-rating/images/star-rating/loader.svg"
3518
class="rating-loader"
19+
src="../../star-rating/images/star-rating/loader.svg"
3620
>
3721
</div>
3822
<div class="modal-content">
39-
<div
40-
class="close-button"
41-
id="close-btn"
42-
>
43-
<i class="ion-ios-close-empty"></i>
23+
<div class="modal-content__top">
24+
<div
25+
class="close-button"
26+
id="close-btn"
27+
>
28+
<i class="ion-ios-close-empty"></i>
29+
</div>
4430
</div>
4531
<p id="question-area">
46-
What is your opinion
47-
<br>
48-
of this page?
49-
</br>
32+
What is your opinion<br>of this page?
33+
<!-- </br> -->
5034
</p>
5135
<div class="emotions-area">
5236
<span
@@ -85,21 +69,16 @@
8569
class="input-wrapper"
8670
id="comment-section"
8771
>
88-
<!--
89-
<label class="countly-feedback-checkbox-container">
90-
<input
91-
data-state="0"
92-
id="countly-feedback-show-comment"
93-
type="checkbox"
94-
>
72+
<!-- NOTE: this is code is commented, if not used we can remove it -->
73+
<!-- <label class="countly-feedback-checkbox-container">
74+
<input data-state="0" id="countly-feedback-show-comment" type="checkbox">
9575
<span class="countly-feedback-show-comment-checkbox fa fa-square-o countly-feedback-check-green">
9676
</span>
9777
<span class="countly-feedback-checkbox-title" id="cf-comment-text">
9878
Add comment
9979
</span>
10080
</input>
101-
</label>
102-
-->
81+
</label> -->
10382
<div class="countly-feedback-checkbox-wrapper">
10483
<input
10584
data-state="0"
@@ -113,15 +92,14 @@
11392
Add comment
11493
</label>
11594
</div>
116-
<textarea id="countly-feedback-comment-textarea">
117-
</textarea>
95+
<textarea id="countly-feedback-comment-textarea"></textarea>
11896
</div>
11997
<div
12098
class="input-wrapper"
12199
id="contact-section"
122100
>
123-
<!--
124-
<label class="countly-feedback-checkbox-container">
101+
<!-- NOTE: this is code is commented, if not used we can remove it -->
102+
<!-- <label class="countly-feedback-checkbox-container">
125103
<input
126104
data-state="0"
127105
id="countly-feedback-show-email"
@@ -133,8 +111,7 @@
133111
Contact me by email
134112
</span>
135113
</input>
136-
</label>
137-
-->
114+
</label> -->
138115
<div class="countly-feedback-checkbox-wrapper">
139116
<input
140117
data-state="0"
@@ -154,7 +131,10 @@
154131
/>
155132
</div>
156133
</div>
157-
<div class="consent" id="consent"></div>
134+
<div
135+
class="consent"
136+
id="consent"
137+
></div>
158138
<div class="buttons-area">
159139
<button
160140
class="disabled-send-button disabled"
@@ -165,7 +145,10 @@
165145
</button>
166146
</div>
167147
<div class="modal-footer">
168-
<a href="https://count.ly" target="_new">
148+
<a
149+
href="https://count.ly"
150+
target="_new"
151+
>
169152
<img
170153
id="powered-by-countly"
171154
src="../../star-rating/images/star-rating/powered-by-countly.svg"
@@ -188,7 +171,7 @@
188171
Thank you.
189172
<br>
190173
We received your message.
191-
</br>
174+
<!-- </br> -->
192175
</p>
193176
</div>
194177
<div class="modal-footer">
@@ -212,7 +195,10 @@
212195
(function() {
213196
/* Helper methods which we need */
214197
function hasClass(ele, cls) {
215-
return (typeof ele.className !== 'undefined' && !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')));
198+
return (
199+
typeof ele.className !== 'undefined' &&
200+
!!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'))
201+
);
216202
}
217203

218204
function addClass(ele, cls) {

0 commit comments

Comments
 (0)