Javascript, Snippets
JS if ($(‘.et_pb_contact_form’) .length) { $(window) .scroll(function() { var top_of_element = $(“.et_pb_contact_form”) .offset() .top; var bottom_of_element = $(“.et_pb_contact_form”) .offset() .top +...Javascript, Snippets
$(‘#thing’).mouseenter(function() { $(‘.thing’).addClass(‘hovered’); }).mouseleave(function() { $(‘.thing’).removeClass(‘hovered’); });Javascript, Snippets
/******* DRAW HOME SVG **********/ var path = document.querySelector(‘#home-svg-line-path’); var pathLength = path.getTotalLength() * 1.2; path.style.strokeDasharray = pathLength + ‘ ‘ + pathLength; path.style.strokeDashoffset = pathLength ;...Javascript, Snippets, WP
var cookieKeywordRemove = document.querySelector(‘.cli-modal’); cookieKeywordRemove.parentNode.removeChild(cookieKeywordRemove); var cookieKeywordRemove2 = document.querySelector(‘#cookie-law-info-again’);...Javascript, Snippets
function getGeocodingRegion() { return PropertiesService.getDocumentProperties().getProperty(‘GEOCODING_REGION’) || ‘us’; } /* function setGeocodingRegion(region) {...Javascript, Snippets
$(‘#artist-list a’).hover(function(){ let artistInListUrl = $(this).attr(‘href’); console.log(artistInListUrl); $.ajax({ url: artistInListUrl, dataType: ‘html’, success: function(response) {...