2015-12-20 05:22:45 +01:00
|
|
|
|
|
|
|
//=include ../../../node_modules/svg4everybody/dist/svg4everybody.js
|
|
|
|
//=include ../../../node_modules/jquery/dist/jquery.js
|
|
|
|
|
2015-12-20 05:32:57 +01:00
|
|
|
//=include bigchain/analytics.js
|
2015-12-20 18:03:44 +01:00
|
|
|
//=include bigchain/forms.js
|
|
|
|
//=include bigchain/smoothscroll.js
|
2016-01-17 16:25:46 +01:00
|
|
|
//=include bigchain/dnt.js
|
2015-12-20 05:32:57 +01:00
|
|
|
|
2015-12-21 14:03:31 +01:00
|
|
|
//=include bigchain/form-earlyaccess.js
|
|
|
|
|
2015-12-20 05:22:45 +01:00
|
|
|
jQuery(function($) {
|
|
|
|
|
|
|
|
//
|
|
|
|
// init modules
|
|
|
|
//
|
2015-12-20 18:03:44 +01:00
|
|
|
Forms.init();
|
|
|
|
SmoothScroll.init();
|
2015-12-21 14:03:31 +01:00
|
|
|
FormEarlyAccess.init();
|
2015-12-20 05:22:45 +01:00
|
|
|
|
2016-01-17 16:25:46 +01:00
|
|
|
if (!_dntEnabled()) {
|
|
|
|
GoogleAnalytics.init();
|
|
|
|
}
|
|
|
|
|
2015-12-20 19:52:34 +01:00
|
|
|
$('.hero .logo').on('animationend webkitAnimationEnd oAnimationEnd',
|
|
|
|
function(e) {
|
|
|
|
$('.hero').addClass('is-ready');
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-01-17 16:43:46 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Automatically add header links to all Markdown headings
|
|
|
|
//
|
|
|
|
$('.content--page--markdown h1, .content--page--markdown h2').each(function(i, el) {
|
|
|
|
var $el, icon, id;
|
|
|
|
$el = $(el);
|
|
|
|
id = $el.attr('id');
|
|
|
|
icon = '<i class="header-icon">#</i>';
|
|
|
|
if (id) {
|
|
|
|
return $el.prepend($('<a />').addClass('header-link').attr('href', '#' + id).html(icon));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-12-20 05:22:45 +01:00
|
|
|
});
|