marqueeContent.appendChild(marqueeContent.children[i].cloneNode(true));
function resizeElement() {
jQuery(document).ready(function() {
const root = document.documentElement;
const marqueeElementsDisplayed = getComputedStyle(root).getPropertyValue("--marquee-elements-displayed");
const marqueeContent = document.querySelector("ul.marquee-content");
root.style.setProperty("--marquee-elements", marqueeContent.children.length);
/*
это нафиг
for(let i=0; i<marqueeElementsDisplayed; i++) {
marqueeContent.appendChild(marqueeContent.children[i].cloneNode(true));
}
*/
});
}
window.addEventListener("resize", resizeElement);
resizeElement()
@media (min-width: 600px) and (max-width: 800px) {
/* CSS-стили */;
}
от 600 до 800 пикселей включительно.and (orientation: landscape)
или and (orientation: portrait)
if (mutation.type == 'childList') {
console.log('A child node has been added or removed.');
}
if (long && !isNaN(+long) && lat && !isNaN(+lat) && name) { ... }
import debounce from "lodash/debounce";
const TIME_OUT = 1000;
const handleSearch = debounce(({ target: { value } = {} }) => {
//что-то делаем
}, TIME_OUT)
$yourInput.addEventListener("input", handleSearch, false);