1
1
import './styles.css'
2
- import cdIcon from "/img/common/cd_icon_green.png"
3
2
4
3
import { EventBus } from "../../event-bus" ;
5
4
import { Events } from "../../consts/events" ;
@@ -8,47 +7,9 @@ import {handlers} from "../../consts/handlers";
8
7
const EVENT_BUS = new EventBus < Events > ( ) ;
9
8
EVENT_BUS . subscribe ( 'button_test' , handlers . button_test ) ;
10
9
11
-
12
-
13
- export function VerticalNav ( ) {
14
- const menuBox = document . createElement ( "div" ) ;
15
- menuBox . id = "vertical-nav" ;
16
-
17
- menuBox . appendChild ( navHeader ( ) ) ;
18
- menuBox . appendChild ( testButtons ( ) ) ;
19
- menuBox . appendChild ( navFooter ( ) ) ;
20
-
21
- return menuBox ;
22
- }
23
-
24
10
// ----------------------------------------------------------------------
25
11
26
- function navHeader ( ) {
27
- const headerContainer = document . createElement ( "div" ) ;
28
- const topTriangle = document . createElement ( "div" ) ;
29
- const info = document . createElement ( "div" ) ;
30
- const icon = document . createElement ( "img" ) ;
31
- const title = document . createElement ( "h5" ) ;
32
-
33
- headerContainer . className = "header" ;
34
- topTriangle . className = "top-triangle" ;
35
-
36
- info . className = "info" ;
37
- icon . className = "icon" ;
38
- icon . src = cdIcon ;
39
-
40
- title . textContent = menuTitle ;
41
-
42
- headerContainer . appendChild ( topTriangle ) ;
43
- headerContainer . appendChild ( info ) ;
44
- info . appendChild ( icon ) ;
45
- info . appendChild ( title ) ;
46
-
47
- return headerContainer ;
48
- }
49
-
50
-
51
- function testButtons ( ) {
12
+ /*function testButtons() {
52
13
const buttonContainer = document.createElement("div");
53
14
const buttonA = document.createElement("button");
54
15
const buttonB = document.createElement("button");
@@ -70,6 +31,6 @@ function testButtons() {
70
31
buttonContainer.appendChild(buttonB);
71
32
72
33
return buttonContainer;
73
- }
34
+ }*/
74
35
75
36
0 commit comments