Skip to content

Commit b28c41a

Browse files
author
rakeshAlgo
committed
removing ES lint error for is this page helpful task
1 parent 5473d83 commit b28c41a

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

src/css/is-this-helpful.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
line-height: 1.125rem;
9898
color: var(--color-brand-blue);
9999
}
100-
.toc .any-feedback a{
100+
101+
.toc .any-feedback a {
101102
font-size: 0.875rem;
102103
line-height: 20px;
103104
text-decoration: none;
@@ -106,7 +107,6 @@
106107
margin-bottom: 15px;
107108
display: inline-block;
108109
width: 100%;
109-
110110
}
111111

112112
.is-this-helpful-box .action-btn-row .info-btn {

src/css/main.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ main p {
118118
}
119119
}
120120

121-
122121
@media screen and (max-width: 767px) {
123-
.main{
122+
.main {
124123
padding-bottom: 2rem;
125124
}
126-
}
125+
}

src/js/06-page-rating.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
;(function () {
1+
;
2+
(function () {
23
'use strict'
3-
44
var dialogBox = document.getElementById('dialogBox')
55
var helpYesBtn = document.getElementById('yesBtn')
66
var helpNoBtn = document.getElementById('noBtn')
77
var skipBtnMsg = document.getElementById('skipBtnMsg')
88
var feedBackFormBox = document.getElementById('additionalFeedbackBox')
9-
var leaveAddtinalBox = document.getElementById('leaveAddtinalBox')
10-
var skipLeaveBtn = document.getElementById('skipLeaveBtn')
9+
// var leaveAddtinalBox = document.getElementById('leaveAddtinalBox')
10+
// var skipLeaveBtn = document.getElementById('skipLeaveBtn')
1111
var feedBackMsg = document.querySelector('.feed-back-msg')
1212
var submitBtn = document.querySelector('.submit-btn')
13-
var leaveYesBtn = document.querySelector('.yes-btn')
13+
// var leaveYesBtn = document.querySelector('.yes-btn')
1414
var feedbackInfoBtn = document.querySelector('.info-btn')
1515
var feedbackModal = document.querySelector('.feedback-modal')
1616
var closeModalPopup = document.querySelector('.close-popup')
@@ -20,16 +20,16 @@
2020
var noBtnData = helpNoBtn.dataset
2121

2222
helpYesBtn.addEventListener('click', function (e) {
23-
// dialogBox.style.display = 'block'
23+
// dialogBox.style.display = 'block'
2424
this.classList.add('active')
2525
helpNoBtn.classList.remove('active')
26-
// console.log(yesBtnData, 16)
26+
console.log(yesBtnData, 16)
2727
})
2828
helpNoBtn.addEventListener('click', function (e) {
29-
// dialogBox.style.display = 'block'
29+
// dialogBox.style.display = 'block'
3030
this.classList.add('active')
3131
helpYesBtn.classList.remove('active')
32-
// console.log(noBtnData, 27)
32+
console.log(noBtnData, 27)
3333
})
3434

3535
anyFeedbackBtn.addEventListener('click', function (e) {
@@ -40,7 +40,6 @@
4040
})
4141

4242
skipBtnMsg.addEventListener('click', function (e) {
43-
4443
dialogBox.style.display = 'none'
4544
feedBackMsg.value = ''
4645
})
@@ -58,10 +57,6 @@
5857
submitBtn.classList.add('disabled')
5958
}
6059
})
61-
62-
// leaveYesBtn.addEventListener('click', function (e) {
63-
// leaveAddtinalBox.style.display = 'none'
64-
// })
6560
feedbackInfoBtn.addEventListener('click', function (e) {
6661
feedbackModal.classList.add('show')
6762
})

0 commit comments

Comments
 (0)