2015-12-20 05:22:45 +01:00
|
|
|
|
|
|
|
//=include ../../../node_modules/svg4everybody/dist/svg4everybody.js
|
|
|
|
//=include ../../../node_modules/jquery/dist/jquery.js
|
|
|
|
|
2016-02-06 14:33:15 +01:00
|
|
|
//=include ../../../node_modules/foundation-sites/js/foundation.core.js
|
|
|
|
//=include ../../../node_modules/foundation-sites/js/foundation.util.keyboard.js
|
|
|
|
//=include ../../../node_modules/foundation-sites/js/foundation.tabs.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
|
2016-01-17 16:25:46 +01:00
|
|
|
//=include bigchain/dnt.js
|
2016-02-06 14:33:15 +01:00
|
|
|
//=include bigchain/tab.js
|
2015-12-20 05:32:57 +01:00
|
|
|
|
2015-12-21 14:03:31 +01:00
|
|
|
//=include bigchain/form-earlyaccess.js
|
2016-01-21 13:07:50 +01:00
|
|
|
//=include bigchain/form-contact.js
|
2016-02-05 00:18:11 +01:00
|
|
|
//=include bigchain/form-cla.js
|
2016-02-01 16:31:29 +01:00
|
|
|
//=include bigchain/hero-video.js
|
2015-12-21 14:03:31 +01:00
|
|
|
|
2015-12-20 05:22:45 +01:00
|
|
|
jQuery(function($) {
|
|
|
|
|
|
|
|
//
|
|
|
|
// init modules
|
|
|
|
//
|
2015-12-20 18:03:44 +01:00
|
|
|
Forms.init();
|
2015-12-21 14:03:31 +01:00
|
|
|
FormEarlyAccess.init();
|
2016-02-05 00:18:11 +01:00
|
|
|
FormCla.init();
|
2015-12-20 05:22:45 +01:00
|
|
|
|
2016-02-01 16:31:29 +01:00
|
|
|
if ($('.hero-video').length > 0) {
|
|
|
|
HeroVideo.init();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
});
|