Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-around

Merging final product after updating readme
  • Loading branch information
anavgagneja committed Oct 9, 2016
2 parents 2c2e37d + c6230d1 commit bb1e108
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hello-ngi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
</div>
<img class="img-responsive" id="top" src="src/images/text.png">
<ul class="nav navbar-nav navbar-right">
<li ><a href="#title">Map</a></li>
<li ><a href="#about">About</a></li>
<li><a href="#">Credits</a></li>
<li><a href="#about5">Credits</a></li>

</ul>
</div>
Expand All @@ -38,7 +39,7 @@
<div id="map"></div>

<div class="col-xs-12" style="text-align:center;">
<a href="#about"><button id="more" href="#about">Learn More</button></a>
<a href="http://devpost.com/software/node-clowning-around-9cmqsp"><button id="more" >Learn More</button></a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion hello-ngi/webMap.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ header {

background: transparent;
color: #fff;
font-family: Arial;

font-weight: lighter;
height: 50px;
width: 200px;
Expand Down
20 changes: 19 additions & 1 deletion hello-ngi/webMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ var sections = $('section')
, nav_height = nav.outerHeight();
$(document).ready(function(){

if($(window).width() < 1073) {


$('body').hide();

}

alert($(window).innerWidth());

nav.find('a').on('click', function () {
var $el = $(this)
Expand Down Expand Up @@ -61,6 +69,12 @@ var firebaseRef = firebase.database().ref();
lng: position.coords.longitude
};

var contentString = '<div id="content">Clown Spotted</div>';
var infowindow = new google.maps.InfoWindow({
content: contentString
});


marker2 = new google.maps.Marker({
position: pos,
map: map,
Expand All @@ -70,6 +84,7 @@ var firebaseRef = firebase.database().ref();

map.setCenter(pos);

var markersArray = [];
firebaseRef.on('child_added', function(data) {

var lati = data.child("latitude").val();
Expand All @@ -81,10 +96,13 @@ var firebaseRef = firebase.database().ref();

});


});






}, function() {
handleLocationError(true, infoWindow, map.getCenter());
});
Expand Down

0 comments on commit bb1e108

Please sign in to comment.