-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (117 loc) · 3.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js" integrity="sha256-/H4YS+7aYb9kJ5OKhFYPUjSJdrtV6AeyJOtTkw6X72o=" crossorigin="anonymous"></script>
<title>Dew Point Calculator</title>
<style>
.center {
margin: auto;
width: 50%;
padding: 10px;
}
body {
transition: 0.5s;
}
.slidecontainer {
width: 100%;
}
.slider {
-webkit-appearance: none;
width: 99%;
height: 15px;
border-radius: 5px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: #F33;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
border-radius: 50%;
background: #04AA6D;
cursor: pointer;
}
@media only screen and (max-width: 1100px){
body {
font-size:4em;
}
h2 {
font-size:1.5em;
text-align: center;
}
h4 {
font-size:0.8em;
}
h5 {
font-size:0.8em;
}
input {
font-size:1em !important;
}
select {
font-size:0.8em !important;
}
.center {
margin: 5px;
width: 100%;
padding: 10px;
}
#tombol{
font-size:1em !important;
}
.progress {
height:50px !important;
}
.slider::-webkit-slider-thumb {
width: 75px;
height: 75px;
}
.slider {
height: 50px;
}
}
.hum::-webkit-slider-thumb {
background: #33F;
}
</style>
<body>
<h2 class="d-flex justify-content-center mt-5">Dew Point Calculator</h2>
<div id="the_wrapper" class="center" style="max-width:1200px;">
<br>
<div class="slidecontainer">
<h5 class="d-flex m-3">Temperature (℃)</h5>
<h4 id="temp_tag" class="d-flex m-3">0</h4>
<input type="range" min="1" max="100" value="50" class="slider" id="temp_range" oninput="get_temp()">
<h5 class="d-flex m-3">Humidity (%)</h5>
<h4 id="hum_tag" class="d-flex m-3">0</h4>
<input type="range" min="1" max="100" value="50" class="slider hum" id="hum_range" oninput="get_hum()">
</div>
<br><br>
<h5 class="d-flex m-3">Dew Point (℃)</h5>
<h4 id="dp_tag" class="d-flex m-3">Dew Point (℃)</h4>
<div class="progress mr-1" style="height:20px;">
<div id="bar-temp" class="progress-bar" style="width:50%; height:50px;"></div>
</div>
<h4 id="explain_tag" class="d-flex m-3">Dry</h4>
</div>
<script src="script.js">
</script>
</body>
</html>