As you have seen, both Node.js and PHP have their good and bad parts. If so, how do we make the right choice? It’s possible if we leverage our knowledge of both environment’s ...
function createSticky(sticky) { if (typeof sticky == undefined) return; var pos = sticky.getBoundingClientRect().top; window.addEventListener("scroll", function(...
How can I set up a custom css property with js? (I already tried with el.style["myprop"] but it didn't work)
Array.from(u[i].children).forEach(items => { items.slice(1, -2).style.backgroundColor = "salmon"; }); rightly so?
function createSticky(sticky) { if (typeof sticky == undefined) return; var pos = sticky.offsetTop, win = window; win.addEventListener("scroll", function() { win.s...
jquery documentation says: selector Type: String A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitte...
what is the purpose of this if? is checking if the element exists (dom element)?
The console returns Uncaught TypeError: Cannot set property 'backgroundColor' of undefined on first line: Array.from(...), what I'm wrong? jquery demo | pure js
what is better between github and gitlab?
so what should I do? keep saying "no" is useless
$("#myelement").on("click", "li", handler); document.querySelectorAll("#myelement li").forEach(handler); are these snippets identical?
Is MDN reliable for browser compatibility of a method? I trust more than caniuse.com but I would like to know if mdn is a more or less secure source from which to establish th...
only 5,3mb?
for (let e of u[i].children) Array.from(e).slice(1, -2).style.backgroundColor = "salmon"; rightly so?
is it possible to do "myArr.pop().push("val1", "val2")"?
$("#myelement").on("click", "li", handler); So how would it come in js vanilla?
this could help you https://docs.microsoft.com/en-us/exchange/plan-and-deploy/post-installation-tasks/configure-mail-flow-and-client-access?view=exchserver-2019
1) In an ajax request to a json file is it necessary to specify the "application/json" header? 2) Is it enough to set the header or do I have to enter responseType = "json" as...
how to optimize the fonts loading from fonts.googleapis.com?
is there a method in pure js that reproduces the .parents() method?