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

final changes #4

Open
wants to merge 1 commit 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
Empty file added a.cpp
Empty file.
25 changes: 11 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function getfromlocalstorage() {
onbeforeunload = function () {
todos = [];
var myNodelist = document.getElementsByTagName("LI");
var secondlist = document.getElementsByClassName("duetime");
var secondlist = document.getElementsByClassName("duetime");
for (var i = 0; i < myNodelist.length; i++) {
var task = myNodelist[i].childNodes[0].nodeValue;
var checked = myNodelist[i].classList.contains("checked");
Expand Down Expand Up @@ -67,7 +67,7 @@ function duedate(userinput) {
var timer = new Date();
let daystoshow = 0;

var monthleft = parseInt(time.substring(5, 7)) - timer.getMonth()-1;
var monthleft = parseInt(time.substring(5, 7)) - timer.getMonth() - 1;
var daysleft = parseInt(time.substring(8, 10)) - timer.getDate();
var yearleft = parseInt(time.substring(0, 4)) - timer.getFullYear();

Expand Down Expand Up @@ -217,18 +217,15 @@ function usefilter() {
}
}



// These are the media query functions.
var isvisible=false;
var isvisible = false;
function turnvisible() {
var element = document.getElementById("dropdown");
if(isvisible){
element.style.display='none';
isvisible=false;
}
else{
element.style.display='block';
isvisible=true;
}
var element = document.getElementById("dropdown");
if (isvisible) {
element.style.display = "none";
isvisible = false;
} else {
element.style.display = "block";
isvisible = true;
}
}