Skip to content

Commit

Permalink
Feat
Browse files Browse the repository at this point in the history
  • Loading branch information
eunkong0-0 committed May 28, 2024
1 parent b72c9bc commit 913a13d
Show file tree
Hide file tree
Showing 6,608 changed files with 17 additions and 695,482 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
webpack/node_modules
24 changes: 16 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,29 @@ async function displayEntries() {
info.innerText = `
${entry.title}
${entry.content}
by ${entry.writer}
${entry.created_at}
`;

const delButton = document.createElement('button');
delButton.className = 'delBtn';
delButton.innerText = '삭제';

delButton.addEventListener('click', async () => {
const inputPassword = prompt('비밀번호를 입력하세요:');
if (inputPassword === entry.password) {
await fetch(`${baseURL}/${entry.id}/`, { method: "DELETE" });
displayEntries();
} else {
alert('비밀번호가 틀렸습니다.');
// console.log(`입력된 비밀번호: ${inputPassword}, 저장된 비밀번호: ${entry.password}`);
}
const inputPassword = prompt('비밀번호를 입력하세요:')
try {await fetch(`${baseURL}${entry.id}/`, {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"password" : inputPassword,
}),
});
displayEntries();}
catch(error) {
console.log(error);
}
});

list.appendChild(num);
Expand Down
Empty file removed webpack/build.js
Empty file.
Empty file removed webpack/dist/main.js
Empty file.
16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/acorn

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/acorn.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions webpack/node_modules/.bin/acorn.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/browserslist

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/browserslist.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions webpack/node_modules/.bin/browserslist.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/envinfo

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/envinfo.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions webpack/node_modules/.bin/envinfo.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/flat

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/flat.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions webpack/node_modules/.bin/flat.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/import-local-fixture

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/import-local-fixture.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions webpack/node_modules/.bin/import-local-fixture.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions webpack/node_modules/.bin/jsesc

This file was deleted.

17 changes: 0 additions & 17 deletions webpack/node_modules/.bin/jsesc.cmd

This file was deleted.

Loading

0 comments on commit 913a13d

Please sign in to comment.