What do you want to save?
Add Code snippet
New code examples
-
Html 2021-09-14 17:15:02
zoom html code
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * {box-sizing: border-box;} .img-zoom-container { position: relative; } .img-zoom-lens { p... Add solution -
Javascript 2021-09-11 06:19:02
JavaScript after
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement("... Add solution -
Javascript 2021-09-07 10:22:02
js unwrap element
// select element to unwrapvar el = document.querySelector('div'); // get the element's parent nodevar parent = el.parentNode; // move all children out of the elementwhile (el.firstChild) parent.insertBefore(el.firstChild, el); // remove the empty element... Add solution
Best helpers
Ranking is empty