Skip to content

Instantly share code, notes, and snippets.

View learyjk's full-sized avatar

Keegan Leary learyjk

View GitHub Profile
function initialize() {
var markers = [];
var input = /** @type {HTMLInputElement} */
(document.getElementById('Address'));
var options = {
componentRestrictions: {
country: 'gb'
}
}
var autocomplete = new google.maps.places.Autocomplete(input,options);
// Define your attribute names here.
const ATTR_NAME = "wb-data";
const ATTR_ITEM_VALUE = "tab-item";
const ATTR_CONTENT_VALUE = "tab-content";
gsap.registerPlugin(ScrollTrigger);
function init() {
const tabItems = document.querySelectorAll(
`[${ATTR_NAME}="${ATTR_ITEM_VALUE}"]`
@learyjk
learyjk / ball-drop-with-setion-matter-js.markdown
Created March 20, 2022 04:37
Ball Drop with setion matter.js