Skip to content

Commit 932e6f3

Browse files
committed
Tidy up the comments
1 parent 36c2056 commit 932e6f3

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

feature-intro.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ const introText = document.querySelector('.intro-text');
77

88
const date = new Date();
99
const hours = date.getHours();
10-
// const minutes = date.getMinutes();
11-
// const day = date.getDay();
12-
// const month = date.getMonth();
10+
1311
const dateString = date.toLocaleDateString();
14-
// const dateString2 =date.toDateString();
1512
const timeString = date.toTimeString().substr(0,5)
1613
const timeOfDay = getTimeOfDay(hours);
1714

feature-tube.js

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ request("https://api.tfl.gov.uk/line/mode/tube/status", function(response) {
66
const status = line.lineStatuses[0];
77
let statusSeverityDescription = status.statusSeverityDescription;
88
const reason = status.reason;
9-
// if (line.id=="jubilee") statusSeverityDescription="Severe Delays";
10-
//gets status class from helper function
119
let statusClass = getStatusClass(statusSeverityDescription);
1210
let li = document.createElement("li");
1311
li.classList.add("tube-line-li");

logic.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ function getTimeOfDay(hour){
4545

4646

4747

48-
// request("https://corporatebs-generator.sameerkumar.website/",function (response){
49-
// console.log(response);
50-
// });
48+
5149
if (typeof module !== "undefined") {
5250
module.exports = { getStatusClass, requiresShadow, getTimeOfDay };
5351
}

style.css

-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ section {
4444
background-color: white;
4545
padding: 1rem;
4646
border-radius: 1rem;
47-
/* min-width: 300px; */
4847
max-width: 800px;
4948
margin:0.5rem;
5049
}
@@ -154,7 +153,6 @@ section {
154153
background-color:orange;
155154
color:black;
156155
border:none;
157-
/* border-color: #1f3e93; */
158156
}
159157

160158
.tube-severe,
@@ -168,7 +166,6 @@ section {
168166
transition: all 0.5 s ;
169167
transition-timing-function: ease-in-out;
170168
max-height: 400px;
171-
/* border-bottom: 1px solid grey; */
172169
overflow-y: hidden;
173170
}
174171

0 commit comments

Comments
 (0)