Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcefe97

Browse files
committed
some changes in temp converter
1 parent 683607a commit dcefe97

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

Week2/homework/Masoud/tempConverter/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const celciusInput = document.querySelector('#celcius > input');
2-
const fahrenheitInput = document.querySelector('#fahrenheit > input');
3-
const kelvinInput = document.querySelector('#kelvin > input');
1+
const celciusInput = document.getElementById('celcius');
2+
const fahrenheitInput = document.getElementById('fahrenheit');
3+
const kelvinInput = document.getElementById('kelvin');
44

55
celciusInput.addEventListener('input', function() {
66
const cTemp = parseFloat(celciusInput.value);

Week2/homework/Masoud/tempConverter/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
href="favicon.ico">
1111
</head>
1212
<body>
13-
<div id="celcius">
14-
<input type="number" placeholder="celcius...">
13+
<div class="celcius">
14+
<input id="celcius" type="number" placeholder="celcius...">
1515
</div>
1616

17-
<div id="fahrenheit">
18-
<input type="number" placeholder="fahrenheit...">
17+
<div class="fahrenheit">
18+
<input id="fahrenheit" type="number" placeholder="fahrenheit...">
1919
</div>
2020

21-
<div id="kelvin">
22-
<input type="number" placeholder="kelvin...">
21+
<div class="kelvin">
22+
<input id="kelvin" type="number" placeholder="kelvin...">
2323
</div>
2424

2525
<script src="app.js"></script>

Week2/homework/Masoud/tempConverter/style.css

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ div {
1212
height: 33.33vh;
1313
}
1414

15-
#fahrenheit {
15+
.fahrenheit {
1616
border-bottom: 3px solid white;
1717
border-top: 3px solid white;
1818
}
@@ -30,18 +30,4 @@ input[type='number'] {
3030

3131
::-webkit-input-placeholder {
3232
color: grey;
33-
}
34-
35-
::-moz-placeholder {
36-
color: grey;
37-
}
38-
39-
::-ms-input-placeholder {
40-
color: grey;
41-
}
42-
43-
input[type='number']::-webkit-inner-spin-button,
44-
input[type='number']::-webkit-outer-spin-button {
45-
-webkit-appearance: none;
46-
margin: 0;
47-
}
33+
}

0 commit comments

Comments
 (0)