2015-07-06 05:47:37 -05:00
|
|
|
---
|
|
|
|
layout: nil
|
|
|
|
---
|
|
|
|
|
|
|
|
{% include highlight.pack.js %}
|
|
|
|
hljs.initHighlightingOnLoad();
|
2015-07-06 07:06:16 -05:00
|
|
|
|
|
|
|
{% include anchor.min.js %}
|
2015-07-06 10:53:43 -05:00
|
|
|
anchors.add('h2,h3,h4,h5,h6');
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ScrollTo code
|
|
|
|
*/
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('a[href^="#"]').on('click',function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
var target = this.hash;
|
|
|
|
var dest = 0;
|
|
|
|
if(target) {
|
|
|
|
var $target = $(target);
|
2015-07-06 11:01:00 -05:00
|
|
|
if($target.length) {
|
|
|
|
dest = $target.offset().top;
|
|
|
|
}
|
2015-07-06 10:53:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
$('html, body').stop().animate({
|
|
|
|
'scrollTop': dest
|
|
|
|
}, 900, 'swing', function () {
|
|
|
|
window.location.hash = target;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|