diff --git a/docs/content/data.ndtl b/docs/content/data.ndtl index e18d934..42ab377 100644 --- a/docs/content/data.ndtl +++ b/docs/content/data.ndtl @@ -4052,4 +4052,19 @@ ANTI-FRAGILITY LINK > https://www.youtube.com/watch?v=uWYYbRxWS7Q&index=1&list=WL > https://en.wikipedia.org/wiki/Antifragility - TAGS : antifragile \ No newline at end of file + TAGS : antifragile + +METAPHASES + DATE : 12018-10-30 + TYPE : music + AUTH : kodedninja + LINK : https://0x22.bandcamp.com/album/metaphases + TAGS : ambient, calm + +ORKL + DATE : 12018-10-29 + TYPE : tool + AUTH : kodedninja + LINK : https://github.com/kodedninja/orkl + NOTE : reference for memex loading (spinner) + TAGS : p2p, dat, blog \ No newline at end of file diff --git a/docs/logic/view.js b/docs/logic/view.js index 3e5ceb0..bc6f370 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -78,14 +78,18 @@ function View() imgLoad.on( 'always', function() { parent.msnry.layout(); } ); } + this.isDefined = function(value) + { + return (typeof value !== 'undefined'); + } + this.buildEntry = function(db, key) { let value = db[key]; - let itemClass = "griditem"; if (SETTINGS.WIDEGRIDITEM) { - if (typeof value.WIDE !== 'undefined' && value.WIDE) + if (this.isDefined(value.WIDE) && value.WIDE) { itemClass += " griditem-wide"; } @@ -100,7 +104,7 @@ function View() if (SETTINGS.SHOWIMAG) { - if (typeof value.TYPE !== 'undefined' && value.TYPE == 'image') + if (this.isDefined(value.TYPE) && value.TYPE == 'image') { itemClass += " griditem-image"; } @@ -110,11 +114,10 @@ function View() // ITEM DIV entry += `