mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-21 17:26:55 +01:00
more js cleanup
This commit is contained in:
parent
d7dd1236ab
commit
e4f93681f2
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
//=include svg4everybody/dist/svg4everybody.js
|
|
||||||
//=include jquery/dist/jquery.js
|
//=include jquery/dist/jquery.js
|
||||||
//=include smooth-scroll/dist/smooth-scroll.js
|
//=include smooth-scroll/dist/smooth-scroll.js
|
||||||
//=include cookies-eu-banner/dist/cookies-eu-banner.js
|
//=include cookies-eu-banner/dist/cookies-eu-banner.js
|
||||||
|
@ -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)
|
|
@ -11,12 +11,6 @@
|
|||||||
<script src="/assets/js/{{ layout.js }}"></script>
|
<script src="/assets/js/{{ layout.js }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!--
|
|
||||||
svg4everybody.js
|
|
||||||
-->
|
|
||||||
<script>svg4everybody();</script>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
//
|
//
|
||||||
// Google Analytics
|
// Google Analytics
|
||||||
|
@ -127,10 +127,10 @@ conn.postTransactionCommit(txSigned)
|
|||||||
<nav class="menu--sub" id="gumshoe">
|
<nav class="menu--sub" id="gumshoe">
|
||||||
<div class="row row--wide">
|
<div class="row row--wide">
|
||||||
<div class="menu-overflow">
|
<div class="menu-overflow">
|
||||||
<a class="menu__link" href="#server"><span class="number">1</span> {{ content.server.title }}</a>
|
<a class="menu__link" href="#server" data-scroll><span class="number">1</span> {{ content.server.title }}</a>
|
||||||
<a class="menu__link" href="#drivers"><span class="number">2</span> {{ content.drivers.title }}</a>
|
<a class="menu__link" href="#drivers" data-scroll><span class="number">2</span> {{ content.drivers.title }}</a>
|
||||||
<a class="menu__link" href="#docs"><span class="number">3</span> {{ content.docs.title }}</a>
|
<a class="menu__link" href="#docs" data-scroll><span class="number">3</span> {{ content.docs.title }}</a>
|
||||||
<a class="menu__link" href="#community"><span class="number">4</span> {{ content.community.title }}</a>
|
<a class="menu__link" href="#community" data-scroll><span class="number">4</span> {{ content.community.title }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -6,7 +6,6 @@ const $ = require('gulp-load-plugins')()
|
|||||||
// manually import modules that won't get picked up by gulp-load-plugins
|
// manually import modules that won't get picked up by gulp-load-plugins
|
||||||
import { src, dest, watch, parallel, series } from 'gulp'
|
import { src, dest, watch, parallel, series } from 'gulp'
|
||||||
import del from 'del'
|
import del from 'del'
|
||||||
import parallelize from 'concurrent-transform'
|
|
||||||
import browser from 'browser-sync'
|
import browser from 'browser-sync'
|
||||||
import critical from 'critical'
|
import critical from 'critical'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
11
package-lock.json
generated
11
package-lock.json
generated
@ -3073,12 +3073,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"concurrent-transform": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/concurrent-transform/-/concurrent-transform-1.0.0.tgz",
|
|
||||||
"integrity": "sha1-eg/eovgJYjlIf9sK3bXtqn9Zb2w=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"config-chain": {
|
"config-chain": {
|
||||||
"version": "1.1.12",
|
"version": "1.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",
|
||||||
@ -13943,11 +13937,6 @@
|
|||||||
"integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=",
|
"integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"svg4everybody": {
|
|
||||||
"version": "2.1.9",
|
|
||||||
"resolved": "https://registry.npmjs.org/svg4everybody/-/svg4everybody-2.1.9.tgz",
|
|
||||||
"integrity": "sha1-W9n23vwTOFmgRGRtR0P6vCjbfi0="
|
|
||||||
},
|
|
||||||
"svgo": {
|
"svgo": {
|
||||||
"version": "1.3.2",
|
"version": "1.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz",
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bigchaindb-driver": "4.1.2",
|
"bigchaindb-driver": "4.1.2",
|
||||||
"bootstrap": "^4.3.1",
|
"bootstrap": "^4.5.0",
|
||||||
"clipboard": "^2.0.1",
|
"clipboard": "^2.0.1",
|
||||||
"cookies-eu-banner": "^2.0.1",
|
"cookies-eu-banner": "^2.0.1",
|
||||||
"gumshoejs": "^5.1.2",
|
"gumshoejs": "^5.1.2",
|
||||||
@ -37,7 +37,6 @@
|
|||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
"select2": "^4.0.13",
|
"select2": "^4.0.13",
|
||||||
"smooth-scroll": "^16.1.3",
|
"smooth-scroll": "^16.1.3",
|
||||||
"svg4everybody": "^2.1.9",
|
|
||||||
"textarea-autogrow": "^1.0.0",
|
"textarea-autogrow": "^1.0.0",
|
||||||
"vivus": "^0.4.5"
|
"vivus": "^0.4.5"
|
||||||
},
|
},
|
||||||
@ -47,7 +46,6 @@
|
|||||||
"@babel/register": "^7.9.0",
|
"@babel/register": "^7.9.0",
|
||||||
"acorn": "^7.2.0",
|
"acorn": "^7.2.0",
|
||||||
"browser-sync": "^2.26.7",
|
"browser-sync": "^2.26.7",
|
||||||
"concurrent-transform": "^1.0.0",
|
|
||||||
"critical": "^1.3.9",
|
"critical": "^1.3.9",
|
||||||
"cross-spawn": "^7.0.2",
|
"cross-spawn": "^7.0.2",
|
||||||
"del": "^5.1.0",
|
"del": "^5.1.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user