1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

page specific js cleanup

This commit is contained in:
Matthias Kretschmann 2016-02-10 13:26:42 +01:00
parent 9b2b77a3c5
commit 4c8d879a1b
4 changed files with 22 additions and 20 deletions

View File

@ -2,19 +2,12 @@
//=include ../../../node_modules/svg4everybody/dist/svg4everybody.js //=include ../../../node_modules/svg4everybody/dist/svg4everybody.js
//=include ../../../node_modules/jquery/dist/jquery.js //=include ../../../node_modules/jquery/dist/jquery.js
//=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/analytics.js
//=include bigchain/forms.js //=include bigchain/forms.js
//=include bigchain/dnt.js //=include bigchain/dnt.js
//=include bigchain/tab.js
//=include bigchain/form-earlyaccess.js
//=include bigchain/form-contact.js //=include bigchain/form-contact.js
//=include bigchain/form-cla.js
//=include bigchain/hero-video.js
jQuery(function($) { jQuery(function($) {
@ -22,23 +15,11 @@ jQuery(function($) {
// init modules // init modules
// //
Forms.init(); Forms.init();
FormEarlyAccess.init();
FormCla.init();
if ($('.hero-video').length > 0) {
HeroVideo.init();
}
if (!_dntEnabled()) { if (!_dntEnabled()) {
GoogleAnalytics.init(); GoogleAnalytics.init();
} }
$('.hero .logo').on('animationend webkitAnimationEnd oAnimationEnd',
function(e) {
$('.hero').addClass('is-ready');
}
);
// //
// Open all external links in new window // Open all external links in new window

View File

@ -0,0 +1,9 @@
//=include bigchain/tab.js
//=include bigchain/form-cla.js
jQuery(function($) {
// init form
FormCla.init();
});

View File

@ -1,10 +1,20 @@
//=include bigchain/hero-video.js
//=include bigchain/smoothscroll.js //=include bigchain/smoothscroll.js
//=include ../../../node_modules/vivus/dist/vivus.js //=include ../../../node_modules/vivus/dist/vivus.js
jQuery(function($) { jQuery(function($) {
// hero stuff
HeroVideo.init();
$('.hero .logo').on('animationend webkitAnimationEnd oAnimationEnd',
function(e) {
$('.hero').addClass('is-ready');
}
);
// graph animation // graph animation
var iconOptions = { var iconOptions = {
type: 'async', type: 'async',

View File

@ -2,6 +2,8 @@
layout: page layout: page
title: Contributor License Agreement title: Contributor License Agreement
js: page-cla.min.js
--- ---
Before we can accept any contributions from you or the organization you represent, you or your organization must agree to license the contributions to others under some non-exclusive open licenses (as listed in the contributor license agreement ["Agreement"]). Before we can accept any contributions from you or the organization you represent, you or your organization must agree to license the contributions to others under some non-exclusive open licenses (as listed in the contributor license agreement ["Agreement"]).