mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Use Babel and ES6 in docs JS files (#31607)
* Pass docs js through Babel * Use ES6 in docs js * Only run babel on src files * Allow babel in Hugo * Update scripts.html * Inherit from the root .eslintrc.json * Use `Array.from` * Drop Babel from docs * Prefer template * replace IIFE with arrow functions Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: GeoSot <geo.sotis@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
(() => {
|
||||
'use strict'
|
||||
|
||||
document.querySelector('#navbarSideCollapse').addEventListener('click', function () {
|
||||
document.querySelector('#navbarSideCollapse').addEventListener('click', () => {
|
||||
document.querySelector('.offcanvas-collapse').classList.toggle('open')
|
||||
})
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user