Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
25 lines
486 B
JavaScript
Executable file
25 lines
486 B
JavaScript
Executable file
'use strict';
|
|
|
|
var WeekView = require('./week'),
|
|
DayEvent = require('./day_event');
|
|
|
|
function Day() {
|
|
WeekView.apply(this, arguments);
|
|
}
|
|
module.exports = Day;
|
|
|
|
Day.prototype = {
|
|
__proto__: WeekView.prototype,
|
|
|
|
selector: '#day-view',
|
|
|
|
get activeDay() {
|
|
return this.findElement('.md__day[aria-hidden="false"]');
|
|
},
|
|
|
|
get events() {
|
|
return this.activeDay.findElements('.md__event').map(function(el) {
|
|
return new DayEvent(this.client, el);
|
|
}, this);
|
|
}
|
|
};
|