<!– meta-tags –> {% seo %} <!–Let browser know website is optimized for mobile–>

{% feed_meta %}

<meta name=“viewport” content=“width=device-width, initial-scale=1”> <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /> <!–for fb –> <meta property=“og:type” content=“website” />

<link type=“text/css” rel=“stylesheet” href=“{{ '/assets/main.css' | relative_url }}” media=“screen,projection”>

<script src=“ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”>> <script src=“{{ '/assets/js/highlight.pack.js' | relative_url }}”></script>

{% if jekyll.environment == 'production' and site.google_analytics %} {% include google-analytics.html %} {% endif %}

<script>

$(document).ready(function(){
    $(function(){
        // Check the initial Poistion of the Sticky Header
        var stickyHeaderTop = $('#mainSlider').offset().top;

        $(window).scroll(function(){
            if( $(window).scrollTop() > stickyHeaderTop ) {
                $('#mainSlider').addClass("navbar-fixed");
                $('#mainSlider').css("margin-top", "-70vh");
            } else {
                $('#mainSlider').removeClass("navbar-fixed");
                $('#mainSlider').css("margin-top", "");
            }
        });
    });

    $('.mainSlider').each(function() {
        var $this = $(this);
        var $target = $('#' + $(this).attr('data-target'));
        $this.pushpin({
            top: $target.offset().top,
            bottom: $target.offset().top + $target.outerHeight() - $this.height()
        });
    });
});

</script>