Fix lint on main js files
This commit is contained in:
parent
a0fe313f61
commit
b72f70384b
4 changed files with 54 additions and 63 deletions
|
@ -2,5 +2,8 @@
|
||||||
"extends": [
|
"extends": [
|
||||||
"dabapps/commonjs",
|
"dabapps/commonjs",
|
||||||
"dabapps/browser",
|
"dabapps/browser",
|
||||||
]
|
],
|
||||||
|
"globals": {
|
||||||
|
"$": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
|
'use strict';
|
||||||
/*
|
/*
|
||||||
Alpha by HTML5 UP
|
Alpha by HTML5 UP
|
||||||
html5up.net | @ajlkn
|
html5up.net | @ajlkn
|
||||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function($) {
|
$(function() {
|
||||||
$(function() {
|
var $body = $('body');
|
||||||
|
|
||||||
var $window = $(window),
|
|
||||||
$body = $('body'),
|
|
||||||
$header = $('#header'),
|
|
||||||
$banner = $('#banner');
|
|
||||||
|
|
||||||
// Fix: Placeholder polyfill.
|
// Fix: Placeholder polyfill.
|
||||||
$('form').placeholder();
|
$('form').placeholder();
|
||||||
|
@ -20,15 +16,12 @@
|
||||||
alignment: 'right'
|
alignment: 'right'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Off-Canvas Navigation.
|
|
||||||
|
|
||||||
// Navigation Button.
|
// Navigation Button.
|
||||||
$(
|
$(
|
||||||
'<div id="navButton">' +
|
'<div id="navButton">' +
|
||||||
'<a href="#navPanel" class="toggle"></a>' +
|
'<a href="#navPanel" class="toggle"></a>' +
|
||||||
'</div>'
|
'</div>'
|
||||||
)
|
).appendTo($body);
|
||||||
.appendTo($body);
|
|
||||||
|
|
||||||
// Navigation Panel.
|
// Navigation Panel.
|
||||||
$(
|
$(
|
||||||
|
@ -49,13 +42,4 @@
|
||||||
target: $body,
|
target: $body,
|
||||||
visibleClass: 'navPanel-visible'
|
visibleClass: 'navPanel-visible'
|
||||||
});
|
});
|
||||||
|
});
|
||||||
// Fix: Remove navPanel transitions on WP<10 (poor/buggy performance).
|
|
||||||
|
|
||||||
// Header.
|
|
||||||
// If the header is using "alt" styling and #banner is present, use scrollwatch
|
|
||||||
// to revert it back to normal styling once the user scrolls past the banner.
|
|
||||||
// Note: This is disabled on mobile devices.
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery);
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
require('./jquery-global');
|
require('./jquery-global');
|
||||||
require('bootstrap');
|
require('bootstrap');
|
||||||
|
|
||||||
|
|
4
static/src/js/jquery-global.js
vendored
4
static/src/js/jquery-global.js
vendored
|
@ -1,4 +1,6 @@
|
||||||
const jQuery = require('jquery');
|
'use strict';
|
||||||
|
|
||||||
|
var jQuery = require('jquery');
|
||||||
|
|
||||||
window.$ = jQuery;
|
window.$ = jQuery;
|
||||||
window.jQuery = jQuery;
|
window.jQuery = jQuery;
|
||||||
|
|
Loading…
Reference in a new issue