Changes to notescroll.scroll.pub

root
root
22 days ago
Initial commit
body.html
Changed around line 1
+
+

NoteScroll

+
+
+
+
+
+
+
+
+
+
+
+
+
+

Your notes are stored locally in your browser.

+
+
+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://notescroll.scroll.pub
+ metaTags
+ editButton /edit.html
+ title NoteScroll - Your Local Notion Alternative
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "3aa9c524-9865-44c5-af00-2525ccb821ff",
+ "object": "chat.completion",
+ "created": 1735626639,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nnotescroll.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://notescroll.scroll.pub\nmetaTags\neditButton /edit.html\ntitle NoteScroll - Your Local Notion Alternative\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

NoteScroll

\n \n
\n\n
\n
\n \n
\n
\n\n
\n

Your notes are stored locally in your browser.

\n
\n\n\n---style.css---\n:root {\n --primary-color: #2563eb;\n --background-color: #f8fafc;\n --card-color: #ffffff;\n --text-color: #1e293b;\n --shadow: 0 1px 3px rgba(0,0,0,0.12);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n padding: 1rem;\n}\n\nheader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 2rem;\n}\n\nh1 {\n font-size: 2rem;\n color: var(--primary-color);\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n cursor: pointer;\n transition: opacity 0.2s;\n}\n\nbutton:hover {\n opacity: 0.9;\n}\n\n#notesGrid {\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n}\n\n.note-card {\n background-color: var(--card-color);\n border-radius: 0.5rem;\n padding: 1rem;\n box-shadow: var(--shadow);\n transition: transform 0.2s;\n}\n\n.note-card:hover {\n transform: translateY(-2px);\n}\n\n.note-title {\n font-size: 1.25rem;\n margin-bottom: 0.5rem;\n}\n\n.note-content {\n min-height: 100px;\n}\n\n.note-actions {\n display: flex;\n gap: 0.5rem;\n margin-top: 1rem;\n}\n\n@media (max-width: 768px) {\n #notesGrid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const notesGrid = document.getElementById('notesGrid');\n const newNoteBtn = document.getElementById('newNote');\n const toggleViewBtn = document.getElementById('toggleView');\n const noteTemplate = document.getElementById('noteTemplate').content;\n\n // Load saved notes from localStorage\n loadNotes();\n\n newNoteBtn.addEventListener('click', createNewNote);\n toggleViewBtn.addEventListener('click', toggleView);\n\n function createNewNote() {\n const noteClone = document.importNode(noteTemplate, true);\n const noteElement = noteClone.querySelector('.note-card');\n \n // Add event listeners for edit and delete\n noteElement.querySelector('.edit-btn').addEventListener('click', () => editNote(noteElement));\n noteElement.querySelector('.delete-btn').addEventListener('click', () => deleteNote(noteElement));\n \n notesGrid.appendChild(noteElement);\n saveNotes();\n }\n\n function editNote(noteElement) {\n const title = noteElement.querySelector('.note-title');\n const content = noteElement.querySelector('.note-content');\n \n title.contentEditable = true;\n content.contentEditable = true;\n \n title.focus();\n \n // Save on blur\n title.addEventListener('blur', saveNotes);\n content.addEventListener('blur', saveNotes);\n }\n\n function deleteNote(noteElement) {\n noteElement.remove();\n saveNotes();\n }\n\n function toggleView() {\n notesGrid.classList.toggle('grid-view');\n notesGrid.classList.toggle('list-view');\n toggleViewBtn.textContent = notesGrid.classList.contains('grid-view') ? 'List View' : 'Grid View';\n }\n\n function saveNotes() {\n const notes = [];\n document.querySelectorAll('.note-card').forEach(note => {\n notes.push({\n title: note.querySelector('.note-title').textContent,\n content: note.querySelector('.note-content').innerHTML\n });\n });\n localStorage.setItem('notes', JSON.stringify(notes));\n }\n\n function loadNotes() {\n const savedNotes = JSON.parse(localStorage.getItem('notes')) || [];\n savedNotes.forEach(noteData => {\n const noteClone = document.importNode(noteTemplate, true);\n const noteElement = noteClone.querySelector('.note-card');\n \n noteElement.querySelector('.note-title').textContent = noteData.title;\n noteElement.querySelector('.note-content').innerHTML = noteData.content;\n \n // Add event listeners\n noteElement.querySelector('.edit-btn').addEventListener('click', () => editNote(noteElement));\n noteElement.querySelector('.delete-btn').addEventListener('click', () => deleteNote(noteElement));\n \n notesGrid.appendChild(noteElement);\n });\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 278,
+ "completion_tokens": 1310,
+ "total_tokens": 1588,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 278
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # notescroll.scroll.pub
+ Website generated by DeepSeek from prompt: I want a website that can take notes, it performs like notion, can create a page which contains different kinds of data, especially data stored in db and be shown in different format. The note data should be saved locally
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const notesGrid = document.getElementById('notesGrid');
+ const newNoteBtn = document.getElementById('newNote');
+ const toggleViewBtn = document.getElementById('toggleView');
+ const noteTemplate = document.getElementById('noteTemplate').content;
+
+ // Load saved notes from localStorage
+ loadNotes();
+
+ newNoteBtn.addEventListener('click', createNewNote);
+ toggleViewBtn.addEventListener('click', toggleView);
+
+ function createNewNote() {
+ const noteClone = document.importNode(noteTemplate, true);
+ const noteElement = noteClone.querySelector('.note-card');
+
+ // Add event listeners for edit and delete
+ noteElement.querySelector('.edit-btn').addEventListener('click', () => editNote(noteElement));
+ noteElement.querySelector('.delete-btn').addEventListener('click', () => deleteNote(noteElement));
+
+ notesGrid.appendChild(noteElement);
+ saveNotes();
+ }
+
+ function editNote(noteElement) {
+ const title = noteElement.querySelector('.note-title');
+ const content = noteElement.querySelector('.note-content');
+
+ title.contentEditable = true;
+ content.contentEditable = true;
+
+ title.focus();
+
+ // Save on blur
+ title.addEventListener('blur', saveNotes);
+ content.addEventListener('blur', saveNotes);
+ }
+
+ function deleteNote(noteElement) {
+ noteElement.remove();
+ saveNotes();
+ }
+
+ function toggleView() {
+ notesGrid.classList.toggle('grid-view');
+ notesGrid.classList.toggle('list-view');
+ toggleViewBtn.textContent = notesGrid.classList.contains('grid-view') ? 'List View' : 'Grid View';
+ }
+
+ function saveNotes() {
+ const notes = [];
+ document.querySelectorAll('.note-card').forEach(note => {
+ notes.push({
+ title: note.querySelector('.note-title').textContent,
+ content: note.querySelector('.note-content').innerHTML
+ });
+ });
+ localStorage.setItem('notes', JSON.stringify(notes));
+ }
+
+ function loadNotes() {
+ const savedNotes = JSON.parse(localStorage.getItem('notes')) || [];
+ savedNotes.forEach(noteData => {
+ const noteClone = document.importNode(noteTemplate, true);
+ const noteElement = noteClone.querySelector('.note-card');
+
+ noteElement.querySelector('.note-title').textContent = noteData.title;
+ noteElement.querySelector('.note-content').innerHTML = noteData.content;
+
+ // Add event listeners
+ noteElement.querySelector('.edit-btn').addEventListener('click', () => editNote(noteElement));
+ noteElement.querySelector('.delete-btn').addEventListener('click', () => deleteNote(noteElement));
+
+ notesGrid.appendChild(noteElement);
+ });
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2563eb;
+ --background-color: #f8fafc;
+ --card-color: #ffffff;
+ --text-color: #1e293b;
+ --shadow: 0 1px 3px rgba(0,0,0,0.12);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ padding: 1rem;
+ }
+
+ header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 2rem;
+ }
+
+ h1 {
+ font-size: 2rem;
+ color: var(--primary-color);
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: 0.5rem;
+ cursor: pointer;
+ transition: opacity 0.2s;
+ }
+
+ button:hover {
+ opacity: 0.9;
+ }
+
+ #notesGrid {
+ display: grid;
+ gap: 1rem;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ }
+
+ .note-card {
+ background-color: var(--card-color);
+ border-radius: 0.5rem;
+ padding: 1rem;
+ box-shadow: var(--shadow);
+ transition: transform 0.2s;
+ }
+
+ .note-card:hover {
+ transform: translateY(-2px);
+ }
+
+ .note-title {
+ font-size: 1.25rem;
+ margin-bottom: 0.5rem;
+ }
+
+ .note-content {
+ min-height: 100px;
+ }
+
+ .note-actions {
+ display: flex;
+ gap: 0.5rem;
+ margin-top: 1rem;
+ }
+
+ @media (max-width: 768px) {
+ #notesGrid {
+ grid-template-columns: 1fr;
+ }
+ }