跳转至

changes

changes made by yypE to this site

Roll to pos

<script src="{{ base_url }}/assets/javascripts/jquery.js"></script>  
<script src="{{ base_url }}/assets/javascripts/jquery.easing.1.3.js"></script>
<!--缓动-->
<script>  
    $(function(){
        $('#yypE_jmp_to_top').click(function() { 
            $('html,body').animate(
            {scrollTop: 0},  
            500,
            'easeOutQuint');  
            return false;
        });

        $('a[href*=#],area[href*=#]').click(function() {  
            if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {  
                var $target = $(this.hash); 
                $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');               if ($target.length) {  
                    var targetOffset = $target.offset().top;  
                    $('html,body').animate(
                        {scrollTop: targetOffset-48}, //48->height of the banner 
                        600,
                        "easeOutCubic"
                    );
                    //location.hash = target; //update the URL (with some bugs)
                    return false;
                }  
            }  
        });  
    })  
</script>

WOW.JS

需要注意一下 wow.min.js 的版本

<script src="{{ base_url }}/assets/javascripts/wow.min.js"></script>
<script>
      wow = new WOW(
              {
              boxClass:     'yypE',      // default
              animateClass: 'animated', // default
              offset:       0,          // default
              mobile:       true,       // default
              live:         true        // default
            }
            )
            wow.init();
</script>

Changes made to CSS and some other files are too many thus neglected.