Difference between revisions of "Team:CCA SanDiego"

Line 131: Line 131:
 
     <!-- Custom Theme JavaScript -->
 
     <!-- Custom Theme JavaScript -->
 
     <script>
 
     <script>
function init(){{var e={zoom:15,center:new google.maps.LatLng(40.67,-73.94),disableDefaultUI:!0,scrollwheel:!1,draggable:!1,styles:[{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#000000"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#000000"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#000000"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#000000"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#000000"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#000000"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:17},{weight:1.2}]}]},t=document.getElementById("map"),l=new google.maps.Map(t,e),o="img/map-marker.png",s=new google.maps.LatLng(40.67,-73.94);new google.maps.Marker({position:s,map:l,icon:o})}}$(window).scroll(function(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")}),$(function(){$("a.page-scroll").bind("click",function(e){var t=$(this);$("html, body").stop().animate({scrollTop:$(t.attr("href")).offset().top},1500,"easeInOutExpo"),e.preventDefault()})}),$(".navbar-collapse ul li a").click(function(){$(".navbar-toggle:visible").click()}),google.maps.event.addDomListener(window,"load",init);
+
// jQuery to collapse the navbar on scroll
 +
$(window).scroll(function() {
 +
    if ($(".navbar").offset().top > 50) {
 +
        $(".navbar-fixed-top").addClass("top-nav-collapse");
 +
    } else {
 +
        $(".navbar-fixed-top").removeClass("top-nav-collapse");
 +
    } 
 +
});
 +
 
 +
// jQuery for page scrolling feature - requires jQuery Easing plugin
 +
$(function() {
 +
    $('a.page-scroll').bind('click', function(event) {
 +
        var $anchor = $(this);
 +
        $('html, body').stop().animate({
 +
            scrollTop: $($anchor.attr('href')).offset().top
 +
        }, 1500, 'easeInOutExpo');
 +
        event.preventDefault();
 +
    });
 +
});
 +
 
 +
// Closes the Responsive Menu on Menu Item Click
 +
$('.navbar-collapse ul li a').click(function() {
 +
    $('.navbar-toggle:visible').click();
 +
});
 
     </script>
 
     </script>
  

Revision as of 17:38, 8 September 2015

CCA San Diego iGEM 2015

Grayscale

A free, responsive, one page Bootstrap theme.
Created by Start Bootstrap.

About Grayscale

Grayscale is a free Bootstrap 3 theme created by Start Bootstrap. It can be yours right now, simply download the template on the preview page. The theme is open source, and you can use it for any purpose, personal or commercial.

This theme features stock photos by Gratisography along with a custom Google Maps skin courtesy of Snazzy Maps.

Grayscale includes full HTML, CSS, and custom JavaScript files along with LESS files for easy customization.

Download Grayscale

You can download Grayscale for free on the preview page at Start Bootstrap.

Visit Download Page

Contact Start Bootstrap

Feel free to email us to provide some feedback on our templates, give us suggestions for new templates and themes, or to just say hello!

feedback@startbootstrap.com

Copyright © Your Website 2014