
      function initMap() {
        var map = new google.maps.Map(document.getElementById('map'), {
          zoom: 4,
          center: {lat: -34.397, lng: 150.644}
        });
        var geocoder = new google.maps.Geocoder();

        geocodeAddress(geocoder, map);
      }

      function geocodeAddress(geocoder, resultsMap) {
        //var address = document.getElementById('address').value;
        var address = document.getElementsByClassName('paragraph');
        var userinfo = document.getElementsByClassName('userinfo');


        newArr = []
        for (var i = 0; i <address.length; i ++){
          addresstext = address[i].innerHTML
          console.log(addresstext)

          newArr.push(userinfo[i].innerHTML)
          // userinfotext = userinfo[i].innerHTML


           console.log("Before the geocode callback")
          geocoder.geocode({'address': addresstext}, function(results, status) {
            if (status === google.maps.GeocoderStatus.OK) {
              resultsMap.setCenter(results[0].geometry.location);
              var marker = new google.maps.Marker({
                map: resultsMap,
                position: results[0].geometry.location
              });

               var infowindow = new google.maps.InfoWindow({
                  content: "<strong style='color: #B3D1FF'>" + newArr.shift() + "</strong>"
               });

              marker.addListener('click', function() {
                infowindow.open(resultsMap, marker);
              });



            }
            else {
              alert('Geocode was not successful for the following reason: ' + status);
            }
          });
        }
      }


// debugger;



@@ -531,29 +531,122 @@
 ');%0A
-%0A%0A        newArr = %5B%5D
+        var createdat = document.getElementsByClassName('created');%0A%0A%0A        newArr = %5B%5D%0A        createdArr = %5B%5D%0A
 %0A   
@@ -818,16 +818,66 @@
 erHTML)%0A
+          createdArr.push(createdat%5Bi%5D.innerHTML)%0A
         
@@ -1492,16 +1492,75 @@
 strong%3E%22
+ + %22%3Cp style='color: black'%3E%22 + createdArr.shift() + %22%3C/p%3E%22
 %0A       

add date to feed info windows