2013-06-25 20:19:49 +00:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
|
|
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
2013-09-11 13:45:12 +00:00
|
|
|
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>
|
2013-09-12 12:13:48 +00:00
|
|
|
{% if site.search %}
|
|
|
|
<!-- Jekyll Simple Search option -->
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2014-08-22 17:50:42 +00:00
|
|
|
$('.search-field').jekyllSearch({
|
|
|
|
jsonFile: '{{ site.url }}/search.json',
|
|
|
|
searchResults: '.search-results',
|
|
|
|
template: '<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{shortdate}</time></span></a></article></li>',
|
|
|
|
fuzzy: true,
|
2013-09-12 12:13:48 +00:00
|
|
|
noResults: '<p>Nothing found.</p>'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
(function( $, window, undefined ) {
|
|
|
|
|
|
|
|
var bs = {
|
2014-08-08 19:52:28 +00:00
|
|
|
close: $(".close-btn"),
|
2013-09-12 12:13:48 +00:00
|
|
|
searchform: $(".search-form"),
|
2014-09-05 20:24:27 +00:00
|
|
|
canvas: $(".js-menu-screen"),
|
2013-09-12 12:13:48 +00:00
|
|
|
dothis: $('.dosearch')
|
|
|
|
};
|
|
|
|
|
|
|
|
bs.dothis.on('click', function() {
|
|
|
|
$('.search-wrapper').css({ display: "block" });
|
2014-09-05 20:24:27 +00:00
|
|
|
$('body').toggleClass('no-scroll');
|
2013-09-12 12:13:48 +00:00
|
|
|
bs.searchform.toggleClass('active');
|
|
|
|
bs.searchform.find('input').focus();
|
2014-09-05 20:24:27 +00:00
|
|
|
bs.canvas.toggleClass('is-visible');
|
2013-09-12 12:13:48 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
bs.close.on('click', function() {
|
|
|
|
$('.search-wrapper').removeAttr( 'style' );
|
2014-09-05 20:24:27 +00:00
|
|
|
$('body').toggleClass('no-scroll');
|
2013-09-12 12:13:48 +00:00
|
|
|
bs.searchform.toggleClass('active');
|
2014-09-05 20:24:27 +00:00
|
|
|
bs.canvas.removeClass('is-visible');
|
2013-09-12 12:13:48 +00:00
|
|
|
});
|
|
|
|
})( jQuery, window );
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2014-08-08 19:52:28 +00:00
|
|
|
{% if site.owner.google.analytics %}
|
2013-06-25 20:19:49 +00:00
|
|
|
<!-- Asynchronous Google Analytics snippet -->
|
|
|
|
<script>
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
var pluginUrl =
|
|
|
|
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
|
|
|
|
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
|
2014-08-08 19:52:28 +00:00
|
|
|
_gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
|
2013-06-25 20:19:49 +00:00
|
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
2014-08-28 01:20:47 +00:00
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
2013-06-25 20:19:49 +00:00
|
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
|
|
})();
|
2013-06-26 13:18:48 +00:00
|
|
|
</script>
|
2013-07-17 02:04:40 +00:00
|
|
|
{% endif %}
|
2014-08-08 19:52:28 +00:00
|
|
|
|
2014-12-27 17:20:25 +00:00
|
|
|
{% if page.comments or site.comments %}
|
2014-08-08 19:52:28 +00:00
|
|
|
{% include disqus_comments.html %}
|
2014-08-28 01:20:47 +00:00
|
|
|
{% endif %}
|