├── Analogue Clock ├── Images │ └── clock.png ├── css │ └── style.css └── index.html ├── Drum Kit ├── images │ ├── crash.png │ ├── kick.png │ ├── snare.png │ ├── tom1.png │ ├── tom2.png │ ├── tom3.png │ └── tom4.png ├── index.html ├── index.js ├── sounds │ ├── crash.mp3 │ ├── kick-bass.mp3 │ ├── snare.mp3 │ ├── tom-1.mp3 │ ├── tom-2.mp3 │ ├── tom-3.mp3 │ └── tom-4.mp3 └── styles.css ├── Guess the Number ├── index.html ├── script.js └── style.css ├── JS Calculator ├── index.html ├── script.js └── style.css ├── README.md ├── TODO App ├── index.html ├── script.js └── style.css └── Text Editor ├── index.html ├── script.js └── style.css /Analogue Clock/Images/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Analogue Clock/Images/clock.png -------------------------------------------------------------------------------- /Analogue Clock/css/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | } 6 | body{ 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | width: 100%; 11 | height: 100vh; 12 | background: #091921 ; 13 | overflow: auto; 14 | font-family: 'Lora', serif; 15 | } 16 | #container{ 17 | position: relative; 18 | } 19 | .clock{ 20 | width: 250px; 21 | height: 250px; 22 | display: flex; 23 | justify-content: center; 24 | align-items: center; 25 | background: url(../Images/clock.png); 26 | background-size:cover ; 27 | border: 4px solid #091921; 28 | box-shadow: 0 -15px 15px rgba(255,255,255,0.05), 29 | inset 0 -15px 15px rgba(255,255,255,0.05), 30 | 0 15px 15px rgba(0,0,0,0.3), 31 | inset 0 15px 15px rgba(0,0,0,0.3); 32 | z-index:99999 ; 33 | border-radius: 50%; 34 | margin: 0; 35 | position: absolute; 36 | top: 50%; 37 | left: 50%; 38 | -ms-transform: translate(-50%, -50%); 39 | transform: translate(-50%, -50%); 40 | position: absolute; 41 | } 42 | .clock::before{ 43 | content: ""; 44 | position: absolute; 45 | width: 10px; 46 | height: 10px; 47 | background: #fff; 48 | border-radius: 50%; 49 | z-index: 10000; 50 | } 51 | 52 | .clock:after{ 53 | position: absolute; 54 | content: ''; 55 | height: 120px; 56 | width: 120px; 57 | background: #091921; 58 | border-radius: 50%; 59 | box-shadow: 0 5px 15px rgba(0,0,0,0.1), 60 | 0 5px 5px rgba(0,0,0,0.1), 61 | 0 5px 5px rgba(0,0,0,0.1), 62 | 0 5px 5px rgba(0,0,0,0.1); 63 | } 64 | .sec-hand,.min-hand,.hr-hand{ 65 | position: absolute; 66 | } 67 | .sec-hand, .sec{ 68 | height: 170px; 69 | width: 180px; 70 | z-index: 6; 71 | } 72 | .min-hand, .min{ 73 | height: 140px; 74 | width: 140px; 75 | z-index: 5; 76 | } 77 | .hr-hand, .hr{ 78 | height: 110px; 79 | width: 110px; 80 | z-index: 4; 81 | } 82 | .sec,.min,.hr{ 83 | display: flex; 84 | justify-content: center; 85 | position: absolute; 86 | } 87 | .sec:before{ 88 | position: absolute; 89 | content: ''; 90 | height: 110px; 91 | width: 3px; 92 | background: #e94560; 93 | } 94 | .sec:after{ 95 | position: absolute; 96 | content: ''; 97 | height: 30px; 98 | width: 7px; 99 | background: #e94560; 100 | top: 105px; 101 | border-radius: 5px; 102 | } 103 | .min:before{ 104 | position: absolute; 105 | content: ''; 106 | width: 1px; 107 | top: -15px; 108 | border-left: 3px solid transparent; 109 | border-right: 3px solid transparent; 110 | border-bottom: 60px solid #e94560; 111 | } 112 | .min:after{ 113 | position: absolute; 114 | content: ''; 115 | width: 3px; 116 | top: 40px; 117 | border-left: 2px solid transparent; 118 | border-right: 2px solid transparent; 119 | border-top: 30px solid #e94560; 120 | } 121 | .hr:before{ 122 | position: absolute; 123 | content: ''; 124 | width: 1px; 125 | border-left: 3px solid transparent; 126 | border-right: 3px solid transparent; 127 | border-bottom: 35px solid #bbbbbb; 128 | } 129 | .hr:after{ 130 | position: absolute; 131 | content: ''; 132 | width: 3px; 133 | top: 34px; 134 | border-left: 2px solid transparent; 135 | border-right: 2px solid transparent; 136 | border-top: 25px solid #bbbbbb; 137 | } 138 | -------------------------------------------------------------------------------- /Analogue Clock/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Time-table web page 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | 48 | 49 | -------------------------------------------------------------------------------- /Drum Kit/images/crash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/crash.png -------------------------------------------------------------------------------- /Drum Kit/images/kick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/kick.png -------------------------------------------------------------------------------- /Drum Kit/images/snare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/snare.png -------------------------------------------------------------------------------- /Drum Kit/images/tom1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/tom1.png -------------------------------------------------------------------------------- /Drum Kit/images/tom2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/tom2.png -------------------------------------------------------------------------------- /Drum Kit/images/tom3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/tom3.png -------------------------------------------------------------------------------- /Drum Kit/images/tom4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aswathysaji/10-Days-of-JavaScript-Projects-for-Beginners/e85843a68614a075421e497996ce92d7ea057ebd/Drum Kit/images/tom4.png -------------------------------------------------------------------------------- /Drum Kit/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Drum Kit 7 | 8 | 9 | 10 | 11 | 12 | 13 |

Drum 🥁 Kit

14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Drum Kit/index.js: -------------------------------------------------------------------------------- 1 | 2 | var buttons = document.querySelectorAll(".drum"); //select all the buttons with class drum 3 | 4 | //Detecting button press 5 | 6 | for(i=0;i 2 | 3 | 4 | 5 | 6 | Guess the Number 7 | 8 | 9 | 10 | 11 | 14 |
15 |

1.2.3

16 |
17 | 18 |
19 |
20 | 21 |
22 |
23 | 24 | 25 |
26 |
27 | 28 |
29 |
30 |

Codedy By Aswathy Saji

31 |
32 |
33 | 34 | 35 | -------------------------------------------------------------------------------- /Guess the Number/script.js: -------------------------------------------------------------------------------- 1 | // initialize a list store our guesses 2 | let guessList = []; 3 | 4 | //function to generate random number 5 | function getRandomNumber(){ 6 | let randomNumber = Math.floor(Math.random()*100)+1; 7 | return randomNumber; 8 | } 9 | 10 | //initialize a variable to store the random number generted. 11 | let correctNumber = getRandomNumber(); 12 | 13 | //functions that take place on loading the website 14 | window.onload = function(){ 15 | document.getElementById('number-submit').addEventListener('click', playGame); 16 | document.getElementById('restart-game').addEventListener('click',initGame); 17 | } 18 | 19 | //function to play the game 20 | function playGame(){ 21 | let numberGuess = document.getElementById('number-guess').value; 22 | displayResult(numberGuess); 23 | saveGuessHistory(numberGuess); 24 | displayHistory(); 25 | } 26 | 27 | //function to display result 28 | function displayResult(numberGuess){ 29 | if(correctNumber < numberGuess){ 30 | showNumberAbove(); 31 | } 32 | else if(correctNumber > numberGuess){ 33 | showNumberBelow(); 34 | } 35 | else{ 36 | showYouWon(); 37 | } 38 | } 39 | 40 | //You won function 41 | function showYouWon(){ 42 | const text = "Awesome job, you got it!"; 43 | 44 | let dialog = getDialog('won', text); 45 | console.log(dialog); 46 | document.getElementById('result').innerHTML = dialog; 47 | } 48 | 49 | 50 | //Yoy guessed high function 51 | function showNumberAbove(){ 52 | const text = "Your guess is too high!" 53 | 54 | 55 | let dialog = getDialog('warning', text); 56 | document.getElementById('result').innerHTML = dialog; 57 | } 58 | 59 | //you guessed low function 60 | function showNumberBelow(){ 61 | const text = "Your guess is too low!" 62 | 63 | let dialog = getDialog('warning', text); 64 | document.getElementById('result').innerHTML = dialog; 65 | } 66 | 67 | //function to save the history 68 | function saveGuessHistory(guess){ 69 | guessList.push(guess); 70 | 71 | } 72 | 73 | function displayHistory(){ 74 | let index = guessList.length -1; 75 | 76 | let list = ""; 85 | console.log(guessList); 86 | document.getElementById('history').innerHTML = list; 87 | } 88 | 89 | //To generate the text result according to our guess 90 | function getDialog(dialogType, text){ 91 | let dialog; 92 | switch(dialogType){ 93 | case 'warning': 94 | dialog = "