Skip to content

Commit a7bea8a

Browse files
author
rakeshAlgo
committed
Remove console from code
1 parent e644538 commit a7bea8a

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

src/js/06-page-rating.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
// dialogBox.style.display = 'block'
2323
this.classList.add('active')
2424
helpNoBtn.classList.remove('active')
25-
console.log(yesBtnData, 16)
25+
// console.log(yesBtnData, 16)
2626
})
2727
helpNoBtn.addEventListener('click', function (e) {
2828
// dialogBox.style.display = 'block'
2929
this.classList.add('active')
3030
helpYesBtn.classList.remove('active')
31-
console.log(noBtnData, 27)
31+
// console.log(noBtnData, 27)
3232
})
3333
skipBtnMsg.addEventListener('click', function (e) {
3434
dialogBox.style.display = 'none'

src/js/08-contributor-bot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
;(function () {
22
'use strict'
3-
// console.log('contributor page')
43
var showData = false
54
var contributors
65
var contributorList = document.getElementById('contributorList')

src/js/09-table-responsive.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
function shapeTable () {
1616
if (window.innerWidth < smallBreak) {
1717
tables.forEach(function (elem, index) {
18-
// console.log(elem.querySelector('tr'))
19-
2018
var columns = elem.querySelectorAll('tbody tr').length
2119
var rows = elem.querySelectorAll('thead tr th').length
2220
for (var i = 1; i <= rows; i++) {
@@ -26,12 +24,11 @@
2624
}
2725

2826
for (var j = 1; j <= columns; j++) {
29-
// console.log(i, j, 23)
27+
3028
if (
3129
elem.querySelector('tr:nth-child(' + j + ') td:nth-child(' + i + ')') != null &&
3230
elem.querySelector(' tr:nth-child(' + j + ') td:nth-child(' + i + ')') !== undefined
3331
) {
34-
// console.log(elem.querySelector('tr:nth-child(' + j + ') td:nth-child(' + i + ')'), 25)
3532
if (elem.querySelector('tr:nth-child(' + j + ') td:nth-child(' + i + ')').offsetHeight > maxHeight) {
3633
maxHeight = elem.querySelector('tr:nth-child(' + j + ') td:nth-child(' + i + ')').offsetHeight
3734
}

src/js/10-landing-page-nav.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// add class even odd
99
var $allData = $('.data-filter-column')
1010
for (var i = 0; i < $allData.length; i++) {
11-
console.log(i, 445, $allData[i])
1211
if (i % 2 === 1) {
1312
$allData[i].classList.add('even')
1413
} else {
@@ -24,7 +23,6 @@
2423
if (!Object.prototype.hasOwnProperty.call(selectedFiltersData, this.name)) {
2524
selectedFiltersData[this.name] = []
2625
}
27-
// console.log(selectedFiltersData, 27)
2826
selectedFiltersData[this.name].push(this.value.toLowerCase())
2927
})
3028
// create a collection containing all of the filterable elements
@@ -39,9 +37,7 @@
3937
var currentFilterValues = $(this).find('.sub-heading').data('category').toLowerCase().split(' ')
4038

4139
$.each(currentFilterValues, function (_, currentFilterValue) {
42-
// console.log('enter', currentFilterValues, currentFilterValue)
4340
if ($.inArray(currentFilterValue, filterValues) !== -1) {
44-
console.log('true', currentFilterValue, filterValues)
4541
matched = true
4642
return false
4743
}
@@ -54,7 +50,6 @@
5450
$('.data-filter-column').addClass('hide').filter($filteredResultsData).addClass('show').removeClass('hide')
5551
// add class for data-filter-column
5652
for (var i = 0; i < $filteredResultsData.length; i++) {
57-
console.log(i, 445, $filteredResultsData[i])
5853
if (i % 2 === 1) {
5954
$filteredResultsData[i].classList.add('even')
6055
} else {
@@ -70,9 +65,6 @@
7065
inputs[j].checked = false
7166
}
7267
for (var i = 0; i < $allData.length; i++) {
73-
console.log(i, 445, $allData[i])
74-
// $allData[i].classList.remove('even')
75-
// $allData[i].classList.remove('odd')
7668
if (i % 2 === 1) {
7769
$allData[i].classList.add('even')
7870
} else {

0 commit comments

Comments
 (0)