Skip to content

Instantly share code, notes, and snippets.

View alexandru-burca's full-sized avatar
🏠
Working from home

Alexandru Burca alexandru-burca

🏠
Working from home
View GitHub Profile
@dwayne
dwayne / horizontal-list-span-width.scss
Last active May 19, 2021 03:01
How to make a horizontal list span the width of its container element
// Thanks to CSS Tricks for the inspiration: http://css-tricks.com/equidistant-objects-with-css/
@mixin horizontal-list-span-width {
margin: 0;
padding: 0;
list-style-type: none;
text-align: justify;
&:after {
@NickDeckerDevs
NickDeckerDevs / index.js
Last active March 1, 2023 13:55
hubspot video status handling? via Stuart Grant - Dev @ King Post Studio, LLC (hubspot dev slack)
const SET_PLAYER_STATUS = 'SET_PLAYER_STATUS';
const hsVideos = window.hsVideoApi?.getPlayers();
const videoEls = document.querySelectorAll('.video-container');
function manageVideoStatus() {
videoEls.forEach((videoEl) => {
const iframe = videoEl.querySelector('iframe');
if (iframe) {
const videoId = iframe.getAttribute('id')?.replace('hs_player_', '');