diff --git a/_src/_assets/javascripts/bigchain.js b/_src/_assets/javascripts/bigchain.js index 13c85d1..45927ad 100644 --- a/_src/_assets/javascripts/bigchain.js +++ b/_src/_assets/javascripts/bigchain.js @@ -1,5 +1,4 @@ -//=include svg4everybody/dist/svg4everybody.js //=include jquery/dist/jquery.js //=include smooth-scroll/dist/smooth-scroll.js //=include cookies-eu-banner/dist/cookies-eu-banner.js diff --git a/_src/_assets/javascripts/bigchain/hero-video.js b/_src/_assets/javascripts/bigchain/hero-video.js deleted file mode 100644 index fb5d639..0000000 --- a/_src/_assets/javascripts/bigchain/hero-video.js +++ /dev/null @@ -1,45 +0,0 @@ -var HeroVideo = (function(w, d, $) { - - 'use strict' - - var app, _private, _config - - _config = { - heroVideo: $('.hero-video__video').get(0), - minWidth: 720 // $screen-md - } - - _private = { - play: function() { - if ( _config.heroVideo.paused ) { - if ( _config.heroVideo.readyState < 4 ) { - _config.heroVideo.load(); - } - _config.heroVideo.play(); - $(_config.heroVideo).addClass('enabled').removeClass('hide'); - } - }, - pause: function() { - _config.heroVideo.pause(); - $(_config.heroVideo).addClass('hide').removeClass('enabled'); - }, - isWide: function() { - return $(window).width() >= _config.minWidth; - }, - } - - app = { - init: function() { - $(window).on('load resize', function() { - if (_private.isWide()) { - _private.play() - } else { - _private.pause() - } - }) - } - } - - return app - -})(window, document, jQuery) diff --git a/_src/_includes/scripts.html b/_src/_includes/scripts.html index 48a9a9f..398d467 100644 --- a/_src/_includes/scripts.html +++ b/_src/_includes/scripts.html @@ -11,12 +11,6 @@ {% endif %} - - - -