This file contains hidden or 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
| ;(function() { | |
| const elems = document.querySelectorAll('[data-tooltip]') | |
| const tip = document.createElement('div') | |
| tip.classList.add('tooltip') | |
| document.body.append(tip) | |
| const mouseMove = (e) => { | |
| let { clientX, clientY } = e | |
| let current | |
| elems.forEach(elem => { |
This file contains hidden or 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
| ;(function() { | |
| const baseToggle = (target, fn = () => {}) => { | |
| let button = target.closest('[data-tggl-button]') | |
| if (!button) return | |
| let hideClass = button.getAttribute('data-tggl-button') || 'hide' | |
| let parent = button.closest('[data-tggl-parent]') | |
| if (!parent) return | |
| let items = parent.querySelectorAll('[data-tggl-item]') |
This file contains hidden or 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
| window.onkeydown = function(e) { | |
| if (e.keyCode == 27) { | |
| var focused = document.activeElement; | |
| if (focused.tagName == 'INPUT' || focused.tagName == 'TEXTAREA') { | |
| focused['blur']() | |
| } | |
| } | |
| } |
This file contains hidden or 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
| git reset --soft HEAD^ |
This file contains hidden or 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
| $gridPad: 20px | |
| $gridColLen: 12 | |
| .g-row | |
| display: flex | |
| flex-wrap: wrap | |
| width: calc(100% + #{$gridPad}) | |
| margin-left: -#{$gridPad / 2} | |
| margin-right: -#{$gridPad / 2} | |
| .g-col |
This file contains hidden or 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
| const release = Machine( { | |
| id: "release", | |
| initial: "start", | |
| context: { | |
| level: "patch", | |
| tag: "0.0.1", | |
| fixVersion: "SSR_release_v0.0.1", | |
| }, | |
| states: { | |
| start: { |
OlderNewer