MCPcopy
hub / github.com/ampproject/amphtml / liveListReplace

Function liveListReplace

build-system/server/app.js:631–636  ·  view source on GitHub ↗

* @param {Element} item

(item)

Source from the content-addressed store, hash-verified

629 * @param {Element} item
630 */
631function liveListReplace(item) {
632 item.setAttribute('data-update-time', Date.now().toString());
633 const itemContents = item.querySelectorAll('.content');
634 itemContents[0].textContent = Math.floor(Math.random() * 10).toString();
635 itemContents[1].textContent = Math.floor(Math.random() * 10).toString();
636}
637
638/**
639 * @param {Element} liveList

Callers 1

app.jsFile · 0.85

Calls 3

nowMethod · 0.80
setAttributeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected