Move navbar into a Vue component
This commit is contained in:
parent
b1fe8cadf2
commit
81faaa0380
10 changed files with 771 additions and 2152 deletions
|
@ -1,9 +1,8 @@
|
|||
(function ($) {
|
||||
$('html.no-js').addClass('js').removeClass('no-js');
|
||||
window.Vue = require('vue');
|
||||
|
||||
$('.nav-toggle').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
import Navbar from './components/Navbar';
|
||||
|
||||
$(this).siblings('.nav-right').toggleClass('is-active');
|
||||
});
|
||||
})(jQuery);
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
components: { Navbar },
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue