Skip to content

Commit

Permalink
feat: Campo Felice
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Dec 18, 2023
1 parent 3a5bf82 commit 2ff587a
Show file tree
Hide file tree
Showing 4 changed files with 742 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/resorts/campo-felice/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
selector: 'table:contains("IMPIANTO") tbody tr',
parse: {
name: '1',
status: {
child: '3',
fn: (s) => {
switch (s) {
case 'APERTA':
return 'open';
case 'CHIUSA':
return 'closed';
}
},
},
},
};
16 changes: 16 additions & 0 deletions lib/resorts/campo-felice/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Campo Felice",
"url": {
"host": "https://www.campofelice.it",
"pathname": "/ita/impianti.php"
},
"tags": [
"Italy",
"Appennines",
"Abruzzo"
],
"ll": [
13.460177207717742,
42.21372813629604
]
}
19 changes: 19 additions & 0 deletions test/resorts/campo-felice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const lifts = require('../lifts');

lifts('campo-felice', 'html', {
'Seggiovia Brecciara': 'closed',
'Seggiovia Monterotondo': 'closed',
'Seggiovia Campo Felice': 'closed',
'Seggiovia Cisterna': 'closed',
'Seggiovia Nibbio': 'closed',
'Seggiovia Scuola': 'closed',
'Seggiovia Cerchiare': 'closed',
'Skilift Pista Dick': 'closed',
'Seggiovia Colle Sinistro': 'closed',
'Seggiovia Colle Destro': 'closed',
'Manovia Baby Campo Felice': 'closed',
'Tappeto Innamorati': 'closed',
'Skilift Snow Park': 'closed',
'Tappeto scuola (Snow Tubing)': 'closed',
'Tappeto Scuola Campo Felice': 'closed',
});
Loading

0 comments on commit 2ff587a

Please sign in to comment.