MCPcopy Create free account
hub / github.com/hackmdio/codimd / updateLastChange

Function updateLastChange

public/js/extra.js:70–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68const ownerui = $('.ui-owner')
69
70export function updateLastChange () {
71 if (!window.lastchangeui) return
72 if (window.createtime) {
73 if (window.createtime && !window.lastchangetime) {
74 window.lastchangeui.status.text('created')
75 } else {
76 window.lastchangeui.status.text('changed')
77 }
78 const time = window.lastchangetime || window.createtime
79 window.lastchangeui.time.html(moment(time).fromNow())
80 window.lastchangeui.time.attr('title', moment(time).format('llll'))
81 }
82}
83setInterval(updateLastChange, 60000)
84
85window.lastchangeuser = null

Callers 3

pretty.jsFile · 0.90
updateInfoFunction · 0.90
slide.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected