liftie
Version:
Clean, simple, easy to read, fast ski resort lift status
15 lines (14 loc) • 346 B
JavaScript
export default {
// Can't use `.c-snowreportdetail__tablerowcontent@landscape` because the @ symbol breaks the selector
selector: '[class*="c-snowreportdetail__tablerowcontent@landscape"]',
parse: {
name: {
child: '1/0'
},
status: {
child: '0',
attribute: 'class',
regex: /o-status--(\w+)$/
}
}
};