Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var GOOGLE_MAP_KEY = "prdukcniklic";
- if(productioion == false){
- GOOGLE_MAP_KEY = "testklic";
- }
- function loadScript() {
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = 'https://maps.googleapis.com/maps/api/js?v=3' +
- '&key=' + GOOGLE_MAP_KEY +'&callback=initialize'; //& needed
- document.body.appendChild(script);
- }
- window.onload = loadScript;
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement