-
Notifications
You must be signed in to change notification settings - Fork 0
/
JScodeAllLines.js
executable file
·34 lines (32 loc) · 1.05 KB
/
JScodeAllLines.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
console.log('Button clicked: %d', button.clicks)
var myKeys = Object.keys(checkbox.callback.args)
myKeys = myKeys.slice(2)
var myKeyDict = {}
for (index = 0; index < myKeys.length; index++) {
var key = myKeys[index]
myKeyDict[parseInt(key.substring(1))] = key
}
var myIndex = []
for (key in Object.keys(myKeyDict)) {
myIndex.push(parseInt(key))
}
console.log('myKeyDict')
console.log(myKeyDict)
console.log('myIndex')
console.log(myIndex)
console.log('checkbox.active')
console.log(checkbox.active)
if (button.clicks % 2 == 1) {
for (index in myKeyDict) {
console.log(checkbox.callback.args[myKeyDict[index]].visible)
checkbox.callback.args[myKeyDict[index]].visible = false
}
checkbox.active = []
}
else {
for (index in myKeyDict) {
console.log(checkbox.callback.args[myKeyDict[index]].visible)
checkbox.callback.args[myKeyDict[index]].visible = true
}
checkbox.active = myIndex
}