mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Added div IDs.
This commit is contained in:
parent
5d8f9d96d5
commit
126f9f2aac
@ -11,6 +11,7 @@ function Main()
|
||||
// SETTINGS
|
||||
this.useMasonry = true;
|
||||
this.postPerPage = 1000;
|
||||
this.divNamePre = 'item';
|
||||
|
||||
// MAIN
|
||||
this.install = function()
|
||||
@ -124,6 +125,8 @@ function Main()
|
||||
|
||||
this.database[dbKeys[i]].TAGS = tags;
|
||||
}
|
||||
|
||||
this.database[dbKeys[i]].DIID = i;
|
||||
}
|
||||
console.log(this.database);
|
||||
}
|
||||
@ -168,7 +171,8 @@ function Main()
|
||||
this.buildEntry = function(db, key)
|
||||
{
|
||||
let value = db[key];
|
||||
let entry = `<div class="grid-item">`;
|
||||
|
||||
let entry = `<div class="grid-item" id="${this.divNamePre + db[key].DIID}">`;
|
||||
entry += `<div class="title">${key.to_properCase()}</div>`;
|
||||
|
||||
// LINK
|
||||
|
Loading…
Reference in New Issue
Block a user