Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Orlandster's full-sized avatar
😃
fulfilled, like a resolved promise

Orlandster Orlandster

😃
fulfilled, like a resolved promise
  • Zürich, Switzerland
View GitHub Profile
// by jfriend00 - https://stackoverflow.com/questions/46416433/how-to-resolve-a-promise-multiple-times
function getNotifier() {
const event = new Event('myEvent');
setTimeout(() => {
window.dispatchEvent(event);
}, 500);
setTimeout(() => {
< 768px = xs // @media (max-width : 767px) {}
≥ 768px = sm // @media (min-width : 768px) and (max-width : 991px) {}
≥ 992px = md // @media (min-width : 992px) and (max-width : 1199px) {}
≥ 1200px = lg // @media (min-width : 1200px) {}