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

[Feature ] you can store the weekly , monthly and yearly tasks and goals individually and it will store in the local storage also #98

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
58 changes: 49 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,29 @@ <h1>My Dashboard</h1>

<main>
<section id="tasks">
<h2>Tasks</h2>
<input type="text" id="task-input" placeholder="New Task">
<button id="add-task-btn">Add Task</button>
<ul id="task-list"></ul>
<div class="header-with-select">
<h2>Tasks</h2>
<select id="task-type" onchange="showTaskInput()" class="short-select">
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="yearly">Yearly</option>
</select>
</div>
<div id="weekly-task" class="task-category">
<input type="text" id="weekly-task-input" placeholder="New Weekly Task">
<button id="add-task-btn" onclick="addTask('weekly-task-input', 'weekly-task-list')">Add Task</button>
<ul id="weekly-task-list"></ul>
</div>
<div id="monthly-task" class="task-category" style="display:none;">
<input type="text" id="monthly-task-input" placeholder="New Monthly Task">
<button id="add-task-btn" onclick="addTask('monthly-task-input', 'monthly-task-list')">Add Task</button>
<ul id="monthly-task-list"></ul>
</div>
<div id="yearly-task" class="task-category" style="display:none;">
<input type="text" id="yearly-task-input" placeholder="New Yearly Task">
<button id="add-task-btn" onclick="addTask('yearly-task-input', 'yearly-task-list')">Add Task</button>
<ul id="yearly-task-list"></ul>
</div>
</section>

<section id="notes">
Expand All @@ -44,10 +63,29 @@ <h2>Weather</h2>
</section>

<section id="goals">
<h2>Goals</h2>
<input type="text" id="goal-input" placeholder="Set a goal">
<button id="add-goal-btn">Add Goal</button>
<ul id="goal-list"></ul>
<div class="header-with-select">
<h2>Goals</h2>
<select id="goal-type" onchange="showGoalInput()" class="short-select">
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="yearly">Yearly</option>
</select>
</div>
<div id="weekly-goal" class="goal-category">
<input type="text" id="weekly-goal-input" placeholder="New Weekly Goal">
<button id="add-goal-btn" onclick="addGoal('weekly-goal-input', 'weekly-goal-list')">Add Goal</button>
<ul id="weekly-goal-list"></ul>
</div>
<div id="monthly-goal" class="goal-category" style="display:none;">
<input type="text" id="monthly-goal-input" placeholder="New Monthly Goal">
<button id="add-goal-btn" onclick="addGoal('monthly-goal-input', 'monthly-goal-list')">Add Goal</button>
<ul id="monthly-goal-list"></ul>
</div>
<div id="yearly-goal" class="goal-category" style="display:none;">
<input type="text" id="yearly-goal-input" placeholder="New Yearly Goal">
<button id="add-goal-btn" onclick="addGoal('yearly-goal-input', 'yearly-goal-list')">Add Goal</button>
<ul id="yearly-goal-list"></ul>
</div>
</section>

<section id="passwords">
Expand All @@ -56,13 +94,15 @@ <h2>Passwords</h2>
<input type="text" id="username-input" placeholder="Username">
<div style="position: relative;">
<input type="password" id="password-input" placeholder="Password">
<i class="fa fa-eye" data-toggle-password style="position: absolute; right: 10px; top: 20px; cursor: pointer;"></i>
<i class="fa fa-eye" data-toggle-password style="position: absolute; right: 10px; top: 20px; cursor: pointer;"></i>
</div>
<button id="add-password-btn">Add Password</button>
<ul id="password-list"></ul>
</section>
</main>

<button id="darkBtn">Dark Mode</button>

<script src="script.js"></script>
</body>
</html>
Loading