Skip to content

Commit

Permalink
feat: Ravascletto/Zoncolan
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Oct 23, 2023
1 parent 198c379 commit cfcec1c
Show file tree
Hide file tree
Showing 4 changed files with 1,559 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/resorts/ravascletto-zoncolan/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const toTitleCase = require('to-title-case');

module.exports = {
// Can't use `.c-snowreportdetail__tablerowcontent@landscape` because the @ symbol breaks the selector
selector: '[class*="c-snowreportdetail__tablerowcontent@landscape"]',
parse: {
name: {
child: '1/0',
fn: toTitleCase,
},
status: {
child: '0',
attribute: 'class',
regex: /o\-status\-\-(\w+)$/,
fn: (s) => {
switch (s) {
case 'close':
return 'closed';
case 'open':
return 'open';
}
},
},
},
};
16 changes: 16 additions & 0 deletions lib/resorts/ravascletto-zoncolan/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Ravascletto/Zoncolan",
"url": {
"host": "https://www.turismofvg.it",
"pathname": "/montagna/infoneve?hub=zoncolan&day=today&type=4"
},
"tags": [
"Italy",
"Alps",
"Friuli Venezia Giulia"
],
"ll": [
12.92393,
46.52506
]
}
Loading

0 comments on commit cfcec1c

Please sign in to comment.