forked from 0x2620/oxjs
some documentation
This commit is contained in:
parent
275dcbb356
commit
bdb8d98787
45 changed files with 775 additions and 255 deletions
|
|
@ -4,7 +4,7 @@ Ox.load('UI', {
|
|||
}, function() {
|
||||
Ox.Theme('classic');
|
||||
$.getJSON(Ox.UI.PATH + 'json/Ox.UI.json', function(files) {
|
||||
Ox.DocPanel({
|
||||
doc = Ox.DocPanel({
|
||||
files: Ox.merge([
|
||||
'Ox.js',
|
||||
'Ox.Geo/Ox.Geo.js',
|
||||
|
|
@ -20,7 +20,18 @@ Ox.load('UI', {
|
|||
return item.section || file.split('/')[2];
|
||||
},
|
||||
path: Ox.PATH
|
||||
})
|
||||
.appendTo(Ox.UI.$body);
|
||||
}).bindEvent({
|
||||
load: function() {
|
||||
doc.selectItem(document.location.hash.substring(1));
|
||||
},
|
||||
select: function(data) {
|
||||
if(data.ids)
|
||||
document.location.hash = data.ids[0];
|
||||
}
|
||||
});
|
||||
doc.appendTo(Ox.UI.$body);
|
||||
window.onhashchange = function() {
|
||||
doc.selectItem(document.location.hash.substring(1))
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue