From c8437322f934aff8ad331a98966e4d948a7ac094 Mon Sep 17 00:00:00 2001 From: Andrew Lee <andytaelee@gmail.com> Date: Tue, 25 Oct 2016 10:52:58 -0400 Subject: [PATCH] Fix Google Map --- _includes/head.html | 5 -- contact.html | 2 +- js/google-map-init.js | 137 ------------------------------------------ 3 files changed, 1 insertion(+), 143 deletions(-) delete mode 100755 js/google-map-init.js diff --git a/_includes/head.html b/_includes/head.html index 7b4293f..df31601 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -17,7 +17,6 @@ <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css" /> <!-- Js --> -<script src="/js/vendor/modernizr-2.6.2.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script> <script src="{{ site.baseurl }}/js/bootstrap.min.js"></script> @@ -26,9 +25,5 @@ <script src="{{ site.baseurl }}/js/min/waypoints.min.js"></script> <script src="{{ site.baseurl }}/js/jquery.counterup.js"></script> -<!-- Google Map --> -<script src="https://maps.googleapis.com/maps/api/js"></script> -<script src="{{ site.baseurl }}/js/google-map-init.js"></script> - <script src="{{ site.baseurl }}/js/main.js"></script> diff --git a/contact.html b/contact.html index 83c3f0f..c84bb49 100755 --- a/contact.html +++ b/contact.html @@ -92,7 +92,7 @@ permalink: /contact/ <div class="block"> <h2>We Also Count In Google Map</h2> <div class="google-map"> - <div id="map"></div> + <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3022.472979439986!2d-73.97769068489596!3d40.7516207793276!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c2590247c56379%3A0x15e13bea38b43e18!2sChrysler+Building!5e0!3m2!1sen!2sus!4v1477406538220" width="555" height="300" frameborder="0" style="border:0" allowfullscreen></iframe> </div> </div> </div> diff --git a/js/google-map-init.js b/js/google-map-init.js deleted file mode 100755 index 85cf4da..0000000 --- a/js/google-map-init.js +++ /dev/null @@ -1,137 +0,0 @@ -jQuery(document).ready(function() { - "use strict"; - - - function b() { - var a = { - zoom: 11, - scrollwheel: false, - center: new google.maps.LatLng(40.67, -73.94), - styles: [{ - "featureType": "landscape", - "stylers": [ - { - "saturation": -100 - }, - { - "lightness": 65 - }, - { - "visibility": "on" - } - ] - }, - { - "featureType": "poi", - "stylers": [ - { - "saturation": -100 - }, - { - "lightness": 51 - }, - { - "visibility": "simplified" - } - ] - }, - { - "featureType": "road.highway", - "stylers": [ - { - "saturation": -100 - }, - { - "visibility": "simplified" - } - ] - }, - { - "featureType": "road.arterial", - "stylers": [ - { - "saturation": -100 - }, - { - "lightness": 30 - }, - { - "visibility": "on" - } - ] - }, - { - "featureType": "road.local", - "stylers": [ - { - "saturation": -100 - }, - { - "lightness": 40 - }, - { - "visibility": "on" - } - ] - }, - { - "featureType": "transit", - "stylers": [ - { - "saturation": -100 - }, - { - "visibility": "simplified" - } - ] - }, - { - "featureType": "administrative.province", - "stylers": [ - { - "visibility": "off" - } - ] - }, - { - "featureType": "water", - "elementType": "labels", - "stylers": [ - { - "visibility": "on" - }, - { - "lightness": -25 - }, - { - "saturation": -100 - } - ] - }, - { - "featureType": "water", - "elementType": "geometry", - "stylers": [ - { - "hue": "#ffff00" - }, - { - "lightness": -25 - }, - { - "saturation": -97 - } - ] - }] - }, - b = document.getElementById("map"), - c = new google.maps.Map(b, a); - new google.maps.Marker({ - position: new google.maps.LatLng(40.67, -73.94), - map: c, - title: "Snazzy!" - }) - } - google.maps.event.addDomListener(window, "load", b); - -}); \ No newline at end of file -- GitLab