Беременный
"; document.body.appendchild (div); window.addeventlistener ("scroll", (event) => { Пусть scroll = window.scroly; document.getElementbyId ('scroll-to-top'). style = (window.scroly> 250? "Display: block;": "Display: none;"); }); } } document.addeventlistener ("domcontentloaded", smb.init)