adding test brewery map
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 27 Apr 2018 19:49:15 +0000 (15:49 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 27 Apr 2018 19:49:15 +0000 (15:49 -0400)
adding brewery map test and fixing 269 animations

20 files changed:
assets/markers/arcadia.png [new file with mode: 0644]
assets/markers/bells.png [new file with mode: 0644]
assets/markers/bilbos.png [new file with mode: 0644]
assets/markers/blank.png [new file with mode: 0644]
assets/markers/boatyard.png [new file with mode: 0644]
assets/markers/bravo.png [new file with mode: 0644]
assets/markers/brite.png [new file with mode: 0644]
assets/markers/distant.png [new file with mode: 0644]
assets/markers/gonzo.png [new file with mode: 0644]
assets/markers/latitude.png [new file with mode: 0644]
assets/markers/olde.png [new file with mode: 0644]
assets/markers/one.png [new file with mode: 0644]
assets/markers/rupert.png [new file with mode: 0644]
assets/markers/texas.png [new file with mode: 0644]
assets/markers/tibbs.png [new file with mode: 0644]
brewery-map.php [new file with mode: 0644]
js/app.js
js/custom/pageSetup.js
sections/brewery-map.php [new file with mode: 0644]
sections/interior-page.php

diff --git a/assets/markers/arcadia.png b/assets/markers/arcadia.png
new file mode 100644 (file)
index 0000000..3e9e4fc
Binary files /dev/null and b/assets/markers/arcadia.png differ
diff --git a/assets/markers/bells.png b/assets/markers/bells.png
new file mode 100644 (file)
index 0000000..caceb1b
Binary files /dev/null and b/assets/markers/bells.png differ
diff --git a/assets/markers/bilbos.png b/assets/markers/bilbos.png
new file mode 100644 (file)
index 0000000..7b7b77b
Binary files /dev/null and b/assets/markers/bilbos.png differ
diff --git a/assets/markers/blank.png b/assets/markers/blank.png
new file mode 100644 (file)
index 0000000..04e5d24
Binary files /dev/null and b/assets/markers/blank.png differ
diff --git a/assets/markers/boatyard.png b/assets/markers/boatyard.png
new file mode 100644 (file)
index 0000000..4e64817
Binary files /dev/null and b/assets/markers/boatyard.png differ
diff --git a/assets/markers/bravo.png b/assets/markers/bravo.png
new file mode 100644 (file)
index 0000000..d3a90fe
Binary files /dev/null and b/assets/markers/bravo.png differ
diff --git a/assets/markers/brite.png b/assets/markers/brite.png
new file mode 100644 (file)
index 0000000..c1abd8f
Binary files /dev/null and b/assets/markers/brite.png differ
diff --git a/assets/markers/distant.png b/assets/markers/distant.png
new file mode 100644 (file)
index 0000000..464dacb
Binary files /dev/null and b/assets/markers/distant.png differ
diff --git a/assets/markers/gonzo.png b/assets/markers/gonzo.png
new file mode 100644 (file)
index 0000000..7774fd2
Binary files /dev/null and b/assets/markers/gonzo.png differ
diff --git a/assets/markers/latitude.png b/assets/markers/latitude.png
new file mode 100644 (file)
index 0000000..0b6c3d5
Binary files /dev/null and b/assets/markers/latitude.png differ
diff --git a/assets/markers/olde.png b/assets/markers/olde.png
new file mode 100644 (file)
index 0000000..d122445
Binary files /dev/null and b/assets/markers/olde.png differ
diff --git a/assets/markers/one.png b/assets/markers/one.png
new file mode 100644 (file)
index 0000000..ba84eb7
Binary files /dev/null and b/assets/markers/one.png differ
diff --git a/assets/markers/rupert.png b/assets/markers/rupert.png
new file mode 100644 (file)
index 0000000..9d09884
Binary files /dev/null and b/assets/markers/rupert.png differ
diff --git a/assets/markers/texas.png b/assets/markers/texas.png
new file mode 100644 (file)
index 0000000..7fa2e62
Binary files /dev/null and b/assets/markers/texas.png differ
diff --git a/assets/markers/tibbs.png b/assets/markers/tibbs.png
new file mode 100644 (file)
index 0000000..2cca583
Binary files /dev/null and b/assets/markers/tibbs.png differ
diff --git a/brewery-map.php b/brewery-map.php
new file mode 100644 (file)
index 0000000..d496460
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+/*
+Template Name: GLM Brewery Map
+*/
+get_template_part('index');
\ No newline at end of file
index 08bcbc3..828dac5 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -180,20 +180,20 @@ $(document).ready(function () {
          }
 
      if( $('.blur-action').length > 0 ){
-         if( $(".blur-action").isInViewport(100)[0] && our_impact_seen == false  ){
-             $('.blur-container').children('span:first-child').addClass("sight");
+         if( $(".blur-action").isInViewport(300)[0] && our_impact_seen == false  ){
+            //  $('.blur-container').children('span:first-child').addClass("sight");
 
              window.setTimeout(function(){
                  $('.first-blur').animate({opacity: 1}, 200);
                  var our_impact_counter = new CountUp('first-blur', 0, parseInt(the_number), 0, 2.5, countup_options);
                  if (!our_impact_counter.error) {
-                 our_impact_counter.start();
+                    our_impact_counter.start();
                  } else {
-                 console.error(our_impact_counter.error);
+                    console.error(our_impact_counter.error);
                  }
-             }, 1000);
+             }, 500);
           
-             window.setTimeout(function(){$('.blur-container').children("span:nth-child(3)").addClass("sight");}, 600);
+            //  window.setTimeout(function(){$('.blur-container').children("span:nth-child(3)").addClass("sight");}, 600);
              our_impact_seen         = true;
          }
       
index 75dd61f..42402c7 100644 (file)
@@ -171,20 +171,20 @@ $(document).ready(function () {
          }
 
      if( $('.blur-action').length > 0 ){
-         if( $(".blur-action").isInViewport(100)[0] && our_impact_seen == false  ){
-             $('.blur-container').children('span:first-child').addClass("sight");
+         if( $(".blur-action").isInViewport(300)[0] && our_impact_seen == false  ){
+            //  $('.blur-container').children('span:first-child').addClass("sight");
 
              window.setTimeout(function(){
                  $('.first-blur').animate({opacity: 1}, 200);
                  var our_impact_counter = new CountUp('first-blur', 0, parseInt(the_number), 0, 2.5, countup_options);
                  if (!our_impact_counter.error) {
-                 our_impact_counter.start();
+                    our_impact_counter.start();
                  } else {
-                 console.error(our_impact_counter.error);
+                    console.error(our_impact_counter.error);
                  }
-             }, 1000);
+             }, 500);
           
-             window.setTimeout(function(){$('.blur-container').children("span:nth-child(3)").addClass("sight");}, 600);
+            //  window.setTimeout(function(){$('.blur-container').children("span:nth-child(3)").addClass("sight");}, 600);
              our_impact_seen         = true;
          }
       
diff --git a/sections/brewery-map.php b/sections/brewery-map.php
new file mode 100644 (file)
index 0000000..49bd78e
--- /dev/null
@@ -0,0 +1,306 @@
+
+<div id="brewery-map-container">
+    <div id="brewery-map" ></div>
+</div>
+<?php $url = get_stylesheet_directory_uri(). '/assets/markers/'; ?>
+<script>
+    function initMap() {
+        // Styles a map in night mode.
+        var url = '<?php echo $url ?>';
+        console.log(url);
+        var map = new google.maps.Map(document.getElementById('brewery-map'), {
+            center: {lat: 42.2903325, lng: -85.5853277 },
+            zoom: 13,
+            styles: [
+                {
+                    "featureType": "administrative.neighborhood",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#a3a470"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "landscape.man_made",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#eec081"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "landscape.natural",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#eec081"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "landscape.natural.landcover",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#eec081"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "landscape.natural.terrain",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#eec081"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.attraction",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.attraction",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.business",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.business",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.government",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.government",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.medical",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.medical",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.park",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#a3a470"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.place_of_worship",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.place_of_worship",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.school",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#a3a470"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.school",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "poi.sports_complex",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#bb8f63"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "road.highway",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#ffffff"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "road.highway",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#ffffff"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "transit.line",
+                    "elementType": "geometry.stroke",
+                    "stylers": [
+                    {
+                        "color": "#9b321b"
+                    }
+                    ]
+                },
+                {
+                    "featureType": "water",
+                    "elementType": "geometry.fill",
+                    "stylers": [
+                    {
+                        "color": "#728890"
+                    }
+                    ]
+                }
+            ]
+        });
+        var brewers = [
+            {
+            position: new google.maps.LatLng(42.295573, -85.571195),
+            brewery: 'Arcadia Brewing Co',
+            icon: 'arcadia.png'
+            }, {
+            position: new google.maps.LatLng(42.2947, -85.5789),
+            brewery: 'Bell’s Eccentric Cafe',
+            icon: 'bells.png'
+            }, {
+            position: new google.maps.LatLng(42.2911, -85.5897),
+            brewery: 'Gonzo’s BiggDog Brewing',
+            icon: 'gonzo.png'
+            }, {
+            position: new google.maps.LatLng(42.2917, -85.5816),
+            brewery: 'Olde Peninsula Brewpub',
+            icon: 'olde.png'
+            }, {
+            position: new google.maps.LatLng(42.2907, -85.5943),
+            brewery: 'Rupert’s Brew House',
+            icon: 'rupert.png'
+            }, {
+            position: new google.maps.LatLng(42.2887, -85.5831),
+            brewery: 'Tibbs Brewing Co.',
+            icon: 'tibbs.png'
+            }, {
+            position: new google.maps.LatLng(42.3033, -85.5771),
+            brewery: 'Boatyard Brewing Co',
+            icon: 'boatyard.png'
+            }, {
+            position: new google.maps.LatLng(45.3749, -84.9592),
+            brewery: 'Brite Eyes Brewing',
+            icon: 'brite.png'
+            }, {
+            position: new google.maps.LatLng(42.2072, -85.5599),
+            brewery: 'Latitude 42 Brewing Co.',
+            icon: 'latitude.png'
+            }, {
+            position: new google.maps.LatLng(42.248685, -85.559075),
+            brewery: 'One Well Brewing',
+            icon: 'one.png'
+            }, {
+            position: new google.maps.LatLng(42.2031, -85.6867),
+            brewery: 'Texas Corners Brewery',
+            icon: 'texas.png'
+            }, {
+            position: new google.maps.LatLng(42.1191, -85.5324),
+            brewery: 'Distant Whistle Brewhouse',
+            icon: 'distant.png'
+            }, {
+            position: new google.maps.LatLng(42.2716, -85.6307),
+            brewery: 'Bilbo’s Pizza in a Pan',
+            icon: 'bilbos.png'
+            }, {
+            position: new google.maps.LatLng(-33.91665018901448, 151.2282474695587),
+            brewery: 'Bravo! Restaurant & Cafe',
+            icon: 'bravo.png'
+            }, {
+            position: new google.maps.LatLng(-33.919543720969806, 151.23112279762267),
+            brewery: 'Dark Horse Brewing Co',
+            icon: 'blank.png'
+            }, {
+            position: new google.maps.LatLng(-33.91608037421864, 151.23288232673644),
+            brewery: 'Final Gravity Brewing Co',
+            icon: 'blank.png'
+            }, {
+            position: new google.maps.LatLng(-33.91851096391805, 151.2344058214569),
+            brewery: 'Paw Paw Brewing Co.',
+            icon: 'blank.png'
+            }, 
+        ];
+        // Create markers.
+            brewers.forEach(function(feature) {
+                var marker = new google.maps.Marker({
+                    position: feature.position,
+                    icon: url+feature.icon,
+                    map: map,
+                    html: `<img src="${url}${feature.icon}">`
+                });
+            });
+    }
+    </script>
+<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCBFqeBtlAGoVcpFBa5Ldrb1QajYnbCrac&amp;callback=initMap" async="" defer=""></script>
\ No newline at end of file
index 3a37eea..f88602c 100644 (file)
                         <?php get_template_part('parts/main-content'); ?>
                     </div>
                 <?php break;
-
+                // GLM Brewery Map
+                case "brewery-map.php": ?>
+                    <div class="row">
+                        <div class="small-12 columns">
+                            <?php get_template_part('sections/brewery-map'); ?>
+                        </div>
+                    </div>
+                <?php break;
                 // Craft Beer Template
                 case "craft-beer-template.php": ?>
                 <div id="lens">