Skip to content

Commit

Permalink
refactor: ci test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hidao80 committed Jan 9, 2020
1 parent d8bd747 commit e59e1c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/p.js
Original file line number Diff line number Diff line change
@@ -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');
}
}

0 comments on commit e59e1c7

Please sign in to comment.