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 $wrapper = $('.my-element'); | |
$(document).on('click', e => { | |
if (!$wrapper.is(e.target) && $wrapper.has(e.target).length === 0) { | |
// do your stuff | |
} | |
}); |
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
/** | |
* Monta uma estrutura de classes CSS usando a metotologia BEM. | |
* @param {string} block | |
* Bloco base da classe CSS. Se passar apenas ele, retorna um construtor. | |
* @param {string} element | |
* @param {string[]} modifiers | |
* @returns {string|() => string} | |
* Classes CSS ou construtor baseado no bloco. | |
* @example | |
* const ordinaryClasses = mountBEMClass('block', 'element', 'modifier1', 'modifier2'); |
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
import React, { useState } from 'react'; | |
import Section from './Section'; | |
import Bullets from './Bullets'; | |
const images = ['01', '02', '03', '04', '05']; | |
function App() { | |
const [activeSection, setActiveSection] = useState(0); |
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
<script charset="utf-8" type="text/javascript" async> | |
try { | |
configureR3().then(function() { | |
window.R3_ERROR = new r3_error(); | |
rr_flush_onload(); | |
r3(); | |
}); | |
} catch (error) { | |
console.error('GTM -> RR Error Page -> error', error); | |
} |
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
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
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
{ | |
"description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] |
OlderNewer