Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button DeleteAll and inputs #44

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
</head>

<body class="px-4">
<header class="flex justify-between items-end mt-10">
<header class="flex justify-between items-end">
<h1 class="text-4xl tracking-tighter">Your Notes</h1>
<button onclick="deleteNotes()" class="px-3 py-1 border border-black text-2xl rounded">Delete All</button>
<button id="openDialogButton" class="px-3 py-1 border border-black text-2xl rounded">+</button>
<div class="flex flex-row gap-2 mt-10">
<button onclick="deleteNotes()" class="px-3 py-1 border border-black text-2xl rounded hover:text-red-500 transition-all">
<i class="fa-regular fa-trash-can fa-flip-horizontal"></i>
</button>
<button id="openDialogButton" class="px-3 py-1 border border-black text-2xl rounded hover:text-blue-500 transition-all">
+
</button>
</div>
</header>

<!-- Slider main container -->
Expand Down
2 changes: 2 additions & 0 deletions public/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ function editElement() {
}
// Cerrar el diálogo después de la edición
closeDialog();
title.value = '';
description.value = '';
}
Loading