mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Wide entry option. Name formatting.
This commit is contained in:
parent
85e41c28a3
commit
ae0b1d5717
@ -1630,6 +1630,7 @@ SLIDE
|
||||
FILE : 12018-05-03_slide.jpg
|
||||
TYPE : image
|
||||
DONE : true
|
||||
WIDE : true
|
||||
|
||||
VAN
|
||||
DATE : 12017-01-20
|
||||
|
@ -11,7 +11,7 @@
|
||||
<script src="logic/runic.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/viewmasonry.js"></script>
|
||||
<script src="logic/main.js"></script>
|
||||
|
@ -68,7 +68,11 @@ function ViewMasonry()
|
||||
let itemClass = "grid-item";
|
||||
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)
|
||||
{
|
||||
@ -83,7 +87,8 @@ function ViewMasonry()
|
||||
}
|
||||
|
||||
let entry = ``;
|
||||
// DIV
|
||||
|
||||
// ITEM DIV
|
||||
entry += `<div class="${itemClass}" id="${this.divNamePre + value.DIID}">`;
|
||||
|
||||
if (typeof value.LINK !== 'undefined')
|
||||
|
Loading…
Reference in New Issue
Block a user