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": [
|
||||
"dabapps/commonjs",
|
||||
"dabapps/browser",
|
||||
]
|
||||
],
|
||||
"globals": {
|
||||
"$": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
'use strict';
|
||||
/*
|
||||
Alpha by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
$(function() {
|
||||
|
||||
var $window = $(window),
|
||||
$body = $('body'),
|
||||
$header = $('#header'),
|
||||
$banner = $('#banner');
|
||||
var $body = $('body');
|
||||
|
||||
// Fix: Placeholder polyfill.
|
||||
$('form').placeholder();
|
||||
|
@ -20,15 +16,12 @@
|
|||
alignment: 'right'
|
||||
});
|
||||
|
||||
// Off-Canvas Navigation.
|
||||
|
||||
// Navigation Button.
|
||||
$(
|
||||
'<div id="navButton">' +
|
||||
'<a href="#navPanel" class="toggle"></a>' +
|
||||
'</div>'
|
||||
)
|
||||
.appendTo($body);
|
||||
).appendTo($body);
|
||||
|
||||
// Navigation Panel.
|
||||
$(
|
||||
|
@ -49,13 +42,4 @@
|
|||
target: $body,
|
||||
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('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 = jQuery;
|
||||
|
|
Loading…
Reference in a new issue