Skip to content

Commit

Permalink
feat: valdisere
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Nov 2, 2023
1 parent f3290a3 commit 728c4fd
Show file tree
Hide file tree
Showing 4 changed files with 3,156 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/resorts/valdisere/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
selector:
'.lift-status-pop-in:contains(Lifts) + .lifts-and-trails-subsection .lift-status-datum',
parse: {
name: '1',
status: {
child: '2/0/1',
attribute: 'fill',
fn: (s) => {
switch (s) {
case '#1ABC9C':
return 'open';
case '#ED2559':
return 'closed';
}
},
},
},
};
15 changes: 15 additions & 0 deletions lib/resorts/valdisere/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Val d'Isere",
"url": {
"host": "https://www.seevaldisere.com",
"pathname": "/lifts/status"
},
"tags": [
"France",
"Alps"
],
"ll": [
6.97732,
45.44627
]
}
3,080 changes: 3,080 additions & 0 deletions test/resorts/example/valdisere.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions test/resorts/valdisere.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const lifts = require('../lifts');

lifts('valdisere', 'html', {
Funival: 'open',
'Tph Olympique': 'closed',
'Tc Daille': 'closed',
'Tsd Bellevarde': 'closed',
'Tsd Borsat': 'closed',
'Tsd Loyes': 'closed',
'Tsd Marmottes': 'closed',
'Ts Fontaine': 'closed',
'Ts Grand Pre': 'closed',
'Ts Mont Blanc': 'closed',
'Tk Lanches': 'closed',
'Tk Slalom': 'closed',
'Tk Snowpark': 'closed',
'Tapis Carpe Diem': 'closed',
'Tph Fornet': 'closed',
'Tc Vallon': 'closed',
'Tsd Laisinant': 'closed',
'Tsd Pyramides': 'closed',
'Tk Col': 'closed',
'Tk Signal': 'closed',
'Tsd Cascades': 'closed',
'Ts Cema': 'closed',
'Tk Montets': 'closed',
'Tk Pays Desert': 'closed',
'Tc Solaise': 'closed',
'Tsd Glacier': 'closed',
'Tsd Leissieres': 'closed',
'Tsd Madeleine': 'closed',
'Tsd Manchet': 'closed',
'Ts Cugnai': 'closed',
'Ts Datcha': 'closed',
'Ts Rogoney': 'closed',
'Ts Village': 'closed',
'Tk 3000': 'closed',
'Tk Legettaz': 'closed',
'Tk Savonette': 'closed',
'Tapis Pim Pam': 'closed',
'Tapis Poum': 'closed',
});

0 comments on commit 728c4fd

Please sign in to comment.