1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 15:55:36 +01:00
site/_src/_assets/javascripts/bigchain.js

57 lines
1.4 KiB
JavaScript
Raw Normal View History

//=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
//=include bigchain/analytics.js
//=include bigchain/forms.js
//=include bigchain/dnt.js
2016-02-06 14:33:15 +01:00
//=include bigchain/tab.js
//=include bigchain/form-earlyaccess.js
2016-01-21 13:07:50 +01:00
//=include bigchain/form-contact.js
//=include bigchain/form-cla.js
//=include bigchain/hero-video.js
jQuery(function($) {
//
// init modules
//
Forms.init();
FormEarlyAccess.init();
FormCla.init();
if ($('.hero-video').length > 0) {
HeroVideo.init();
}
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));
}
});
});