-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal.js
29 lines (23 loc) · 846 Bytes
/
modal.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var stored = chrome.storage.local.get('shownItems', function (items) {
var div=document.createElement("div");
document.body.appendChild(div);
div.innerText=items.shownItems;
console.log(items);
});
// var div=document.createElement("div");
// document.body.appendChild(div);
// div.innerText='1234';
// const modal = document.querySelector(".modal");
// const trigger = document.querySelector(".trigger");
// const closeButton = document.querySelector(".close-button");
// function toggleModal() {
// modal.classList.toggle("show-modal");
// }
// function windowOnClick(event) {
// if (event.target === modal) {
// toggleModal();
// }
// }
// trigger.addEventListener("click", toggleModal);
// closeButton.addEventListener("click", toggleModal);
// window.addEventListener("click", windowOnClick);