2015-12-20 05:22:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
//
|
|
|
|
// Site scripts
|
|
|
|
//
|
|
|
|
-->
|
|
|
|
<script src="/assets/js/bigchain.min.js"></script>
|
|
|
|
|
|
|
|
{% if page.js %}
|
|
|
|
<script src="/assets/js/{{ page.js }}"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!--
|
|
|
|
svg4everybody.js
|
|
|
|
-->
|
|
|
|
<script>svg4everybody();</script>
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
//
|
|
|
|
// Google Analytics
|
|
|
|
//
|
|
|
|
-->
|
|
|
|
<script>
|
2016-01-17 16:25:46 +01:00
|
|
|
if (!_dntEnabled()) {
|
2015-12-20 05:22:45 +01:00
|
|
|
(function(window) {
|
|
|
|
|
|
|
|
// Google Analytics async snippet
|
|
|
|
// http://goo.gl/3FPNDx
|
|
|
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
|
|
|
|
ga.l=+new Date;
|
|
|
|
|
|
|
|
// Create the GA tracker
|
|
|
|
ga('create', '{{ site.analyticsID }}', 'auto', {siteSpeedSampleRate: 10});
|
|
|
|
|
|
|
|
{% if jekyll.environment != 'production' %}
|
|
|
|
// In non-production mode, simply log GA hits to the console.
|
|
|
|
// Note, tasks must be set before sending the first hit
|
|
|
|
ga(function(tracker) {
|
|
|
|
tracker.set('sendHitTask', function() {
|
|
|
|
// Throw to stop subsequent tasks.
|
|
|
|
throw 'Abort tracking in non-production environments.'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
// Send initial pageview
|
|
|
|
ga('send', 'pageview');
|
|
|
|
|
|
|
|
// Track uncaught errors
|
|
|
|
window.onerror = function(message, url, line, col) {
|
|
|
|
var desc = message + ' (line: ' + line + ', url: ' + url + ', col: '
|
|
|
|
+ col + ')';
|
|
|
|
|
|
|
|
ga('send', 'exception', {
|
|
|
|
exDescription: 'window.onerror: ' + desc,
|
|
|
|
exFatal: false
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
}(window));
|
2016-01-17 16:25:46 +01:00
|
|
|
}
|
2015-12-20 05:22:45 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{% if jekyll.environment == "production" %}
|
|
|
|
<script async src="//www.google-analytics.com/analytics.js"></script>
|
|
|
|
{% else %}
|
|
|
|
<script async src="//www.google-analytics.com/analytics_debug.js"></script>
|
|
|
|
{% endif%}
|
2016-01-17 16:17:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
//
|
|
|
|
// Disqus comments
|
|
|
|
//
|
|
|
|
-->
|
|
|
|
{% if page.comments %}
|
|
|
|
<script>
|
|
|
|
var disqus_config = function () {
|
|
|
|
this.page.url = '{{ site.url }}{{ page.url }}';
|
|
|
|
this.page.identifier = '{{ page.id }}';
|
|
|
|
this.page.title = '{{ page.title }}';
|
|
|
|
};
|
|
|
|
|
|
|
|
{% if jekyll.environment == "development" %}
|
|
|
|
var disqus_developer = 1;
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var d = document, s = d.createElement('script');
|
|
|
|
|
|
|
|
s.src = '//{{ site.disqus }}.disqus.com/embed.js';
|
|
|
|
|
|
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
|
|
(d.head || d.body).appendChild(s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
|
|
|
{% endif %}
|