mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 17:19:30 -07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a5548d135 | ||
|
|
11c826a2af | ||
|
|
7a129c1cd3 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.19.2",
|
"version": "5.19.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.19.2",
|
"version": "5.19.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^16.5.0",
|
"dotenv": "^16.5.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.19.2",
|
"version": "5.19.3",
|
||||||
"description": "Welcome to the WeatherStar 4000+ project page!",
|
"description": "Welcome to the WeatherStar 4000+ project page!",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -109,9 +109,6 @@ const init = () => {
|
|||||||
document.querySelector('#spanRadarId').innerHTML = '';
|
document.querySelector('#spanRadarId').innerHTML = '';
|
||||||
document.querySelector('#spanZoneId').innerHTML = '';
|
document.querySelector('#spanZoneId').innerHTML = '';
|
||||||
|
|
||||||
document.querySelector('#chkAutoRefresh').checked = true;
|
|
||||||
localStorage.removeItem('autoRefresh');
|
|
||||||
|
|
||||||
localStorage.removeItem('play');
|
localStorage.removeItem('play');
|
||||||
postMessage('navButton', 'play');
|
postMessage('navButton', 'play');
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class LocalForecast extends WeatherDisplay {
|
|||||||
forecastsElem.append(...templates);
|
forecastsElem.append(...templates);
|
||||||
|
|
||||||
// increase each forecast height to a multiple of container height
|
// increase each forecast height to a multiple of container height
|
||||||
this.pageHeight = forecastsElem.parentNode.scrollHeight;
|
this.pageHeight = forecastsElem.parentNode.offsetHeight;
|
||||||
templates.forEach((forecast) => {
|
templates.forEach((forecast) => {
|
||||||
const newHeight = Math.ceil(forecast.scrollHeight / this.pageHeight) * this.pageHeight;
|
const newHeight = Math.ceil(forecast.scrollHeight / this.pageHeight) * this.pageHeight;
|
||||||
forecast.style.height = `${newHeight}px`;
|
forecast.style.height = `${newHeight}px`;
|
||||||
|
|||||||
Reference in New Issue
Block a user