odstranění nefunkčních tlačítek,úprava placeholder,vytvoření dokumentace, úprava readme

This commit is contained in:
kankys 2025-05-30 23:36:19 +02:00
parent 475fe9c8d4
commit 1b0b3d5e5c
3 changed files with 31 additions and 22 deletions

View File

@ -9,3 +9,5 @@ Aplikace ukládá vaše poznámky vnořením do sebe.
Aplikace Mozkovna funguje lokálně ve vašem PC s možností importu poznámek do JSONu nebo *Browser edition* ukládá poznámky ve vašem prohlížeči.
Máte plnou kontrolu nad svými daty!!

7
docs_mozkovna.md Normal file
View File

@ -0,0 +1,7 @@
* Dokumentace k aplikaci Mozkovna
1. Stáhni si soubor index.html
2. Otevři aplikaci ve svém oblíbeném prohlížeči.
3.

View File

@ -106,30 +106,30 @@
deleteButton.className = 'p-1 rounded hover:bg-red-100';
deleteButton.onclick = () => deleteNoteWithChildren(note.createdAt, notesMap);
const indentButton = document.createElement('button');
indentButton.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-blue-500 hover:text-blue-700">
<polyline points="15 18 21 12 15 6"></polyline><polyline points="3 18 9 12 3 6"></polyline>
</svg>
<span class="sr-only">Odsadit</span>`;
indentButton.title = "Odsadit (učinit podúkolem předchozího sourozence)";
indentButton.className = 'p-1 rounded hover:bg-blue-100';
indentButton.onclick = () => indentNote(note.createdAt, notesMap);
// const indentButton = document.createElement('button');
// indentButton.innerHTML = `
// <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-blue-500 hover:text-blue-700">
// <polyline points="15 18 21 12 15 6"></polyline><polyline points="3 18 9 12 3 6"></polyline>
// </svg>
// <span class="sr-only">Odsadit</span>`;
// indentButton.title = "Odsadit (učinit podúkolem předchozího sourozence)";
// indentButton.className = 'p-1 rounded hover:bg-blue-100';
// indentButton.onclick = () => indentNote(note.createdAt, notesMap);
const outdentButton = document.createElement('button');
outdentButton.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-purple-500 hover:text-purple-700">
<polyline points="9 18 3 12 9 6"></polyline><polyline points="21 18 15 12 21 6"></polyline>
</svg>
<span class="sr-only">Předsadit</span>`;
outdentButton.title = "Předsadit (stát se sourozencem rodiče)";
outdentButton.className = 'p-1 rounded hover:bg-purple-100';
outdentButton.onclick = () => outdentNote(note.createdAt, notesMap);
if (!note.parentId) outdentButton.disabled = true;
// const outdentButton = document.createElement('button');
// outdentButton.innerHTML = `
// <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-purple-500 hover:text-purple-700">
// <polyline points="9 18 3 12 9 6"></polyline><polyline points="21 18 15 12 21 6"></polyline>
// </svg>
// <span class="sr-only">Předsadit</span>`;
// outdentButton.title = "Předsadit (stát se sourozencem rodiče)";
// outdentButton.className = 'p-1 rounded hover:bg-purple-100';
// outdentButton.onclick = () => outdentNote(note.createdAt, notesMap);
// if (!note.parentId) outdentButton.disabled = true;
controlsDiv.appendChild(addChildButton);
controlsDiv.appendChild(indentButton);
controlsDiv.appendChild(outdentButton);
// controlsDiv.appendChild(indentButton);
// controlsDiv.appendChild(outdentButton);
controlsDiv.appendChild(deleteButton);
li.appendChild(textSpan);
@ -299,7 +299,7 @@
<div id="saveStatus" class="text-sm text-center mb-2 hidden transition-all duration-300"></div>
<div class="mb-6 flex items-center gap-3">
<input type="text" id="newNoteInput" placeholder="Napsat novou hlavní poznámku..."
<input type="text" id="newNoteInput" placeholder="Napsat novou poznámku..."
class="flex-grow p-3 border border-slate-300 rounded-lg shadow-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-shadow">
<button id="addNoteButton"
class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-150 ease-in-out disabled:opacity-50 disabled:cursor-not-allowed">