-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
195 lines (161 loc) · 6.35 KB
/
README.txt
File metadata and controls
195 lines (161 loc) · 6.35 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
Global
Members
alphabet
That variable is important to get an alphabetic order in the contacts list. Familiar functions: filterContacts(list)
Source:
script.js, line 89
colors
Array for choosing a random color out of this array. Find it in contacts.js Familiar functions: addColorToContact(identifier)
Source:
script.js, line 83
contactValues
That object is important to for the scroll function, after editting or creating a new contact in "contacts" Familiar functions: settingContactValuesGlobaly(index, letter, number), cleanContactValues()
Source:
script.js, line 60
createdContactName
That variable is important to scroll to the new contact after creating it. Find it in contacts.js. Familiar functions: filerContacts()
Source:
script.js, line 70
edittingNewContact
This two variables are important for loading the right templates and buttons, if a contact will be editted or not (creating new contact). Familiar functions: settingValuesForEdittingContact(index), cleanValuesForEdittingContact()
Source:
script.js, line 76
hiddenTickets
That array is important when using the board searchbar for searching a ticket and than editting it. After the board reloads, only the search results are still visible, because the hiden tickets are pushed before to 'hiddenTickets'.
Source:
script.js, line 34
newContact
That object is important when creating a new contact in contacts. Familiar functions: addAllInputValuesToContact()
Source:
script.js, line 48
priorities
That object is used in AddTask when creating a new task. Familiar functions: templatePrioritySelection(i), changeSelectedPrioBtn(i), resetOtherPrioBtns(i)
Source:
script.js, line 8
taskEditted
That variable is important in board.html when closing the ticket info popup. When the ticket was editted, the board needs to be reloaded.
Source:
script.js, line 39
Methods
URLequalsAddTaskHtml()
That function checks if the current site is equal to the add_taks.html url. If yes, it returns true.
Source:
script.js, line 316
Returns:
a boolean
(async) addBoard()
That function adds the boardColumns array to the server database and overwrites previous saved data on the server.
Source:
script.js, line 245
addClasslist(id, classe)
That function is a smaller helpfull function to add a class name to an element.
Parameters:
Name Type Description
id string id is the id of an element to which we want add a class to
classe string classe is a class name, that we want to add to the element
Source:
script.js, line 265
(async) addContact()
That function adds the contacts array to the server database and overwrites previous saved data on the server.
Source:
script.js, line 238
(async) deleteServerData()
That function helps us do delete all server-data, if we want to test for functionality.
Source:
script.js, line 151
doNotClose(event)
That function is needed in most popups, that have a close event onlick on the background. That function prevents the popup to close, if we click right on the popup.
Parameters:
Name Type Description
event event
Source:
script.js, line 283
getIndexOfCurrentUser()
That function gets the index of the current logged-in user by looping through usersContact and comparing the (in localstorage) stored email address.
Source:
script.js, line 329
getNameLetters(name)
That function gets the abbreviation of a given name (shortletter).
Parameters:
Name Type Description
name string name is a user/contact name
Source:
script.js, line 292
Returns:
an abbreviation, to letter from the name in uppercase.
getRandomNumberFromZeroToNine()
Returns a random integer from 0 to 9: Math.random returns a number lower than 1 Math.floor makes the decimal number to a 'no decimal' number 10 is the number of values we want, beginning from 0 Using this function to get a random color out of the array 'colors'
Source:
script.js, line 307
initAddtask(value)
That function is the site related init function with site related navbar-marking and content.
Parameters:
Name Type Description
value string value is the a site related number for marking the right navbar element, when entering that site.
Source:
script.js, line 205
initBoard(value)
That function is the site related init function with site related navbar-marking and content.
Parameters:
Name Type Description
value string value is the a site related number for marking the right navbar element, when entering that site.
Source:
script.js, line 195
initContacts(value)
That function is the site related init function with site related navbar-marking and content.
Parameters:
Name Type Description
value string value is the a site related number for marking the right navbar element, when entering that site.
Source:
script.js, line 215
initSummary(value)
That function is the site related init function with site related navbar-marking and content.
Parameters:
Name Type Description
value number value is the a site related number for marking the right navbar element, when entering that site.
Source:
script.js, line 183
isLoggedInn()
That function checks, if there are any login (signed-in user or guest) related data. If not, the user will be put back to the login site (index.html).
Source:
script.js, line 226
(async) loadJSONFromServer()
Loads a JSON or JSON Array to the Server payload {JSON | Array} - The payload you want to store
Source:
mini_backend.js, line 39
markNavItem(n)
That function marks the category/tab in the navbar on the same page.
Parameters:
Name Type Description
n number The id of the category/tab in the nav
Source:
script.js, line 108
removeClasslist(id, classe)
That function is a smaller helpfull function to remove a class name from an element.
Parameters:
Name Type Description
id string id is the id of an element from which we want remove a class from
classe string classe is a class name, that we want to remove from the element
Source:
script.js, line 274
renderNavAndHeader()
This function renders the navbar and the header. Almost on every site.
Source:
script.js, line 174
renderResponsiveHeaderTitle()
That function add a title-template into the content-container (in responsive view)
Source:
script.js, line 126
renderSiteRelatedTemplate()
That function renders the site (url) related templates.
Source:
script.js, line 162
saveJSONToServer()
Saves a JSON or JSON Array to the Server
Source:
mini_backend.js, line 79
unmarkAllNAvItems()
That function unmarks all categories/tabs in the navbar.
Source:
script.js, line 117
Documentation generated by JSDoc 4.0.0 on Sun Jan 08 2023 20:04:48 GMT+01