This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Snippet gp_google_autocomplete --> | |
{% if gp_google_autocomplete %} | |
{% assign gp_api_key = settings.gp_add_merchant_api_key | strip %} | |
{% unless gp_api_key == '' %} | |
<script> | |
var pageChangeChecker = function(name, section, callback) { | |
// checking for a specific class-attribute, else it's been erased by page:change | |
if (!$(section).hasClass(name)) { | |
if (typeof(callback) === 'function') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GpCheckoutAutocomplete = (function() { | |
function GpCheckoutAutocomplete() { | |
this.enableGeolocate = false; | |
this.countryError = 'Please select valid country'; | |
this.addressInput = 'shipping_address'; | |
this.address1ErrorPlaceholder = 'Address'; | |
this.authFailure = false; | |
this.googleMapsCircle = {}; | |
this.boundsInterval = {}; | |
this.componentForm = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, | |
"google_places": { | |
"checkout": { | |
"field_errors": { | |
"country_invalid": "Please select valid country" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, | |
{ | |
"name": "Google Places Autocomplete", | |
"settings": [ | |
{ | |
"type": "header", | |
"content": "Google Places Autocomplete" | |
}, | |
{ | |
"type": "paragraph", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ '//code.jquery.com/jquery-1.12.4.min.js' | script_tag }} | |
{% include 'gp_google_autocomplete' with settings.gp_enable_google_autocomplete %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<div class="something03"></div> | |
<div class="something02"></div> | |
<div class="something01"></div> | |
<div class="something1"></div> | |
<div class="something2"></div> | |
<div class="something3"></div> | |
<div class="something4"></div> | |
</div> |