I’m seeing a lot of warning messages in the error log:
“Warning: Cannot modify header information – headers already sent in?/home1/<redacted>/public_html/staging/wp-content/plugins/another-show-hooks/another-show-hooks.php on line 95
Basically setcookie() should be used before any output.
]]>Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
?
See screenshot below ??
?
]]>const wrapper = document.querySelector("#ash-dragable-hook-panel"); if (wrapper) { const header = wrapper.querySelector(".ash-show-move-window"); function onDrag({movementX, movementY}){ let getStyle = window.getComputedStyle(wrapper); let leftVal = parseInt(getStyle.left); let topVal = parseInt(getStyle.top); wrapper.style.left =
${leftVal + movementX}px
; wrapper.style.top =${topVal + movementY}px
; } header.addEventListener("mousedown", ()=>{ header.classList.add("ash_active"); header.addEventListener("mousemove", onDrag); }); document.addEventListener("mouseup", ()=>{ header.classList.remove("ash_active"); header.removeEventListener("mousemove", onDrag); }); }
Can I use this to find the hook so I can round up all the prices in the shop?
I want 99.80 and also 99.40 to round up for 100
How can I do it?