1 2jQuery( document ).ready(function() { 3 4/*if (typeof google === 'object' && typeof google.maps === 'object') { 5 var initSSFwidget = new google.maps.event.addDomListener(window, 'load', initializeSSFWidget); 6} else { 7*/ 8 9 //alert(typeof initStoreLocator); 10 11 if(typeof initStoreLocator == 'function' || typeof get_coordinate == 'function'){ 12 // don't load Google Maps 13 } else { 14 var googleApi=''; 15 if(ssf_api_key!='' && ssf_api_key!='undefined'){ 16 ssf_api_key = window.atob(ssf_api_key); 17 googleApi='key='+ssf_api_key+'&'; 18 } 19 20jQuery.getScript('https://maps.googleapis.com/maps/api/js?'+googleApi+'sensor=false&libraries=places&language='+ssf_m_lang+'®ion='+ssf_m_rgn+'&callback=initializeSSFWidget'); 21 22 } 23 24//var initSSFwidget = new google.maps.event.addDomListener(window, 'load', initializeSSFWidget); 25/*}*/ 26 27 28 29 30//var initSSFwidget = new google.maps.event.addDomListener(window, 'load', initializeSSFWidget); 31 32 33}); 34 35function initializeSSFWidget() { 36 37 38 if(ssf_defualt_region=='false'){ 39 var inputSSFwidget = document.getElementById('ssfboxsearch'); 40 new google.maps.places.Autocomplete(inputSSFwidget, { 41 componentRestrictions: {'country': ssf_m_rgn} 42 }); 43 44 }else{ 45 var inputSSFwidget = document.getElementById('ssfboxsearch'); 46 new google.maps.places.Autocomplete(inputSSFwidget, { 47 }); 48 } 49 50}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.