This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mtkanjon on github. | |
* I am mtkanjon (https://keybase.io/mtkanjon) on keybase. | |
* I have a public key ASAzQNOXeTcerCLjJCE6c_-nTisQaQoIMXXVFbDzC1nvogo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup for mobile device vibration when social links are clicked | |
const links = document.querySelectorAll('a.social-link'); | |
for (const link of links) { | |
link.addEventListener('click', (event) => { | |
if (window.navigator.vibrate) { | |
window.navigator.vibrate(10); | |
} | |
}); | |
} |