update guide

This commit is contained in:
Luke Pulverenti 2017-01-08 00:52:51 -05:00
parent f5a9a7c6bf
commit e5119016fc
17 changed files with 202 additions and 95 deletions

View file

@ -323,9 +323,20 @@
});
}
var instance;
function onViewShow(e) {
if (e.detail.type === 'video-osd') {
instance.hide();
} else {
instance.show();
}
}
function dockedTabs(options) {
var self = this;
instance = self;
self.element = render(options);
@ -339,9 +350,14 @@
});
showCurrentUserTabs(self.element);
document.addEventListener('viewshow', onViewShow);
}
dockedTabs.prototype.destroy = function () {
document.removeEventListener('viewshow', onViewShow);
instance = null;
var self = this;
var elem = self.element;
@ -350,5 +366,13 @@
self.element = null;
};
dockedTabs.prototype.show = function () {
this.element.classList.remove('hide');
};
dockedTabs.prototype.hide = function () {
this.element.classList.add('hide');
};
return dockedTabs;
});