Portfolio

//google.maps.event.addDomListener(window, 'load', initMap); function initMap() { var mapOptions = { zoom: 12, center: {lat: 1.32, lng: 103.85}, disableDefaultUI: true, scrollwheel: false, styles: [{"stylers":[{"hue":"#ff1a00"},{"invert_lightness":true},{"saturation":-100},{"lightness":33},{"gamma":0.5}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#2D333C"}]}] }; var mapElement = document.getElementById('map'); var map = new google.maps.Map(mapElement, mapOptions); setMarkers(map); } var beaches = [ ['QSquare', 1.337231,103.888682, 17], ['Great World City', 1.293359, 103.832173, 17] ]; function setMarkers(map) { var image = { url: '/images/map-marker.png', // This marker is 20 pixels wide by 32 pixels high. size: new google.maps.Size(85, 85), // The origin for this image is (0, 0). origin: new google.maps.Point(0, 0), // The anchor for this image is the base of the flagpole at (0, 32). anchor: new google.maps.Point(0, 85) }; for (var i = 0; i < beaches.length; i++) { var beach = beaches[i]; var marker = new google.maps.Marker({ position: {lat: beach[1], lng: beach[2]}, map: map, icon: image, title: beach[0], zIndex: beach[3] }); } } jQuery(document).ready(function() { var offset = 250; var duration = 300; jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > offset) { jQuery('.back-to-top').fadeIn(duration); } else { jQuery('.back-to-top').fadeOut(duration); } }); jQuery('.back-to-top').click(function(event) { event.preventDefault(); jQuery('html, body').animate({scrollTop: 0}, duration); return false; }) }); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-97472428-1', 'auto'); ga('send', 'pageview');