Changeset 3039227
- Timestamp:
- 02/21/2024 02:10:19 PM (2 years ago)
- Location:
- weather-in-any-city-widget/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
resources/js/WIYCW-widget.js (modified) (10 diffs)
-
weather-in-any-city-widget.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weather-in-any-city-widget/trunk/README.txt
r3039208 r3039227 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 5.3 7 Stable tag: 1.1. 297 Stable tag: 1.1.30 8 8 License: GPLv2 or later 9 9 -
weather-in-any-city-widget/trunk/resources/js/WIYCW-widget.js
r3039208 r3039227 125 125 const img = document.createElement("img"); 126 126 img.src = widget.dataset.path + "/resources/icons/weather-icons/"+iconsColorPath + '/' + data.now.icon + ".svg" 127 img.alt = 'Current weather' 127 128 img.style.width = "70px" 128 129 img.style.height = "70px" … … 149 150 if(widget.dataset.nowsunrise == "on"){ 150 151 const sunriseIcon = document.createElement("img"); 152 sunriseIcon.alt = 'Sunrise' 151 153 sunriseIcon.classList = "WIYCW-item-icon " + iconsColorClass 152 154 sunriseIcon.src = widget.dataset.path + "/resources/icons/ui-icons/sunrise.svg" … … 162 164 data.now.sunrise = tConvert(data.now.sunrise); 163 165 } 164 166 165 167 sunrise.innerHTML += data.now.sunrise 166 168 now_row_info.appendChild(sunrise) 167 169 168 170 const sunsetIcon = document.createElement("img"); 171 sunsetIcon.alt = 'Sunset' 169 172 sunsetIcon.classList = "WIYCW-item-icon " + iconsColorClass 170 173 sunsetIcon.src = widget.dataset.path + "/resources/icons/ui-icons/sunset.svg" … … 187 190 188 191 const dropIcon = document.createElement("img"); 192 dropIcon.alt = 'Humidity'; 189 193 dropIcon.classList = "WIYCW-item-icon " + iconsColorClass 190 194 dropIcon.src = widget.dataset.path + "/resources/icons/ui-icons/dew-point.svg" … … 209 213 210 214 const arrowIcon = document.createElement("img"); 215 arrowIcon.alt = 'Wind direction'; 211 216 arrowIcon.src = widget.dataset.path + "/resources/icons/ui-icons/arrow.svg" 212 217 arrowIcon.style.width = "11px" … … 228 233 229 234 const pressureIcon = document.createElement("img"); 235 pressureIcon.alt = 'Pressure' 230 236 pressureIcon.classList = "WIYCW-item-icon " + iconsColorClass 231 237 pressureIcon.src = widget.dataset.path + "/resources/icons/ui-icons/pressure.svg" … … 244 250 245 251 const cloudinessIcon = document.createElement("img"); 252 cloudinessIcon.alt = 'Cloudiness' 246 253 cloudinessIcon.classList = "WIYCW-item-icon " + iconsColorClass 247 254 cloudinessIcon.src = widget.dataset.path + "/resources/icons/ui-icons/clouds.svg" … … 303 310 icon.classList = "WIYCW-forecast-icon WIYCW-col-1" 304 311 const img = document.createElement("img"); 312 img.alt = 'Forecast' 305 313 img.src = widget.dataset.path + "/resources/icons/weather-icons/"+ iconsColorPath + '/'+ day.icon + ".svg" 306 314 img.style.width = "30px" … … 315 323 316 324 const umbrellaIcon = document.createElement("img"); 325 umbrellaIcon.alt = 'Rain chance' 317 326 umbrellaIcon.classList = "WIYCW-item-icon " + iconsColorClass 318 327 umbrellaIcon.src = widget.dataset.path + "/resources/icons/ui-icons/umbrella.svg" … … 344 353 345 354 const arrowIcon = document.createElement("img"); 355 arrowIcon.alt = 'Wind direction' 346 356 arrowIcon.src = widget.dataset.path + "/resources/icons/ui-icons/arrow.svg" 347 357 arrowIcon.style.width = "11px" -
weather-in-any-city-widget/trunk/weather-in-any-city-widget.php
r3039208 r3039227 4 4 * Plugin URI: https://weatherin.org 5 5 * Description: Weather Widget Pro provides a complete weather forecast for any location around the world. 6 * Version: 1.1. 296 * Version: 1.1.30 7 7 * Author: El tiempo 8 8 * Author URI: https://eltiempoen.com … … 16 16 defined( 'ABSPATH' ) or die( 'ABSPATH not defined' ); 17 17 18 define ('WIYCW_VERSION', '1.1. 29');18 define ('WIYCW_VERSION', '1.1.30'); 19 19 define ('WIYCW_DEF_PLUGIN', 'weather-in-any-city-widget'); 20 20 define ('WIYCW_DEF_BASEURL', plugins_url('', __FILE__)); … … 819 819 $output .= "<div class='WIYCW-now-row1'>"; 820 820 if($instance['now_icon'] == "on"){ 821 $output .= "<div class='WIYCW-now-icon'><img style='visibility:hidden; width: 70px; height: 70px;'></div>";821 $output .= "<div class='WIYCW-now-icon'><img alt='Current weather' style='visibility:hidden; width: 70px; height: 70px;'></div>"; 822 822 } 823 823 … … 829 829 $output .= "<div class='WIYCW-now-row-info'>"; 830 830 if($instance['now_sunrise'] == "on"){ 831 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunrise.svg' style='width: 11px; height: 11px;'>-</div>";832 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunset.svg' style='width: 11px; height: 11px;'>-</div>";831 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunrise' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunrise.svg' style='width: 11px; height: 11px;'>-</div>"; 832 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Sunset' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/sunset.svg' style='width: 11px; height: 11px;'>-</div>"; 833 833 } 834 834 if($instance['now_humidity'] == "on"){ 835 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/dew-point.svg' style='width: 11px; height: 11px;'>-</div>";835 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Humidity'class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/dew-point.svg' style='width: 11px; height: 11px;'>-</div>"; 836 836 } 837 837 838 838 if($instance['now_wind'] == "on"){ 839 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg)'>-</div>";839 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Wind direction' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg)'>-</div>"; 840 840 } 841 841 842 842 if($instance['now_pressure'] == "on"){ 843 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/pressure.svg' style='width: 11px; height: 11px;'>-</div>";843 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Pressure' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/pressure.svg' style='width: 11px; height: 11px;'>-</div>"; 844 844 } 845 845 846 846 if($instance['now_cloudiness'] == "on"){ 847 $output .= "<div class='WIYCW-now-row-info-col'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/clouds.svg' style='width: 11px; height: 11px;'>-</div>";847 $output .= "<div class='WIYCW-now-row-info-col'><img alt='Cloudiness'class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/clouds.svg' style='width: 11px; height: 11px;'>-</div>"; 848 848 } 849 849 … … 863 863 } 864 864 if($instance['icon'] == "on"){ 865 $output .= "<div class='WIYCW-forecast-icon WIYCW-col-1'><img style='visibility:hidden; width: 30px; height: 30px;'></div>";865 $output .= "<div class='WIYCW-forecast-icon WIYCW-col-1'><img alt='Forecast' style='visibility:hidden; width: 30px; height: 30px;'></div>"; 866 866 } 867 867 if($instance['rainChance'] == "on"){ 868 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/umbrella.svg' style='width: 11px; height: 11px;'>-</div>";868 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Rain chance' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/umbrella.svg' style='width: 11px; height: 11px;'>-</div>"; 869 869 } 870 870 if($instance['wind'] == "on"){ 871 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg);'>-</div>";871 $output .= "<div class='WIYCW-forecast-pop WIYCW-col-1'><img alt='Wind direction' class='WIYCW-item-icon $iconColorClass' src='$baseURL/resources/icons/ui-icons/arrow.svg' style='width: 11px; height: 11px;transform: rotate(0deg);'>-</div>"; 872 872 } 873 873
Note: See TracChangeset
for help on using the changeset viewer.