mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 13:46:34 +08:00
14 lines
204 B
JavaScript
14 lines
204 B
JavaScript
|
export default class Drawer {
|
||
|
hide() {
|
||
|
$('body').removeClass('drawer-open');
|
||
|
}
|
||
|
|
||
|
show() {
|
||
|
$('body').addClass('drawer-open');
|
||
|
}
|
||
|
|
||
|
toggle() {
|
||
|
$('body').toggleClass('drawer-open');
|
||
|
}
|
||
|
}
|