Skip to content

Commit

Permalink
Final (maybe)
Browse files Browse the repository at this point in the history
Added all features perhaps.
  • Loading branch information
ShinyACash committed Sep 18, 2024
1 parent 65cb42d commit 1b1bd62
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 11 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/To-do-Listsite/v17/.wsuo
Binary file not shown.
22 changes: 11 additions & 11 deletions .vs/To-do-Listsite/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\codeshit.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:codeshit.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\index.html||{40D31677-CBC0-4297-A9EF-89D907823A98}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.html||{40D31677-CBC0-4297-A9EF-89D907823A98}"
Expand All @@ -10,10 +14,6 @@
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\style.css||{A5401142-F49D-43DB-90B1-F57BA349E55C}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:style.css||{A5401142-F49D-43DB-90B1-F57BA349E55C}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\codeshit.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:codeshit.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}"
Expand All @@ -26,7 +26,7 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 4,
"SelectedChildIndex": 2,
"Children": [
{
"$type": "Bookmark",
Expand All @@ -46,39 +46,39 @@
},
{
"$type": "Document",
"DocumentIndex": 2,
"DocumentIndex": 0,
"Title": "codeshit.js",
"DocumentMoniker": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\codeshit.js",
"RelativeDocumentMoniker": "codeshit.js",
"ToolTip": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\codeshit.js",
"RelativeToolTip": "codeshit.js",
"ViewState": "AQIAADAAAAAAAAAAAAAowFAAAAA1AAAA",
"ViewState": "AQIAABEAAAAAAAAAAAAQwEEAAAAbAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2024-09-15T05:49:41.04Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"DocumentIndex": 2,
"Title": "style.css",
"DocumentMoniker": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\style.css",
"RelativeDocumentMoniker": "style.css",
"ToolTip": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\style.css",
"RelativeToolTip": "style.css",
"ViewState": "AQIAAH4AAAAAAAAAAAAAAJwAAAAAAAAA",
"ViewState": "AQIAAA4BAAAAAAAAAAAAAEoBAAANAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003000|",
"WhenOpened": "2024-09-15T05:07:08.959Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"DocumentIndex": 1,
"Title": "index.html",
"DocumentMoniker": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\index.html",
"RelativeDocumentMoniker": "index.html",
"ToolTip": "C:\\Users\\Akash\\Documents\\GitHub\\To-do-Listsite\\index.html",
"RelativeToolTip": "index.html",
"ViewState": "AQIAAAAAAAAAAAAAAAAAADAAAAAgAAAA",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAB8AAAA0AAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001512|",
"WhenOpened": "2024-09-15T05:07:01.254Z",
"EditorCaption": ""
Expand Down
Binary file modified .vs/slnx.sqlite
Binary file not shown.
11 changes: 11 additions & 0 deletions codeshit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ document.addEventListener('DOMContentLoaded', () => {
const newListInput = document.getElementById('new-list-input');
const totalProgress = document.getElementById('prog');
const totalListProgress = document.getElementById('prog1');
const delList = document.getElementById('delList');

let lists = JSON.parse(localStorage.getItem('todo_lists')) || { 'default': [] };
let currentList = 'default';
Expand Down Expand Up @@ -60,6 +61,16 @@ document.addEventListener('DOMContentLoaded', () => {
renderTasks();
}

delList.addEventListener('click', () => deleteList());

function deleteList() {
delete lists[currentList];
window.alert("Your window will be refreshing now to display updated lists teehee.");
location.reload();
saveLists();
renderTasks();
}

function updateProgress() {
const tasks = lists[currentList];
const totalTasks = tasks.length;
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ <h2>Hello User!</h2>
</div>
<div class="todo-container">
<h1>To-Do</h1>
<button class="delete-btn-list" id="delList">x</button>
<div class="list-header">
<select id="list-selector" class="list-selector">
<option value="Default">Default List</option>
Expand Down
19 changes: 19 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,25 @@ p2 {
background-color: rgba(255, 59, 48, 0.1);
}

.delete-btn-list {
position: absolute;
top: 25px;
right: 25px;
background: none;
border: none;
color: var(--secondary-text-color);
cursor: pointer;
font-size: 20px;
transition: var(--transition);
padding: 4px 8px;
border-radius: 50%;
}

.delete-btn-list:hover {
color: var(--delete-color);
background-color: rgba(255, 59, 48, 0.1);
}

.progress-bar {
width: 100%;
height: 25px;
Expand Down

0 comments on commit 1b1bd62

Please sign in to comment.