- Vist https://twitter.com/settings/your_twitter_data/twitter_interests
- Open the JS console
- Run the script
let checkedInterests = [...document.querySelectorAll("input:checked")];
checkedInterests.forEach((input, index) => {
let checkedInterests = [...document.querySelectorAll("input:checked")];
checkedInterests.forEach((input, index) => {
const MyToggleButton = ({ isContentReady, {...props} }) => { | |
const modelConfig = { | |
isIntiallyToggled: true, | |
shouldToggle: (data, state) => { | |
if (!iContentReady) { | |
return false; | |
} | |
return true; | |
}, | |
onToggle: (data, prevState) => { |
function eventHandler(...fns) {
return (e) => {
fns.forEach(fn => fn(e);
}
}
function Component({ onClick )) {
const handler = useClickable();
// generate a random answer for a given range | |
function setAnswer(min, max) { | |
return Math.floor(Math.random() * (max - min + 1) + min); | |
} | |
// find the midpoint for a given range | |
function getRangeMidpoint(min, max) { | |
const count = min + max - 1; | |
return Math.ceil(count/2); | |
} |
Below are lists of simple cocktails to make at home that often share the same ingredients. If you're getting started, this is a great list to get some classic cocktails under your belt and practice your technique.
Menu
follows the Actions Menu pattern using aria-activedescendant
. Below is table of supported keyboard shortcuts and associated actions.
Key | Action |
---|---|
Enter or Space |
Activates the menu item and then closes the menu |
Escape |
Closes the menu |
Up Arrow |
Moves focus to the previous menu item – if focus is on first menu i |