${meal.strInstructions}
110 |Ingredients
111 |-
112 | ${ingredients.map(ing => `
- ${ing} `).join('')} 113 |
├── Book Keeper ├── index.html ├── script.js └── style.css ├── Custom Countdown ├── index.html ├── script.js ├── style.css └── time.mp4 ├── Expanding Cards ├── index.html ├── script.js └── style.css ├── Expense Tracker ├── index.html ├── script.js └── style.css ├── Lyrics Search ├── index.html ├── script.js └── style.css ├── Meal Finder ├── index.html ├── script.js └── style.css ├── Memory Cards ├── .prettierrc ├── index.html ├── script.js └── style.css ├── Music Player ├── Music │ ├── Cartoon.mp3 │ ├── Free.mp3 │ └── Jarico.mp3 ├── img │ ├── Cartoon.jpg │ ├── Free.jpg │ └── Jarico.jpg ├── index.html ├── index.js └── style.css ├── Navigation Nation ├── index.html ├── script.js └── style.css ├── Slide Over Design ├── demo,html ├── demo.html ├── img │ ├── image1.jpg │ ├── image2.jpg │ ├── image3.jpg │ └── image4.jpg ├── index.html ├── script.js └── style.css ├── Text To Speech ├── img │ ├── DS_Store │ ├── angry.jpg │ ├── drink.jpg │ ├── food.jpg │ ├── grandma.jpg │ ├── happy.jpg │ ├── home.jpg │ ├── hurt.jpg │ ├── outside.jpg │ ├── sad.jpg │ ├── scared.jpg │ ├── school.jpg │ └── tired.jpg ├── index.html ├── script.js └── style.css ├── Type Game ├── index.html ├── script.js └── style.css └── Video Player ├── cars.mp4 ├── index.html ├── script.js └── style.css /Book Keeper/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |21 | +$0.00 22 |
23 |27 | -$0.00 28 |
29 |Results will be displayed here
21 |${meal.strCategory}
` : ''} 106 | ${meal.strArea ? `${meal.strArea}
` : ''} 107 |${meal.strInstructions}
110 |${data.question}
83 |${data.answer}
86 |${text}
68 | `; 69 | //@ todo speak event 70 | 71 | main.appendChild(box); 72 | } -------------------------------------------------------------------------------- /Text To Speech/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevSanket/JavaScript-Microprojects/df5494b57f57d1b680b619d8db63ad84abff7c31/Text To Speech/style.css -------------------------------------------------------------------------------- /Type Game/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 |38 | Time left : 10s 39 |
40 |41 | Score : 0 42 |
43 | 44 |Your final Score is ${score}
76 | 77 | `; 78 | endgameEl.style.display = 'flex'; 79 | } 80 | 81 | //update time 82 | function updateTime(){ 83 | time--; 84 | timeEl.innerHTML = time + 's'; 85 | if(time === 0){ 86 | clearInterval(timeInterval); 87 | // 88 | gameOver(); 89 | } 90 | } 91 | 92 | //Event Listerner 93 | text.addEventListener('input',e => { 94 | const insertedText = e.target.value; 95 | if(insertedText === randomWord){ 96 | addWordToDOM(); 97 | updateScore(); 98 | //clear 99 | e.target.value =''; 100 | // difficulty 101 | if(difficulty === 'hard'){ 102 | time+=2 103 | }else if(difficulty === 'medium'){ 104 | time +=3; 105 | }else{ 106 | time += 4; 107 | } 108 | updateTime(); 109 | } 110 | }) 111 | 112 | //Difficulty event listerners 113 | 114 | //settings btn 115 | settingsBtn.addEventListener('click',() => settings.classList.toggle('hide')); 116 | 117 | //settings select 118 | settingForm.addEventListener('change',e => { 119 | difficulty = e.target.value; 120 | localStorage.setItem('difficulty',difficulty); 121 | }) 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /Type Game/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; 3 | } 4 | body { 5 | background-color: #2c3e50; 6 | display: flex; 7 | align-items: center; 8 | justify-content: center; 9 | min-height: 100vh; 10 | margin: 0; 11 | font-family: Verdana, Geneva, Tahoma, sans-serif; 12 | } 13 | 14 | button { 15 | cursor: pointer; 16 | font-size: 14px; 17 | border-radius: 4px; 18 | padding: 5px 15px; 19 | } 20 | 21 | select { 22 | width: 200px; 23 | padding: 5px; 24 | appearance: none; 25 | -webkit-appearance: none; 26 | -moz-appearance: none; 27 | border-radius: 0; 28 | background-color: #a7c5e3; 29 | } 30 | 31 | select:focus, 32 | button:focus { 33 | outline: 0; 34 | } 35 | 36 | .setting-btn { 37 | position: absolute; 38 | bottom: 30px; 39 | left: 30px; 40 | } 41 | 42 | .settings { 43 | position: absolute; 44 | top: 0; 45 | left: 0; 46 | width: 100%; 47 | background-color: rgba(0, 0, 0, 0.3); 48 | height: 70px; 49 | color: #fff; 50 | display: flex; 51 | align-items: center; 52 | justify-content: center; 53 | transform: translateY(0); 54 | transition: transform 0.3s ease-in-out; 55 | } 56 | 57 | .settings.hide { 58 | transform: translateY(-100%); 59 | } 60 | 61 | .container { 62 | background-color: #34495e; 63 | padding: 20px; 64 | border-radius: 4px; 65 | box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); 66 | color: #fff; 67 | position: relative; 68 | text-align: center; 69 | width: 500px; 70 | } 71 | 72 | h2 { 73 | background-color: rgba(0, 0, 0, 0.3); 74 | padding: 8px; 75 | border-radius: 4px; 76 | margin: 0 0 40px; 77 | } 78 | 79 | h1 { 80 | margin: 0; 81 | } 82 | 83 | input { 84 | border: 0; 85 | border-radius: 4px; 86 | font-size: 14px; 87 | width: 300px; 88 | padding: 12px 20px; 89 | margin-top: 10px; 90 | } 91 | 92 | .score-container { 93 | position: absolute; 94 | top: 60px; 95 | right: 20px; 96 | } 97 | time-container { 98 | position: absolute; 99 | top: 60px; 100 | left: 20px; 101 | } 102 | 103 | .end-game-container { 104 | background-color: inherit; 105 | display: none; 106 | align-items: center; 107 | justify-content: center; 108 | flex-direction: column; 109 | position: absolute; 110 | top: 0; 111 | left: 0; 112 | width: 100%; 113 | height: 100%; 114 | z-index: 1; 115 | } 116 | -------------------------------------------------------------------------------- /Video Player/cars.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevSanket/JavaScript-Microprojects/df5494b57f57d1b680b619d8db63ad84abff7c31/Video Player/cars.mp4 -------------------------------------------------------------------------------- /Video Player/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |