html-ui.time-script
- 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 dt2aPjQUrIkBOz-2trTI6JX-dnOvCsvqp9O2GMbdWn8)
id: Fl1b6yKYXbSbp3n_FiA4YMSyxvBUF9kxKXq5A2jZig0
content hash: ydLVEfBk1b0ag_pAG-pCUvZRnOhKkF1Tj6AAHiMklQA