-
24 |
├── README.md ├── accordion ├── index.html ├── script.js └── style.css ├── booklist-app ├── README.md ├── app-oo.js ├── app.js ├── class.js ├── index.html └── style.css ├── bookmarker ├── index.html ├── script.js └── style.css ├── carousel ├── img │ ├── slide-1.jpeg │ ├── slide-2.jpeg │ └── slide-3.jpeg ├── index.html ├── script.js └── style.css ├── dark-mode-toggle ├── index.html ├── script.js └── style.css ├── drag-n-drop ├── deck.png ├── index.html ├── script.js └── style.css ├── filterable-list ├── filterable-list-v2 │ ├── index.html │ ├── script.js │ └── style.css ├── index.html └── script.js ├── github-finder-app ├── README.md ├── app.js ├── github.js ├── index.html ├── style.css └── ui.js ├── math-game ├── index.html ├── script.js └── style.css ├── modal ├── index.html ├── script.js └── style.css ├── number-guesser ├── index.html ├── script.js └── style.css ├── page-coming-soon-countdown ├── img │ ├── background.jpg │ ├── favicon.ico │ ├── icon.png │ └── logo.png ├── index.html ├── script.js └── style.css ├── pagination ├── index.html ├── script.js └── style.css ├── password-generator ├── index.html ├── script.js └── style.css ├── pet-finder ├── index.html ├── pet-finder-v2 │ ├── index.html │ ├── script.js │ └── style.css ├── script.js └── style.css ├── quiz-app ├── index.html ├── script.js └── style.css ├── quotes-machine ├── .prettierignore ├── index.html ├── script.js └── style.css ├── scroll-progress ├── index.html ├── script.js └── style.css ├── social-media-counter ├── index.html ├── script.js └── style.css ├── speed-typing-game ├── README.md ├── index.html └── script.js ├── tags-drag-and-drop ├── index.html ├── script.js └── style.css ├── text-to-speech ├── .vscode │ └── settings.json ├── index.html ├── script.js ├── speakerIcon.svg ├── styles.css └── waveIcon.svg ├── todos ├── README.md ├── index.html ├── script.js └── style.css ├── typing-effect ├── index.html ├── script.js └── style.css ├── typing-suggestions ├── index.html ├── script.js └── style.css ├── weather-app ├── README.md ├── app.js ├── img │ └── sky.jpg ├── index.html └── style.css ├── weekly-budget-app ├── README.md ├── index.html ├── script.js └── style.css └── weight-converter ├── index.html ├── script.js └── style.css /README.md: -------------------------------------------------------------------------------- 1 | # Vanilla Javascript Projects 2 | 3 | > Click on the links below to access each App 4 | 5 | 1. [toDos](https://aman-maharshi.github.io/vanilla-js/todos/) 6 | 1. [Quiz App](https://aman-maharshi.github.io/vanilla-js/quiz-app/) 7 | 1. [Text to Speech](https://aman-maharshi.github.io/vanilla-js/text-to-speech/) 8 | 1. [Weekly Budget Tracker](https://aman-maharshi.github.io/vanilla-js/weekly-budget-app/) 9 | 1. [Tags Drag and Drop](https://aman-maharshi.github.io/vanilla-js/tags-drag-and-drop/) 10 | 1. [Password Generator](https://aman-maharshi.github.io/vanilla-js/password-generator/) 11 | 1. [Quotes Machine](https://aman-maharshi.github.io/vanilla-js/quotes-machine/) 12 | 1. [Website Bookmarker](https://aman-maharshi.github.io/vanilla-js/bookmarker/) 13 | 1. [Booklist App](https://aman-maharshi.github.io/vanilla-js/booklist-app/) 14 | 1. [Typing Effect](https://aman-maharshi.github.io/vanilla-js/typing-effect/) 15 | 1. [Weight Converter](https://aman-maharshi.github.io/vanilla-js/weight-converter/) 16 | 17 | #### API Projects - Apps using data from external APIs 18 | 19 | 1. [Weather App](https://aman-maharshi.github.io/vanilla-js/weather-app/) 20 | 1. [Pet Finder](https://aman-maharshi.github.io/vanilla-js/pet-finder/) 21 | 1. [Pagination](https://aman-maharshi.github.io/vanilla-js/pagination/) 22 | 1. [Typing Suggestions](https://aman-maharshi.github.io/vanilla-js/typing-suggestions/) 23 | 24 | #### Web Components - Elements used on many websites 25 | 26 | 1. [Image Slider](https://aman-maharshi.github.io/vanilla-js/carousel/) 27 | 1. [Filterable List](https://aman-maharshi.github.io/vanilla-js/filterable-list/) 28 | 1. [Accordion](https://aman-maharshi.github.io/vanilla-js/accordion/) 29 | 1. [Light/Dark Theme Switcher](https://aman-maharshi.github.io/vanilla-js/dark-mode-toggle/) 30 | 1. [Scroll Progress Indicator](https://aman-maharshi.github.io/vanilla-js/scroll-progress/) 31 | 1. [Social Media Counter](https://aman-maharshi.github.io/vanilla-js/social-media-counter/) 32 | 1. [Page Coming Soon](https://aman-maharshi.github.io/vanilla-js/page-coming-soon-countdown/) 33 | 1. [Drag n Drop](https://aman-maharshi.github.io/vanilla-js/drag-n-drop/) 34 | 1. [Popup Modal](https://aman-maharshi.github.io/vanilla-js/modal/) 35 | 36 | #### Games 37 | 38 | 1. [Speed Typing Lite](https://aman-maharshi.github.io/vanilla-js/speed-typing-game/) 39 | 1. [Number Guesser](https://aman-maharshi.github.io/vanilla-js/number-guesser/) 40 | -------------------------------------------------------------------------------- /accordion/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Title | 38 |Author | 39 |40 | |
---|
Bookmarker Application
13 |Bookmark your favorite Websites and Links
14 |Light/Dark theme toggle switch for websites. These are useful in using screen devices in dark or to save some battery life.
19 |GitHub Finder
13 |Search for a GitHub user and get their profile and repository details
14 |Name ${user.name}
15 |Bio ${user.bio}
16 |Location ${user.location}
17 |Blog ${user.blog}
18 |Company ${user.company}
19 |User ${inputText} not found
` 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /math-game/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |Lorem, ipsum dolor sit amet consectetur adipisicing elit. Minima, repellendus iusto. Laboriosam hic ipsam accusantium ea ut? Saepe sint, tempora nisi recusandae adipisci quae facilis!
17 | 18 |Guess a number between 1 and 10
15 | 19 | 20 |days
hours
minutes
seconds
Pagination
14 |The following data is being fetched from JSON Placeholder API
15 |${item.id}. ${item.title}
` 20 | //console.log(item.title) 21 | }) 22 | content.innerHTML = str 23 | }) 24 | } 25 | // initially loading the first 10 elements 26 | printElments(0, elementsPerPage) 27 | 28 | /* 29 | Pagination functionality 30 | */ 31 | 32 | let paginationLink = document.querySelectorAll(".pagination__link") 33 | 34 | paginationLink.forEach(item => { 35 | item.addEventListener("click", loadPageData) 36 | }) 37 | 38 | function loadPageData() { 39 | let pageNumber = parseInt(this.textContent) 40 | printElments(pageNumber * 10 - 10, elementsPerPage) 41 | } 42 | -------------------------------------------------------------------------------- /pagination/style.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&display=swap"); 2 | 3 | body { 4 | font-family: "Barlow", sans-serif; 5 | color: #333; 6 | font-size: 1.1rem; 7 | margin: 0; 8 | } 9 | 10 | a { 11 | text-decoration: none; 12 | color: rgb(15, 96, 163); 13 | } 14 | a:hover { 15 | color: rgb(9, 63, 107); 16 | } 17 | 18 | main { 19 | padding: 1rem; 20 | max-width: 700px; 21 | margin: 0 auto; 22 | min-height: 88vh; 23 | } 24 | 25 | .header { 26 | background: lightblue; 27 | padding: 1rem; 28 | } 29 | 30 | .title { 31 | font-size: 2rem; 32 | font-weight: 600; 33 | margin: 10px 0; 34 | text-align: center; 35 | } 36 | 37 | .subtitle { 38 | text-align: center; 39 | } 40 | 41 | .content { 42 | padding: 0.5rem 1rem; 43 | } 44 | 45 | .pagination { 46 | margin-top: 1.5rem; 47 | display: flex; 48 | justify-content: center; 49 | } 50 | 51 | .pagination__link { 52 | padding: 5px 10px; 53 | cursor: pointer; 54 | border: 1px solid lightgray; 55 | transform: all 0.3s ease; 56 | } 57 | .pagination__link:not(:last-child) { 58 | border-right: none; 59 | } 60 | .pagination__link:hover { 61 | transform: scale(1.1); 62 | } 63 | 64 | footer { 65 | text-align: center; 66 | } 67 | -------------------------------------------------------------------------------- /password-generator/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |Password Generator
14 | 43 |Loading...
` 29 | getPetImage(e.target.value).then(data => { 30 | let url = data.message 31 | imageContainer.innerHTML = `JavaScript Quiz
14 |Type the following word in seconds:
18 | 19 |Type each word in the given amount of time to score. To play again, just type the current word. Your score will reset.
49 |Add new tag
15 | 16 | 17 | 18 |Box One
26 |Box Two
30 |19 | This app allows you to convert text to speech. Simply type your text, select a voice, and click play to hear the translation. 20 |
21 | 22 | 25 | 26 | 34 | 35 |I am a
14 |Start Typing to get Suggestions
12 |18 | 19 | 20 | 21 |