Skip to content

Commit

Permalink
refactor: removeAllDraggableはもはや呼ばれない
Browse files Browse the repository at this point in the history
  • Loading branch information
yumetodo committed Jan 25, 2020
1 parent f3effd5 commit c4c8f57
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions js/p.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
import * as impl from "./common.js";
function $(id) {
return document.getElementById(id);
}

function showPreview() {
impl.showCards(impl.decodePermalink(new URLSearchParams(location.search)));
$("matomain").addEventListener("mouseover", removeAllDraggable, false);
}

function removeAllDraggable() {
const elems = document.querySelectorAll("div.toot");

for (let i = 0; i < elems.length; i++) {
elems[i].removeAttribute("draggable");
}
}
impl.ready(() => {
showPreview();
impl.showCards(impl.decodePermalink(new URLSearchParams(location.search))).catch(err => console.error(err));
});

0 comments on commit c4c8f57

Please sign in to comment.