We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93f0db commit e39d278Copy full SHA for e39d278
public/javascript/script.js
@@ -113,7 +113,7 @@ const queryDB = () => {
113
// contenteditable
114
var date_diff = countDown(cursor.value.created_at)
115
var ago = []
116
- date_diff.days > 0 ? ago[0] = (date_diff.days + "d") : date_diff.hours > 0 ? ago[1] = (date_diff.hours + "h") : date_diff.minutes > 0 ? ago[2] = (date_diff.seconds + "m") : ago[2] = "now"
+ date_diff.days > 0 ? ago[0] = (date_diff.days + "d") : date_diff.hours > 0 ? ago[1] = (date_diff.hours + "h") : date_diff.minutes > 0 ? ago[2] = (date_diff.minutes + "m") : ago[2] = "now"
117
console.log(ago)
118
html = `<div class="column note" id="${cursor.key}" onclick='showNote(this)'>
119
<h2>${marked(cursor.value.title)}</h2>
0 commit comments