Ox.load('UI', function() { var $ui = {}, items = []; renderUI(function() { loadJSON(function(files) { loadHTML(files, function() { renderList(); }); }); }); function loadJSON(callback) { Ox.getJSON('json/readme.json', callback); } function loadHTML(files, callback) { files.forEach(function(file) { Ox.get('html/' + file.name, function(html) { var match = html.match(/
(.+)<\/p>/);
items.push({
date: file.date,
file: file.name,
html: html,
title: match ? match[1] : file
});
items.length == files.length && callback(items);
});
});
}
function renderUI(callback) {
$ui.logo = $('').attr({href: 'https://oxjs.org'})
.append(
$('').attr({src: '../source/Ox/png/OxJS64.png'})
);
$ui.title = $('').attr({href: 'https://oxjs.org/#readme'})
.append(
$('