Retrospring/app/javascript/retrospring/features/memes/index.ts

12 lines
312 B
TypeScript

import cheet from 'cheet.js';
export default (): void => {
cheet('up up down down left right left right b a', () => {
document.body.classList.add('fa-spin');
Array.from(document.querySelectorAll('.question__text')).forEach((element: HTMLElement) => {
element.innerText = ':^)';
});
});
}