├── .gitignore ├── 11 Custom Video Player ├── original │ ├── scripts.js │ ├── index.html │ └── scripts-FINISHED.js ├── index.html ├── README.MD └── scripts.js ├── 29 Countdown Timer ├── original │ ├── scripts-START.js │ ├── index.html │ ├── style.css │ └── scripts-FINISHED.js ├── README.MD ├── index.html ├── style.css └── scripts.js ├── 01 JavaScript Drum Kit ├── original │ ├── sounds │ │ ├── tom.wav │ │ ├── boom.wav │ │ ├── clap.wav │ │ ├── hihat.wav │ │ ├── kick.wav │ │ ├── ride.wav │ │ ├── snare.wav │ │ ├── tink.wav │ │ └── openhat.wav │ ├── style.css │ ├── index-START.html │ └── index-FINISHED.html ├── index.css ├── README.MD └── index.html ├── 19 Webcam Fun ├── original │ ├── scripts.js │ ├── package.json │ ├── style.css │ ├── index.html │ └── scripts-FINISHED.js ├── package.json ├── style.css ├── index.html └── README.MD ├── 18 Adding Up Times with Reduce └── README.MD ├── 12 Key Sequence Detection ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 24 Sticky Nav ├── README.MD ├── original │ ├── style-START.css │ └── style-FINISHED.css └── style.css ├── 20 Speech Detection ├── package.json ├── original │ ├── package.json │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 21 Geolocation ├── package.json ├── original │ └── package.json └── README.MD ├── 08 Fun with HTML5 Canvas ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 28 Video Speed Controller ├── README.MD ├── original │ ├── index-START.html │ ├── style.css │ └── index-FINISHED.html ├── style.css └── index.html ├── 30 Whack A Mole ├── README.MD ├── original │ ├── index-START.html │ ├── style.css │ └── index-FINISHED.html ├── style.css └── index.html ├── 26 Stripe Follow Along Nav └── README.MD ├── 06 Type Ahead ├── original │ ├── index-START.html │ ├── style.css │ └── index-FINISHED.html └── README.MD ├── 10 Hold Shift and Check Checkboxes ├── README.MD └── original │ └── index-START.html ├── 16 Mouse Move Shadow ├── original │ ├── index-start.html │ └── index-finished.html ├── index.html └── README.MD ├── 22 Follow Along Link Highlighter ├── README.MD ├── original │ ├── style.css │ ├── index-START.html │ └── index-FINISHED.html ├── style.css └── index.html ├── 25 Event Capture, Propagation, Bubbling and Once ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 09 Dev Tools Domination ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 14 JavaScript References VS Copying ├── README.MD ├── original │ ├── index-START.html │ └── index-FINISHED.html └── index.html ├── 05 Flex Panel Gallery ├── README.MD └── original │ └── index-START.html ├── 23 Speech Synthesis ├── README.MD ├── npm-debug.log ├── original │ ├── index-START.html │ ├── index-FINISHED.html │ └── style.css ├── style.css └── index.html ├── 17 Sort Without Articles ├── README.MD ├── original │ ├── index-START.html │ └── index-FINISHED.html └── index.html ├── 27 Click and Drag ├── README.MD ├── original │ ├── index-START.html │ ├── style.css │ └── index-FINISHED.html ├── style.css └── index.html ├── 03 CSS Variables ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── index.html └── README.MD ├── 07 Array Cardio Day 2 ├── original │ ├── index-START.html │ └── index-FINISHED.html ├── README.MD └── index.html ├── 15 LocalStorage ├── README.MD ├── style.css └── original │ ├── style.css │ └── index-START.html ├── 13 Slide in on Scroll └── README.MD ├── 02 JS and CSS Clock ├── original │ ├── index-START.html │ └── index-FINISHED.html └── README.MD ├── 04 Array Cardio Day 1 ├── README.MD └── original │ └── index-START.html ├── README.MD └── Readme.MD /.gitignore: -------------------------------------------------------------------------------- 1 | */node_modules 2 | -------------------------------------------------------------------------------- /11 Custom Video Player/original/scripts.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /29 Countdown Timer/original/scripts-START.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/tom.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/tom.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/boom.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/boom.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/clap.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/clap.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/hihat.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/hihat.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/kick.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/kick.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/ride.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/ride.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/snare.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/snare.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/tink.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/tink.wav -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/original/sounds/openhat.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwatow/JavaScript30/HEAD/01 JavaScript Drum Kit/original/sounds/openhat.wav -------------------------------------------------------------------------------- /19 Webcam Fun/original/scripts.js: -------------------------------------------------------------------------------- 1 | const video = document.querySelector('.player'); 2 | const canvas = document.querySelector('.photo'); 3 | const ctx = canvas.getContext('2d'); 4 | const strip = document.querySelector('.strip'); 5 | const snap = document.querySelector('.snap'); 6 | -------------------------------------------------------------------------------- /18 Adding Up Times with Reduce/README.MD: -------------------------------------------------------------------------------- 1 | # 完成目標 2 | 3 | 今天我們要解決一些實際的問題,那就是把播放清單中的時間加起來。 4 | 5 | - 功能 6 | - 加總時間 7 | - 畫面 8 | - 依時間格式顯示`時:分:秒` 9 | 10 | # Javascript 11 | 12 | `map()`連擊!!! 13 | 可以一直將Array的元素轉成別的東西。 14 | 15 | ```javascript 16 | Array.map().map().map(); 17 | ``` 18 | -------------------------------------------------------------------------------- /01 JavaScript Drum Kit/index.css: -------------------------------------------------------------------------------- 1 | .key { 2 | width: 32px; 3 | height: 32px; 4 | 5 | border: solid 1px black; 6 | 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | 11 | margin-top: 5px; 12 | 13 | transition: all 0.07s; 14 | } 15 | 16 | .playing { 17 | width: 100px; 18 | } 19 | -------------------------------------------------------------------------------- /12 Key Sequence Detection/original/index-START.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |