Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
trivalent
dashboard-trivalent
Commits
6f601f3a
Commit
6f601f3a
authored
Dec 11, 2018
by
Daniel Suarez Souto
Browse files
updated prograganda chart for categories
parent
609014b6
Changes
1
Show whitespace changes
Inline
Side-by-side
demo/elements/propaganda-chart/propaganda-chart.html
View file @
6f601f3a
...
...
@@ -385,8 +385,8 @@
},
setPDF
:
function
(
news
,
index
)
{
function
loadPDF
()
{
/*
var uri= "http://trivalent-resources.cluster.gsi.dit.upm.es/"+news['magazine'].toLowerCase()+"/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
*/
var
uri
=
"
http://localhost:8080/magazines/
"
+
news
[
'
magazine
'
].
toLowerCase
()
+
"
/data/
"
+
news
[
'
magazine
'
].
toLowerCase
()
+
news
[
'
number
'
]
+
"
.pdf#page=
"
+
news
[
'
schema:pageStart
'
];
var
uri
=
"
http://trivalent-resources.cluster.gsi.dit.upm.es/
"
+
news
[
'
magazine
'
].
toLowerCase
()
+
"
/
"
+
news
[
'
magazine
'
].
toLowerCase
()
+
news
[
'
number
'
]
+
"
.pdf#page=
"
+
news
[
'
schema:pageStart
'
];
/*
var uri= "http://localhost:8080/magazines/"+news['magazine'].toLowerCase()+"/data/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
*/
//console.log(uri)
$
(
'
#article
'
+
index
).
off
();
$
(
'
#article
'
+
index
+
'
li#tabArticle a
'
).
on
(
'
shown.bs.tab
'
,
function
(
event
)
{
...
...
@@ -451,6 +451,10 @@
$
(
'
#
'
+
element
.
parentElement
.
id
).
animate
({
scrollTop
:
$
(
'
#
'
+
element
.
parentElement
.
id
).
scrollTop
()
+
$
(
'
#
'
+
element
.
parentElement
.
id
+
'
span
'
).
position
().
top
-
200
},
400
)
},
getCategory
:
function
(
category
){
var
arr
=
category
[
"
rdfs:label
"
].
split
(
"
/
"
)
return
arr
[
arr
.
length
-
1
]
}
});
</script>
...
...
Write
Preview
Supports
Markdown
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