NV
Size: a a a
NV
NV
<div class="section white" data-header-text="black"></div>
S
<div class="section white" data-header-text="black"></div>
NV
cb = (entries) => {
entries.forEach((entry) => {
const headerTextClass = entry.getAttribute('data-header-text')
if (entry.isIntersecting) {
header.classList.add(headerTextClass)
} else {
header.classList.remove(headerTextClass)
}
})
}
NV
А
c
А
А
А
VA
VA
А
NV
BB
BB
ДО
☻function watchChanges(dir) {
watch(dir)
function watch(dir, lastTimestamp) {
console.log("watch tick")
getTimestampForFilesInDirectory(dir).then(timestamp => {
if (!lastTimestamp || (lastTimestamp === timestamp)) {
setTimeout(() => watch(dir, timestamp), 1000)
} else {
reload()
}
})
}
}
S
☻function watchChanges(dir) {
watch(dir)
function watch(dir, lastTimestamp) {
console.log("watch tick")
getTimestampForFilesInDirectory(dir).then(timestamp => {
if (!lastTimestamp || (lastTimestamp === timestamp)) {
setTimeout(() => watch(dir, timestamp), 1000)
} else {
reload()
}
})
}
}
Я