Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Devtools #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3826363
added working drum machine
Oct 3, 2017
c26a957
Merge pull request #1 from wcski/drumkit
Oct 4, 2017
9be6f47
removed completed files
Oct 6, 2017
0a73861
Merge pull request #2 from wcski/clock
Oct 6, 2017
ae074b2
added working clock
Oct 6, 2017
56068fb
Merge pull request #3 from wcski/clock
Oct 6, 2017
4518186
removed finished files
Oct 6, 2017
72279fb
Merge pull request #4 from wcski/css_variables
Oct 6, 2017
d35c2a5
added css variables
Oct 7, 2017
bcdc6e0
Merge pull request #5 from wcski/css_variables
Oct 7, 2017
cbf4fff
removed finished files
Oct 7, 2017
eccba0b
Merge pull request #6 from wcski/array-cardio-1
Oct 7, 2017
8e22fe8
added filter function
Oct 10, 2017
e97e0b4
Merge pull request #7 from wcski/array-cardio-1
Oct 10, 2017
727b7f8
mapping function added
Oct 11, 2017
191e41f
Merge pull request #8 from wcski/array-cardio-1
Oct 11, 2017
a61c683
added sort
Oct 11, 2017
2909ad9
added reduce
Oct 11, 2017
6fe424f
another sort
Oct 11, 2017
b4faf6e
Merge pull request #9 from wcski/array-cardio-1
Oct 11, 2017
6cb6a23
gets an aray of dom elements containing specific text
Oct 11, 2017
58b2cd7
added sort with split
Oct 11, 2017
30cc415
added reduce function
Oct 11, 2017
433ae83
Merge pull request #10 from wcski/array-cardio-1
Oct 11, 2017
dcff8b4
removed finished files
Oct 16, 2017
6a14910
Merge pull request #11 from wcski/flex-panel-gallery
Oct 16, 2017
b7baa73
added css and js transitions
Oct 16, 2017
23722b6
Merge pull request #12 from wcski/flex-panel-gallery
Oct 17, 2017
fee74c7
removed finished files
Oct 17, 2017
02b66bb
added type ahead search
Oct 17, 2017
98337d5
Merge pull request #13 from wcski/type-ahead
Oct 17, 2017
9e137f4
removed finished files
Oct 17, 2017
7820a9b
added some function
Oct 17, 2017
46046d7
Merge pull request #14 from wcski/array-cardio-2
Oct 17, 2017
f877ed8
reactored .some function
Oct 18, 2017
ceea0fd
Merge branch 'array-cardio-2'
Oct 18, 2017
d586b88
working on displaying html from js result
Oct 18, 2017
03b0c92
added find and findindex
Oct 31, 2017
1c26a30
Merge pull request #15 from wcski/array-cardio-2
Oct 31, 2017
d349c06
removed finished files
Oct 31, 2017
cfa5ec2
Merge pull request #16 from wcski/html5
Oct 31, 2017
9c6a341
started HTML5 canvas work
Nov 1, 2017
80768ff
added working canvas drawer
Nov 2, 2017
3c1c7c1
Merge pull request #17 from wcski/html5
Nov 2, 2017
12376ee
removed finished files
Nov 2, 2017
60c75a8
Revert "removed finished files"
Nov 2, 2017
d75b081
removed finished files
Nov 2, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 0 additions & 83 deletions 01 - JavaScript Drum Kit/index-FINISHED.html

This file was deleted.

17 changes: 17 additions & 0 deletions 01 - JavaScript Drum Kit/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,24 @@
<audio data-key="76" src="sounds/tink.wav"></audio>

<script>
function playsound(e) {
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
const key = document.querySelector(`.key[data-key="${e.keyCode}"]`);
if(!audio) return;
audio.currentTime = 0;
audio.play();
key.classList.add('playing');
};

function removeTransition(e) {
if(e.propertyName !== 'transform') return;
this.classList.remove('playing')
}

const keys = document.querySelectorAll('.key');
keys.forEach(key => key.addEventListener('transitionend', removeTransition));

window.addEventListener('keydown', playsound);
</script>


Expand Down
99 changes: 0 additions & 99 deletions 02 - JS and CSS Clock/index-FINISHED.html

This file was deleted.

31 changes: 30 additions & 1 deletion 02 - JS and CSS Clock/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,41 @@
background:black;
position: absolute;
top:50%;
transform-origin: 100%;
transform: rotate(90deg);
transition: all 0.5s;
}

</style>
.hour-hand {
background: red;
}

</style>

<script>

const secondHand = document.querySelector('.second-hand');
const minuteHand = document.querySelector('.min-hand');
const hourHand = document.querySelector('hour-hand');

function setDate() {
const now = new Date();

const seconds = now.getSeconds();
const secondsDegrees = ((seconds / 60) * 360) + 90;
secondHand.style.transform = `rotate(${secondsDegrees}deg)`;

const minutes = now.getMinutes();
const minutesDegrees = ((minutes / 60) * 360) + 90;
minuteHand.style.transform = `rotate(${minutesDegrees}deg)`;

const hours = now.getHours();
const hoursDegrees = ((hours / 12) * 360) + 90;
hourHand.style.transform = `rotate(${hoursDegrees}deg`;

}

setInterval(setDate, 1000);

</script>
</body>
Expand Down
76 changes: 0 additions & 76 deletions 03 - CSS Variables/index-FINISHED.html

This file was deleted.

26 changes: 26 additions & 0 deletions 03 - CSS Variables/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ <h2>Update CSS Variables with <span class='hl'>JS</span></h2>

<style>

:root {
--base: #ffc600;
--spacing: 10px;
--blur: 10px;
}

img {
padding: var(--spacing);
background: var(--base);
filter: blur(var(--blur));
}

.hl {
color: var(--base);
}
/*
misc styles, nothing to do with CSS variables
*/
Expand All @@ -45,6 +60,17 @@ <h2>Update CSS Variables with <span class='hl'>JS</span></h2>
</style>

<script>

const inputs = document.querySelectorAll('.controls input');

function handleUpdate() {
const suffix = this.dataset.sizing || '';
document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix);
}

inputs.forEach(input => input.addEventListener('change', handleUpdate));
inputs.forEach(input => input.addEventListener('mousemove', handleUpdate));

</script>

</body>
Expand Down
Loading