This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmax-minwind.php
62 lines (52 loc) · 5.66 KB
/
max-minwind.php
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
<?php include('livedata.php');include('common.php');header('Content-type: text/html; charset=utf-8');?>
<div class="topmin">
<?php //wind max month
if ($weather["wind_units"]=='km/h' && $weather["wind_speed_max"]>60){echo "<topred1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_speed_max"]>40){echo "<toporange1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_speed_max"]>30){echo "<topyellow1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_speed_max"]>10){ echo "<topgreen1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_speed_max"]>0){ echo "<topblue1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
//wind mph
if ($weather["wind_units"]=='mph' && $weather["wind_speed_max"]>40){echo "<topred1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_speed_max"]>24){echo "<toporange1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_speed_max"]>18){echo "<topyellow1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_speed_max"]>6){ echo "<topgreen1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_speed_max"]>-50){ echo "<topblue1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
//wind ms
if ($weather["wind_units"]=='m/s' && $weather["wind_speed_max"]>16.6){echo "<topred1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_speed_max"]>11){echo "<toporange1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_speed_max"]>8.3){echo "<topyellow1>",$weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_speed_max"]>2.7){ echo "<topgreen1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_speed_max"]>-50){ echo "<topblue1>", $weather["wind_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
?>
</smalluvunit></div>
<div class="minword"><?php echo $lang['Windspeed'];?></div>
</div>
<div class="mintimedate"><?php echo $lang['Max'];?>
</div>
<div class="yearwordbig"><img src="css/icons/windsvg.svg" alt="Wind Icon" height="30" width="30"/></div>
<div class="topmax">
<?php //wind max year
if ($weather["wind_units"]=='km/h' && $weather["wind_gust_speed_max"]>60){echo "<topred1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_gust_speed_max"]>40){echo "<toporange1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_gust_speed_max"]>30){echo "<topyellow1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_gust_speed_max"]>10){ echo "<topgreen1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["wind_gust_speed_max"]>0){ echo "<topblue1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
//wind mph
if ($weather["wind_units"]=='mph' && $weather["wind_gust_speed_max"]>40){echo "<topred1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_gust_speed_max"]>24){echo "<toporange1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_gust_speed_max"]>18){echo "<topyellow1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_gust_speed_max"]>6){ echo "<topgreen1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["wind_gust_speed_max"]>-50){ echo "<topblue1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
//wind ms
if ($weather["wind_units"]=='m/s' && $weather["wind_gust_speed_max"]>16.6){echo "<topred1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_gust_speed_max"]>11){echo "<toporange1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_gust_speed_max"]>8.3){echo "<topyellow1>",$weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_gust_speed_max"]>2.7){ echo "<topgreen1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["wind_gust_speed_max"]>-50){ echo "<topblue1>", $weather["wind_gust_speed_max"]." <smallwindunit>".$weather["wind_units"] ; }
?>
</smalluvunit></div>
<div class="maxword"><?php echo $lang['Gust'];?></div>
</div>
<div class="maxtimedate"><?php echo $lang['Max'];?>
</div>