Skip to content

Instantly share code, notes, and snippets.

View MSIH's full-sized avatar

MSIH LLC MSIH

View GitHub Profile
@MSIH
MSIH / gist:cdb9f048aee97d56086db55091ec8464
Created February 18, 2022 17:54
Get address components from google places
var getAddressProperty = function (place, property, shortName) {
var addressComponents = place.address_components;
for (var componentIndex in addressComponents) {
var component = addressComponents[componentIndex];
var types = component.types;
if (types.length > 0) {
for (var typeIndex in types) {
var type = types[typeIndex];
if (type === property) {
return (shortName) ? component.short_name : component.long_name;
@MSIH
MSIH / style.scss
Last active August 29, 2015 14:10 — forked from daz/style.scss
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_width: 160px;
padding: 4px 0;