diff --git a/app.js b/app.js index cf908c4..a1a008c 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,7 @@ var containerValue = document.getElementById('containerOfTask') function addTask(){ var createRow = document.createElement('div'); createRow.className = 'row'; //row created - createRow.classList.add('row', 'd-inline-flex', 'align-items-center', 'border', 'border-0', 'rounded-pill', 'bg-lightdark', 'p-1', 'mb-2'); + createRow.classList.add('row', 'd-inline-flex', 'align-items-center', 'border', 'border-0', 'rounded-pill', 'standard-input', 'p-1', 'mb-2'); var containerValue = document.getElementById('containerOfTask') containerValue.appendChild(createRow) createRow.innerHTML = `
`+inputValue.value+`
@@ -79,3 +79,20 @@ function saveData(){ } //show stored data when reload +function standardTheme() { + var bodyGet = document.getElementsByTagName('body')[0]; + // Set the class name + bodyGet.className = 'standard'; +} +function lightTheme() { + var bodyGet = document.getElementsByTagName('body')[0]; + + // Set the class name + bodyGet.className = 'light'; +} +function darkTheme() { + var bodyGet = document.getElementsByTagName('body')[0]; + + // Set the class name + bodyGet.className = 'darker'; +} \ No newline at end of file diff --git a/index.html b/index.html index f02427c..657e10c 100644 --- a/index.html +++ b/index.html @@ -13,13 +13,13 @@ href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> - +
- - - + + +
@@ -28,7 +28,9 @@

Just do it

- + + +
@@ -37,7 +39,7 @@

Just do it

-