Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
22 | constructor() { |
||
23 | window.$ = window.jQuery = $; |
||
24 | const sidebarPartial = new Sidebar; |
||
25 | const dropdownWithScrollBar = new DropdownWithScrollBar; |
||
|
|||
26 | |||
27 | /** |
||
28 | * Run sidebar toggle |
||
29 | */ |
||
30 | sidebarPartial.toggle(); |
||
31 | |||
32 | /** |
||
33 | * Run toggle on window resize |
||
34 | */ |
||
35 | $(window).resize(function () { |
||
36 | sidebarPartial.toggle(); |
||
37 | }); |
||
38 | } |
||
39 | } |