Explorer

html-ui.time-script

As of snapshot DF5k8nCc9J. See the latest

description
(en) A small script that writes the times of the elements with data-ms (ms since 1970) in the local format of the browser
type
@html.node
expression
@html.element(
  name: "script",
  attributes: [],
  children: [
    @html.text(
      text: "for(const e of document.querySelectorAll('[data-ms]'))e.textContent=new Date(+e.dataset.ms).toLocaleString(document.documentElement.lang)"
    )
  ]
)
visibility
public
html-ui.time-script (project html-ui, branch remove-deploy-button, snapshot DF5k8nCc9JE9bLtcFxvjmijDXbsmpCopMRxqClLQ3Mc)
id: Fl1b6yKYXbSbp3n_FiA4YMSyxvBUF9kxKXq5A2jZig0
content hash: ydLVEfBk1b0ag_pAG-pCUvZRnOhKkF1Tj6AAHiMklQA