-
Notifications
You must be signed in to change notification settings - Fork 0
/
element_prototypes.js
88 lines (76 loc) · 2.72 KB
/
element_prototypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const projectContainer = (function() {
let container = document.createElement('div')
container.className = 'projectContainer'
let body = document.createElement('div')
body.className = 'projectBody'
let bodyStartHandle = document.createElement('div')
bodyStartHandle.className = 'start'
let bodyEndHandle = document.createElement('div')
bodyEndHandle.className = 'end'
body.appendChild(bodyStartHandle)
body.appendChild(bodyEndHandle)
let createSlotButton = document.createElement('div')
createSlotButton.className = 'projectCreateSlotButton'
createSlotButton.textContent = '+'
let projectLabel = document.createElement('div')
projectLabel.className = 'projectLabel'
let projectSlotLabelContainer = document.createElement('div')
projectSlotLabelContainer.className = 'projectSlotLabelContainer'
projectSlotLabelContainer.appendChild(createSlotButton)
container.appendChild(projectLabel)
container.appendChild(projectSlotLabelContainer)
container.appendChild(body)
return container
})()
const slotBody = (function() {
let slotBody = document.createElement('div')
slotBody.className = 'slotBody'
let slotStartHandle = document.createElement('div')
slotStartHandle.className = 'start slotHandle'
let slotEndHandle = document.createElement('div')
slotEndHandle.className = 'end slotHandle'
slotBody.appendChild(slotStartHandle)
slotBody.appendChild(slotEndHandle)
return slotBody
})()
const slotLabel = (function() {
let slotLabel = document.createElement('div')
slotLabel.className = 'slotLabel'
return slotLabel
})()
const slotCell = (function() {
let slotCell = document.createElement('div')
slotCell.className = 'slotCell'
return slotCell
})()
const slotStartDrag = (function() {
let slotStartDrag = document.createElement('div')
})()
const slotEndDrag = (function() {
})()
const headerCell = (function() {
let headerCell = document.createElement('div')
headerCell.className = 'headerCell'
return headerCell
})()
const columnLine = (function() {
let columnLine = document.createElement('div')
columnLine.className = 'columnLine'
return columnLine
})()
const employeeContainer = (function() {
let container = document.createElement('div')
container.className = 'employeeContainer'
let body = document.createElement('div')
body.className = 'employeeBody'
let label = document.createElement('div')
label.className = 'employeeLabel'
container.appendChild(label)
container.appendChild(body)
return container
})()
const typeCell = (function() {
let typeCell = document.createElement('div')
typeCell.className = 'typeCell'
return typeCell
})()