Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
568a9432
Commit
568a9432
authored
Oct 22, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] menu.html OK
parent
7d1941cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
27 deletions
+23
-27
Docs_dyna_chart_and_table.js
static/js/Docs_dyna_chart_and_table.js
+0
-5
NGrams_dyna_chart_and_table.js
static/js/NGrams_dyna_chart_and_table.js
+17
-21
menu.html
templates/corpus/menu.html
+6
-1
No files found.
static/js/Docs_dyna_chart_and_table.js
View file @
568a9432
...
...
@@ -303,14 +303,9 @@ function Main_test( Data , SearchFilter ) {
oldest
=
t0
;
latest
=
t1
;
console
.
clear
()
console
.
log
(
oldest
)
console
.
log
(
latest
)
TheBuffer
=
[
new
Date
(
t0
[
0
],
t0
[
1
]
-
1
,
t0
[
2
]),
new
Date
(
t1
[
0
],
t1
[
1
]
-
1
,
t1
[
2
]
)
];
TheBuffer
[
0
]
=
new
Date
(
TheBuffer
[
0
].
setDate
(
TheBuffer
[
0
].
getDate
()
-
1
)
);
TheBuffer
[
1
]
=
new
Date
(
TheBuffer
[
1
].
setDate
(
TheBuffer
[
1
].
getDate
()
+
1
)
);
console
.
log
(
TheBuffer
[
0
])
console
.
log
(
TheBuffer
[
1
])
var
arrayd3
=
[]
for
(
var
e
in
Data
)
{
...
...
static/js/NGrams_dyna_chart_and_table.js
View file @
568a9432
...
...
@@ -24,28 +24,24 @@ var latest,oldest;
var
TheBuffer
=
false
var
PossibleActions
=
[]
var
action1
=
{
var
PossibleActions
=
[
{
"id"
:
"to_delete"
,
"name"
:
"Delete"
,
"color"
:
"red"
}
// var action2 =
{
// "id":"to_keep",
// "name": "Keep",
// "color":"green"
// }
// var action3 = {
// "id":"to_g
roup",
// "name": "Group",
// "color":"blue"
// }
},
//
{
// "id":"to_keep",
// "name": "Keep",
// "color":"green"
// },
// {
// "id":"to_group",
// "name": "G
roup",
// "color":"blue"
// }
]
PossibleActions
.
push
(
action1
)
// PossibleActions.push(action2)
// PossibleActions.push(action3)
var
FlagsBuffer
=
{}
for
(
var
i
in
PossibleActions
)
{
...
...
templates/corpus/menu.html
View file @
568a9432
...
...
@@ -118,7 +118,11 @@
<script
type=
"text/javascript"
>
function
gotoexplorer
(
elem
)
{
var
url_
=
$
(
elem
).
data
(
"url"
)
if
(
TheBuffer
==
false
)
return
window
.
open
(
url_
,
'_blank'
);
var
current_timerange
=
TheBuffer
var
time_limits
=
[
new
Date
(
oldest
[
0
],
oldest
[
1
]
-
1
,
oldest
[
2
]),
new
Date
(
latest
[
0
],
latest
[
1
]
-
1
,
latest
[
2
]
)
];
time_limits
[
0
]
=
new
Date
(
time_limits
[
0
].
setDate
(
time_limits
[
0
].
getDate
()
-
1
)
);
...
...
@@ -133,7 +137,8 @@
url_
+=
"&start="
+
start_
+
"&end="
+
end_
;
// url_ += "&start=" + start__.getFullYear() + "&end="+end__.getFullYear();
}
window
.
open
(
url_
,
'_blank'
);
return
window
.
open
(
url_
,
'_blank'
);
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment