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
8af43374
Commit
8af43374
authored
Nov 17, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] improving css ngrams-table
parent
8c636094
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
NGrams_dyna_chart_and_table.js
static/js/NGrams_dyna_chart_and_table.js
+13
-6
terms.html
templates/corpus/terms.html
+7
-0
No files found.
static/js/NGrams_dyna_chart_and_table.js
View file @
8af43374
...
...
@@ -663,7 +663,7 @@ function Main_test( data , initial , search_filter) {
"flag"
:
false
,
"group_plus"
:
true
,
"group_blocked"
:
false
,
"state"
:
(
le_ngram
.
map
)?
1
:
0
"state"
:
(
le_ngram
.
state
)?
le_ngram
.
state
:
0
}
AjaxRecords
.
push
(
node_info
)
...
...
@@ -879,7 +879,9 @@ function SearchFilters( elem ) {
}
for
(
var
r
in
NGrams
[
"main"
].
ngrams
)
{
if
(
NGrams
[
"map"
][
NGrams
[
"main"
].
ngrams
[
r
].
id
]
)
{
sub_ngrams_data
[
"ngrams"
].
push
(
NGrams
[
"main"
].
ngrams
[
r
]
)
var
a_ngram
=
NGrams
[
"main"
].
ngrams
[
r
]
a_ngram
[
"state"
]
=
System
[
0
][
"statesD"
][
"keep"
]
sub_ngrams_data
[
"ngrams"
].
push
(
a_ngram
)
}
}
...
...
@@ -898,7 +900,9 @@ function SearchFilters( elem ) {
"scores"
:
$
.
extend
({},
NGrams
[
"main"
].
scores
)
}
for
(
var
r
in
NGrams
[
"stop"
])
{
sub_ngrams_data
[
"ngrams"
].
push
(
NGrams
[
"stop"
][
r
]
)
var
a_ngram
=
NGrams
[
"stop"
][
r
]
a_ngram
[
"state"
]
=
System
[
0
][
"statesD"
][
"delete"
]
sub_ngrams_data
[
"ngrams"
].
push
(
a_ngram
)
}
var
result
=
Main_test
(
sub_ngrams_data
,
NGrams
[
"main"
].
scores
.
initial
,
MODE
)
console
.
log
(
result
)
...
...
@@ -928,11 +932,12 @@ var url0=window.location.origin+"/api/node/"+corpus_id+"/ngrams/list/stop",
var
NGrams
=
{
"group"
:
{},
"stop"
:
{},
"m
iam
"
:
{},
"m
ain
"
:
{},
"map"
:
{},
"scores"
:
{}
}
$
(
"#corpusdisplayer"
).
hide
()
$
.
when
(
$
.
ajax
({
type
:
"GET"
,
...
...
@@ -971,7 +976,6 @@ $.when(
}
})
).
then
(
function
()
{
// Deleting subforms from the ngrams-table, clean start baby!
if
(
Object
.
keys
(
NGrams
[
"group"
].
links
).
length
>
0
)
{
...
...
@@ -998,7 +1002,7 @@ $.when(
if
(
Object
.
keys
(
NGrams
[
"map"
]).
length
>
0
)
{
for
(
var
i
in
NGrams
[
"main"
].
ngrams
)
{
if
(
NGrams
[
"map"
][
NGrams
[
"main"
].
ngrams
[
i
].
id
])
{
NGrams
[
"main"
].
ngrams
[
i
][
"
map"
]
=
true
NGrams
[
"main"
].
ngrams
[
i
][
"
state"
]
=
System
[
0
][
"statesD"
][
"keep"
]
}
}
}
...
...
@@ -1029,5 +1033,8 @@ $.when(
});
$
(
"#corpusdisplayer"
).
show
()
$
(
"#content_loader"
).
remove
()
$
(
"#corpusdisplayer"
).
click
()
});
\ No newline at end of file
templates/corpus/terms.html
View file @
8af43374
...
...
@@ -124,6 +124,13 @@ input[type=radio]:checked + label {
{% block content %}
<div
id=
"content_loader"
>
<br>
<center>
<img
width=
"10%"
src=
"{% static "
img
/
ajax-loader
.
gif
"%}"
></img>
</center>
<br>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
...
...
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