Compare commits

..

4 Commits

Author SHA1 Message Date
Matt Walsh
3c7a77e200 5.13.6 2025-02-23 21:07:55 -06:00
Matt Walsh
d472df2e26 fix hazards don't fully scroll close #62 2025-02-23 21:07:34 -06:00
Matt Walsh
fdbf11dcd4 update dependencies 2025-02-23 20:57:06 -06:00
Matt Walsh
b7e9091320 capture distribution 2025-01-06 22:07:51 -06:00
6 changed files with 2038 additions and 1557 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3574
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "ws4kp",
"version": "5.13.5",
"version": "5.13.6",
"description": "Welcome to the WeatherStar 4000+ project page!",
"main": "index.js",
"scripts": {
@@ -20,7 +20,7 @@
},
"homepage": "https://github.com/netbymatt/ws4kp#readme",
"devDependencies": {
"del": "^7.1.0",
"del": "^8.0.0",
"jquery": "^3.6.0",
"jquery-touchswipe": "^1.6.19",
"luxon": "^3.0.0",
@@ -38,7 +38,7 @@
"gulp-ejs": "^5.1.0",
"gulp-htmlmin": "^5.0.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^5.1.0",
"gulp-sass": "^6.0.0",
"gulp-terser": "^2.0.0",
"terser-webpack-plugin": "^5.3.6",
"webpack-stream": "^7.0.0",

View File

@@ -122,7 +122,7 @@ class Hazards extends WeatherDisplay {
// base count change callback
baseCountChange(count) {
// calculate scroll offset and don't go past end
let offsetY = Math.min(this.elem.querySelector('.hazard-lines').getBoundingClientRect().height - 390, (count - 150));
let offsetY = Math.min(this.elem.querySelector('.hazard-lines').offsetHeight - 390, (count - 150));
// don't let offset go negative
if (offsetY < 0) offsetY = 0;

View File

@@ -51,12 +51,15 @@
"[html]": {
"editor.defaultFormatter": "j69.ejs-beautify"
},
"files.exclude": {},
"files.exclude": {
"**/node_modules": true,
"**/debug.log": true,
"server/scripts/custom.js": true
},
"files.eol": "\n",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
}