Changes to habitly.scroll.pub

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

Habitly

+

Your Personal Habit Tracker

+
+
+
+
+

Add a New Habit

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

Your Habits

+
    +
    +
    +
    +

    Goals

    +
    +
    +

    Short-term Goals

    +
      +
      +
      +
      +

      Long-term Goals

      +
        +
        +
        +
        +
        +
        +
        +

        Statistics

        +
        +
        +
        +
        +
        +

        Track your habits, achieve your goals

        +
        index.scroll
        Changed around line 1
        + buildHtml
        + baseUrl https://habitly.scroll.pub
        + metaTags
        + editButton /edit.html
        + title Habitly - Your Personal Habit Tracker
        + style.css
        + body.html
        + script.js
        prompt.json
        Changed around line 1
        + {
        + "id": "ce4ae64f-c51a-4e48-8bb0-c8be4652b140",
        + "object": "chat.completion",
        + "created": 1736014791,
        + "model": "deepseek-chat",
        + "choices": [
        + {
        + "index": 0,
        + "message": {
        + "role": "assistant",
        + "content": "---domain---\nhabitly.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://habitly.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Habitly - Your Personal Habit Tracker\nstyle.css\nbody.html\nscript.js\n---body.html---\n
        \n

        Habitly

        \n

        Your Personal Habit Tracker

        \n
        \n\n
        \n
        \n

        Add a New Habit

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

        Your Habits

        \n
          \n
          \n\n
          \n

          Goals

          \n
          \n
          \n

          Short-term Goals

          \n
            \n \n
            \n
            \n

            Long-term Goals

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

              Statistics

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

              Track your habits, achieve your goals

              \n
              \n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #45a049;\n --background-color: #f4f4f4;\n --text-color: #333;\n --card-bg: #fff;\n --shadow: 0 2px 5px rgba(0,0,0,0.1);\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\nmain {\n padding: 1rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\nsection {\n background: var(--card-bg);\n margin: 1rem 0;\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n}\n\nh2 {\n color: var(--primary-color);\n margin-bottom: 1rem;\n}\n\nform {\n display: grid;\n gap: 1rem;\n}\n\ninput, select, button {\n padding: 0.5rem;\n border-radius: 4px;\n border: 1px solid #ddd;\n}\n\nbutton {\n background: var(--primary-color);\n color: white;\n border: none;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: var(--secondary-color);\n}\n\n#habit-list ul {\n list-style: none;\n padding: 0;\n}\n\n#habit-list li {\n background: var(--background-color);\n margin: 0.5rem 0;\n padding: 1rem;\n border-radius: 4px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.goal-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 1rem;\n}\n\n.goal-card {\n background: var(--background-color);\n padding: 1rem;\n border-radius: 8px;\n}\n\ncanvas {\n width: 100%;\n max-width: 800px;\n margin: 0 auto;\n display: block;\n}\n\n@media (max-width: 768px) {\n form {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\nlet habits = [];\nlet goals = { short: [], long: [] };\n\ndocument.querySelector('form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const habit = {\n name: document.getElementById('habit-name').value,\n time: document.getElementById('reminder-time').value,\n frequency: document.getElementById('frequency').value,\n completed: false\n };\n \n habits.push(habit);\n displayHabits();\n this.reset();\n});\n\nfunction displayHabits() {\n const list = document.getElementById('habits');\n list.innerHTML = habits.map((habit, index) => `\n
            • \n ${habit.name} - ${habit.time} (${habit.frequency})\n \n
            • \n `).join('');\n}\n\nfunction toggleComplete(index) {\n habits[index].completed = !habits[index].completed;\n displayHabits();\n}\n\nfunction addGoal(type) {\n const goal = prompt(`Enter your ${type}-term goal:`);\n if (goal) {\n goals[type].push(goal);\n displayGoals();\n }\n}\n\nfunction displayGoals() {\n document.getElementById('short-term-goals').innerHTML = goals.short.map(goal => `
            • ${goal}
            • `).join('');\n document.getElementById('long-term-goals').innerHTML = goals.long.map(goal => `
            • ${goal}
            • `).join('');\n}\n\n// Chart.js implementation would go here\n---end---"
              + },
              + "logprobs": null,
              + "finish_reason": "stop"
              + }
              + ],
              + "usage": {
              + "prompt_tokens": 285,
              + "completion_tokens": 1388,
              + "total_tokens": 1673,
              + "prompt_cache_hit_tokens": 0,
              + "prompt_cache_miss_tokens": 285
              + },
              + "system_fingerprint": "fp_3a5770e1b4"
              + }
              readme.scroll
              Changed around line 1
              + # habitly.scroll.pub
              + Website generated by DeepSeek from prompt: i want to create a habit tracker app for myself, in which I can add a habit, set a reminder for it, set the frequency, check the past stats, add sub task to a habit, also create a long term goal and short term goal
              script.js
              Changed around line 1
              + let habits = [];
              + let goals = { short: [], long: [] };
              +
              + document.querySelector('form').addEventListener('submit', function(e) {
              + e.preventDefault();
              +
              + const habit = {
              + name: document.getElementById('habit-name').value,
              + time: document.getElementById('reminder-time').value,
              + frequency: document.getElementById('frequency').value,
              + completed: false
              + };
              +
              + habits.push(habit);
              + displayHabits();
              + this.reset();
              + });
              +
              + function displayHabits() {
              + const list = document.getElementById('habits');
              + list.innerHTML = habits.map((habit, index) => `
              +
            • + ${habit.name} - ${habit.time} (${habit.frequency})
              +
              +
              + `).join('');
              + }
              +
              + function toggleComplete(index) {
              + habits[index].completed = !habits[index].completed;
              + displayHabits();
              + }
              +
              + function addGoal(type) {
              + const goal = prompt(`Enter your ${type}-term goal:`);
              + if (goal) {
              + goals[type].push(goal);
              + displayGoals();
              + }
              + }
              +
              + function displayGoals() {
              + document.getElementById('short-term-goals').innerHTML = goals.short.map(goal => `
            • ${goal}
            • `).join('');
              + document.getElementById('long-term-goals').innerHTML = goals.long.map(goal => `
            • ${goal}
            • `).join('');
              + }
              +
              + // Chart.js implementation would go here
              style.css
              Changed around line 1
              + :root {
              + --primary-color: #4CAF50;
              + --secondary-color: #45a049;
              + --background-color: #f4f4f4;
              + --text-color: #333;
              + --card-bg: #fff;
              + --shadow: 0 2px 5px rgba(0,0,0,0.1);
              + }
              +
              + body {
              + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
              + margin: 0;
              + padding: 0;
              + background-color: var(--background-color);
              + color: var(--text-color);
              + line-height: 1.6;
              + }
              +
              + header {
              + background: var(--primary-color);
              + color: white;
              + padding: 2rem 1rem;
              + text-align: center;
              + }
              +
              + main {
              + padding: 1rem;
              + max-width: 1200px;
              + margin: 0 auto;
              + }
              +
              + section {
              + background: var(--card-bg);
              + margin: 1rem 0;
              + padding: 1.5rem;
              + border-radius: 8px;
              + box-shadow: var(--shadow);
              + }
              +
              + h2 {
              + color: var(--primary-color);
              + margin-bottom: 1rem;
              + }
              +
              + form {
              + display: grid;
              + gap: 1rem;
              + }
              +
              + input, select, button {
              + padding: 0.5rem;
              + border-radius: 4px;
              + border: 1px solid #ddd;
              + }
              +
              + button {
              + background: var(--primary-color);
              + color: white;
              + border: none;
              + cursor: pointer;
              + transition: background 0.3s ease;
              + }
              +
              + button:hover {
              + background: var(--secondary-color);
              + }
              +
              + #habit-list ul {
              + list-style: none;
              + padding: 0;
              + }
              +
              + #habit-list li {
              + background: var(--background-color);
              + margin: 0.5rem 0;
              + padding: 1rem;
              + border-radius: 4px;
              + display: flex;
              + justify-content: space-between;
              + align-items: center;
              + }
              +
              + .goal-container {
              + display: grid;
              + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
              + gap: 1rem;
              + }
              +
              + .goal-card {
              + background: var(--background-color);
              + padding: 1rem;
              + border-radius: 8px;
              + }
              +
              + canvas {
              + width: 100%;
              + max-width: 800px;
              + margin: 0 auto;
              + display: block;
              + }
              +
              + @media (max-width: 768px) {
              + form {
              + grid-template-columns: 1fr;
              + }
              + }