diff --git a/index.js b/index.js index 6451faed..000835e0 100644 --- a/index.js +++ b/index.js @@ -308,7 +308,7 @@ Ox.load(function() { size: [ /\{size\.(\w+)\}/g, function(match, key) { - return app.data.downloads ? ' (' + Ox.formatValue( + return app.data.downloads.size ? ' (' + Ox.formatValue( app.data.downloads.size[key], 'B' ) + ')' : ''; } @@ -319,11 +319,9 @@ Ox.load(function() { var version = app.data.downloads.version, current = 'You\'re currently running version ' + Ox.VERSION + '.', - latest = 'The latest version is ' + version + ' (' - + app.data.downloads.date - .replace('T', ' ') - .replace('Z', ' UTC') - + ').'; + latest = version ? 'The latest version is ' + version + + ' (' + app.data.downloads.date.slice(0, 10) + + ').' : ''; return version ? latest + ( /:\/\/oxjs.org\//.test(window.location.href) ? '' : version == Ox.VERSION ? ' You\'re up to date.' diff --git a/readme/index/about.html b/readme/index/about.html index 73ad5a14..81c991c4 100644 --- a/readme/index/about.html +++ b/readme/index/about.html @@ -1,6 +1,6 @@
TL;DR: OxJS is awesome — see it in action!
+TL;DR: OxJS is awesome — see it in action!
OxJS (pronounced oh-ex-jay-ess) is a comprehensive JavaScript library, originally developed for the media archive platform pan.do/ra. While it still has bugs, holes, design errors and lots of cruft, some parts of it may already be of interest to a wider audience.