forked from 0x2620/oxjs
add home button to doc page and example page
This commit is contained in:
parent
3286d80b40
commit
ba1a3c4b2a
4 changed files with 47 additions and 15 deletions
|
|
@ -113,17 +113,23 @@ Ox.ExamplePanel = function(options, self) {
|
|||
item = Ox.getObjectById(self.items, id);
|
||||
self.$panel.replaceElement(1,
|
||||
self.$page = Ox.ExamplePage({
|
||||
height: window.innerHeight,
|
||||
html: item.html,
|
||||
js: item.js,
|
||||
references: item.references,
|
||||
replaceCode: self.options.replaceCode,
|
||||
replaceComment: self.options.replaceComment,
|
||||
title: item.title,
|
||||
width: window.innerWidth - self.options.size
|
||||
})
|
||||
height: window.innerHeight,
|
||||
html: item.html,
|
||||
js: item.js,
|
||||
references: item.references,
|
||||
replaceCode: self.options.replaceCode,
|
||||
replaceComment: self.options.replaceComment,
|
||||
title: item.title,
|
||||
width: window.innerWidth - self.options.size
|
||||
})
|
||||
.bindEvent({
|
||||
close: function() {
|
||||
selectItem();
|
||||
}
|
||||
})
|
||||
);
|
||||
} else {
|
||||
self.$list.options({selected: []});
|
||||
self.$page.empty().append(self.options.element);
|
||||
}
|
||||
self.options.selected = id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue