Wide entry option. Name formatting.

This commit is contained in:
kor 2018-07-19 01:06:29 +12:00
parent 85e41c28a3
commit ae0b1d5717
3 changed files with 9 additions and 3 deletions

View File

@ -1630,6 +1630,7 @@ SLIDE
FILE : 12018-05-03_slide.jpg FILE : 12018-05-03_slide.jpg
TYPE : image TYPE : image
DONE : true DONE : true
WIDE : true
VAN VAN
DATE : 12017-01-20 DATE : 12017-01-20

View File

@ -11,7 +11,7 @@
<script src="logic/runic.js"></script> <script src="logic/runic.js"></script>
<script src="logic/indental.js"></script> <script src="logic/indental.js"></script>
<script src="content/Memex.ndtl"></script> <script src="content/memex.ndtl"></script>
<script src="logic/datawrap.js"></script> <script src="logic/datawrap.js"></script>
<script src="logic/viewmasonry.js"></script> <script src="logic/viewmasonry.js"></script>
<script src="logic/main.js"></script> <script src="logic/main.js"></script>

View File

@ -68,7 +68,11 @@ function ViewMasonry()
let itemClass = "grid-item"; let itemClass = "grid-item";
if (this.doDoubleWide) if (this.doDoubleWide)
{ {
if (typeof value.QOTE !== 'undefined') if (typeof value.WIDE !== 'undefined' && value.WIDE)
{
itemClass += " grid-item--width2";
}
else if (typeof value.QOTE !== 'undefined')
{ {
if (Array.isArray(value.QOTE) && value.QOTE.length > 4) if (Array.isArray(value.QOTE) && value.QOTE.length > 4)
{ {
@ -83,7 +87,8 @@ function ViewMasonry()
} }
let entry = ``; let entry = ``;
// DIV
// ITEM DIV
entry += `<div class="${itemClass}" id="${this.divNamePre + value.DIID}">`; entry += `<div class="${itemClass}" id="${this.divNamePre + value.DIID}">`;
if (typeof value.LINK !== 'undefined') if (typeof value.LINK !== 'undefined')