forked from 0x2620/oxjs
some more documentation; reimplement Ox.range using Ox.loop
This commit is contained in:
parent
ae80b6db54
commit
8c4bc3b415
5 changed files with 305 additions and 243 deletions
|
|
@ -8,10 +8,12 @@ Ox.DocPage = function(options, self) {
|
|||
.options(options || {})
|
||||
.addClass('OxText')
|
||||
.css({
|
||||
width: '640px'
|
||||
width: '640px',
|
||||
height: '400px',
|
||||
overflow: 'auto'
|
||||
});
|
||||
|
||||
$('body').css('overflowY', 'auto')
|
||||
$('body').css('overflowY', 'scroll')
|
||||
|
||||
that.append($('<h1>').append('<code>' + self.options.doc.name + '</code>'));
|
||||
|
||||
|
|
@ -85,12 +87,12 @@ Ox.DocPage = function(options, self) {
|
|||
.addClass(className)
|
||||
.css({marginLeft: ((level * 32 + 32) + 'px')})
|
||||
.html(
|
||||
'<code><b>></b> ' +
|
||||
'<code><b>> ' +
|
||||
Ox.encodeHTML(example.statement)
|
||||
//example.statement
|
||||
.replace(/ /g, ' ')
|
||||
.replace(/\n/g, '<br/>\n ') +
|
||||
'</code>'
|
||||
'</b></code>'
|
||||
)
|
||||
);
|
||||
example.result && $elements.push($('<div>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue