Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
mini-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit c7fb278a
authored
2019-11-25 13:46:34 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
merge js
1 parent
fdde39b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
Scripts/construct.js
Scripts/construct.js
View file @
c7fb278
...
@@ -64,3 +64,20 @@ function generate(tabs){
...
@@ -64,3 +64,20 @@ function generate(tabs){
}
}
console
.
log
(
JSON
.
stringify
(
dict
));
console
.
log
(
JSON
.
stringify
(
dict
));
}
}
function
sortTabs
(){
let
tabs
=
document
.
getElementById
(
"tabs"
);
Array
.
from
(
tabs
.
children
).
sort
(
(
a
,
b
)
=>
a
.
children
[
0
].
value
<
b
.
children
[
0
].
value
?
-
1
:
a
.
children
[
0
].
value
>
b
.
children
[
0
].
value
?
1
:
0
).
forEach
(
c
=>
tabs
.
appendChild
(
c
)
)
}
function
sortFields
(
tab
){
Array
.
from
(
tab
.
children
).
sort
(
(
a
,
b
)
=>
a
.
children
[
0
].
value
<
b
.
children
[
0
].
value
?
-
1
:
a
.
children
[
0
].
value
>
b
.
children
[
0
].
value
?
1
:
0
).
forEach
(
c
=>
tabs
.
appendChild
(
c
)
)
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment