Skip to content

Commit

Permalink
1) contact page google maps 2)integrated will new profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
bindumareedu committed Apr 23, 2019
1 parent 760e5d5 commit 8864678
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if (isset($_SESSION['username'])){
// I'm re-directing it to index page for now.
// But needs to be pointed to DASHBOARD.
header('Location: ../pages-profile.php');
header('Location: ../newprofile.php');
}
else{
echo "something went wrong, please try again!";
Expand Down
43 changes: 41 additions & 2 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@

<!-- Responsive CSS -->
<link href="css/responsive.css" rel="stylesheet">
<style>
#map {
height: 600px; /* The height is 400 pixels */
width: 100%;
margin:32px 0 ;/* The width is the width of the web page */
position:relative;
overflow:hidden;

}
</style>

</head>

Expand Down Expand Up @@ -150,7 +160,7 @@ <h2>Please get in touch</h2>
<div class="container">
<div class="row justify-content-end">
<div class="col-10">
<div id="googleMap"></div>
<div id="map"></div>
<!-- Contact Info -->
<div class="contact-core-info d-flex align-items-center wow fadeInLeftBig" data-wow-delay="1s" data-wow-duration="1000ms">
<div class="contactInfo">
Expand Down Expand Up @@ -235,7 +245,36 @@ <h5>Follow me @ Instagram</h5>
<script src="js/active.js"></script>
<!-- Google Maps -->

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDUA3MSCu-0oU8aj5tAlMy96JPrdZ28Vg8&callback=initMap"></script>
<script>
function initMap() {
// var address="47408";
// var geocoder = new google.maps.Geocoder();
// var latitude;
// var longitude;
// geocoder.geocode( { 'address': address}, function(results, status) {

// if (status == google.maps.GeocoderStatus.OK) {
// latitude = results[0].geometry.location.lat();
// longitude = results[0].geometry.location.lng();
// }
// else{
// console.log("unknown error");
// }
// });
// console.log("latitude",latitude);
var uluru = {lat: 41.881832,lng: -87.623177};
var map = new google.maps.Map(
document.getElementById('map'), {zoom: 8, center: uluru});
// The marker, positioned at Uluru
var marker = new google.maps.Marker({position: uluru, map: map});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAQmmzg6qwEu7XPe1tzXh5dSJtLlIurcfo&callback=initMap">
</script>


{% comment %} <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDUA3MSCu-0oU8aj5tAlMy96JPrdZ28Vg8&callback=initMap"></script> {% endcomment %}

<script src="js/map-active.js"></script>

Expand Down

0 comments on commit 8864678

Please sign in to comment.