diff --git a/js/p.js b/js/p.js index 3932121..7ad6f22 100644 --- a/js/p.js +++ b/js/p.js @@ -1,12 +1,12 @@ -function showPreview() { +function showPreview () { showCards(decodePermalink(get_url_vars)); - $("matomain").addEventListener("mouseover", removeAllDraggable, false); + $('matomain').addEventListener('mouseover', removeAllDraggable, false); } -function removeAllDraggable() { - const elems = document.querySelectorAll("div.toot"); +function removeAllDraggable () { + const elems = document.querySelectorAll('div.toot'); for (let i = 0; i < elems.length; i++) { - elems[i].removeAttribute("draggable"); + elems[i].removeAttribute('draggable'); } }