Skip to content

Instantly share code, notes, and snippets.

View oak-wildwood's full-sized avatar

Oak Cooper oak-wildwood

View GitHub Profile
@oak-wildwood
oak-wildwood / CalendlyEmbedReact.js
Last active September 13, 2022 00:08
Calendly Embed React component
import React from 'react';
class CalendlyEmbed extends React.Component {
calendlyScriptSrc = 'https://assets.calendly.com/assets/external/widget.js'
buildCalendlyUrl = (account, eventName) =>
`https://calendly.com/${account}/${eventName}`
componentDidMount() {
const head = document.querySelector('head')
const script = document.createElement('script')
@oak-wildwood
oak-wildwood / horiz_berniepb.js
Last active March 15, 2016 21:09
Horizontal Layout Tweak for BerniePB.com
javascript:(function() {
var $callGoals = $('#call-goals-wrapper'),
$map = $('#map-wrapper').parent('div');
$callGoals.css({
position: 'absolute',
left: '0',
right: '50%',
width: '50%'
});