From c10fc4066eb12e8b648bb95ed2e82fb82bda3c87 Mon Sep 17 00:00:00 2001 From: Ritik <64457163+ritik1311@users.noreply.github.com> Date: Thu, 15 Oct 2020 15:34:08 +0530 Subject: [PATCH 1/3] Update app.js --- app.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 1ed2869..382cb98 100644 --- a/app.js +++ b/app.js @@ -8,6 +8,8 @@ let answer = document.getElementById("ans"); let clickOperator = 0; let percent = false; let numPercent = 0; +let colors = ['#EF2D4F', 'pink', 'blue', 'skyblue']; +let currentColor = 0; // this chunk of code is contributed by tushartiwari7 document.onkeyup = function(e) { if (e.which == 48 || e.keyCode == 96) { @@ -100,5 +102,13 @@ function equals(){ ans.value = 'Syntax Error'; } } - -//End \ No newline at end of file +function changeColor(){ + if(currentColor < colors.length-1) { + currentColor = currentColor+1; + document.body.style.backgroundColor = colors[currentColor]; + } else { + currentColor = 0; + document.body.style.backgroundColor = colors[0]; + } +} +//End From a337160d84751131c0d339f4fedc2e95f6ac4d96 Mon Sep 17 00:00:00 2001 From: Ritik <64457163+ritik1311@users.noreply.github.com> Date: Thu, 15 Oct 2020 15:35:32 +0530 Subject: [PATCH 2/3] Update style.css --- style.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index b36ee26..c4fd5c1 100644 --- a/style.css +++ b/style.css @@ -83,4 +83,9 @@ button:hover { .pink { background-color: #EF2D4F; color: white; -} \ No newline at end of file +} +.change-color-btn{ + border-radius: 10px; + width: 80%; + margin: 5px; +} From 4a4f4a6b141b540f5ac39447df12a9f19bc33248 Mon Sep 17 00:00:00 2001 From: Ritik <64457163+ritik1311@users.noreply.github.com> Date: Sat, 7 Nov 2020 22:00:17 +0530 Subject: [PATCH 3/3] Create CNAME --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..a75e9b8 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +ishan569.com \ No newline at end of file