1 2(function($) { 3 "use strict"; 4 5 function isGoogleMapsLoaded() { 6 console.log(typeof google !== 'undefined' && typeof google.maps !== 'undefined'); 7 return typeof google !== 'undefined' && typeof google.maps !== 'undefined'; 8 } 9 10 $(document).ready(function(){ 11 12 if (isGoogleMapsLoaded()) { 13 // console.log('already loaded 123'); 14 } else { 15 // console.log('not loaded 123'); 16 $.getScript('https://maps.googleapis.com/maps/api/js?key=AIzaSyBpP-5WCGZu8_GxH6DdgqqUQFHtKprPHB0&libraries=places', function() { 17 if (typeof initMap === 'function') { 18 initMap(); 19 } 20 if (typeof initMapInaus === 'function') { 21 initMapInaus(); 22 } 23 if (typeof initMapChoghadiya === 'function') { 24 initMapChoghadiya(); 25 } 26 if (typeof initMapNakshatra === 'function') { 27 initMapNakshatra(); 28 } 29 if (typeof initMapSM === 'function') { 30 initMapSM(); 31 } 32 if (typeof initMapPanchang === 'function') { 33 initMapPanchang(); 34 } 35 if (typeof initMapSamvat === 'function') { 36 initMapSamvat(); 37 } 38 if (typeof initMapAyana === 'function') { 39 initMapAyana(); 40 } 41 if (typeof initMapAuspi === 'function') { 42 initMapAuspi(); 43 } 44 if (typeof initMapShool === 'function') { 45 initMapShool(); 46 } 47 if (typeof initMapEpoch === 'function') { 48 initMapEpoch(); 49 } 50 if (typeof initMapChandra === 'function') { 51 initMapChandra(); 52 } 53 if (typeof initMapUdaya === 'function') { 54 initMapUdaya(); 55 } 56 if (typeof initMapUdaya === 'function') { 57 initMapUdaya(); 58 } 59 if (typeof initMapFestivals === 'function') { 60 initMapFestivals(); 61 } 62 if (typeof kundaliMng != 'undefined' && typeof kundaliMng.initmap === 'function') { 63 kundaliMng.initmap(); 64 } 65 if (typeof kundaliMatchingMng != 'undefined' && typeof kundaliMatchingMng.initmap === 'function') { 66 kundaliMatchingMng.initmap(); 67 } 68 }); 69 } 70 71 }); 72 73})(jQuery);
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.