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
b690e02c
Commit
b690e02c
authored
Oct 10, 2018
by
Daniel Suarez Souto
Browse files
Minimal changes
parent
e9a10706
Changes
4
Hide whitespace changes
Inline
Side-by-side
dashboard-gsicrawler.html
View file @
b690e02c
...
...
@@ -34,15 +34,11 @@
<link
rel=
"import"
href=
"/styles/app-theme.html"
type=
"css"
>
<template>
<!--
<iron-ajax auto
url="queries.json"
<iron-ajax
auto
url=
"
/
queries.json"
handle-as=
"json"
last-response="{{queries}}"></iron-ajax> -->
<!--
<div style="width:10%; padding: 1em; display:inline-block">
<img style="width: 100%;"src="/images/trivalent.jpg">
</div>
-->
last-response=
"{{queries}}"
></iron-ajax>
<div
class=
"container"
>
<div
style=
"width:100%; padding-bottom: 20px 0; text-align:center; display:inline-block"
>
<img
style=
"width: 20%; margin:0 auto;"
src=
"/images/trivalent.jpg"
>
...
...
demo/elements/happymap/happymap-element.html
View file @
b690e02c
...
...
@@ -339,7 +339,7 @@
if
(
!
that
.
isReady
||
!
that
.
map
)
{
return
;
}
console
.
log
(
'
LOG happymap-element: selectedChanged
'
);
//
console.log('LOG happymap-element: selectedChanged');
that
.
map
.
removeLayer
(
that
.
markerMapLayer
);
that
.
markerMapLayer
=
new
L
.
FeatureGroup
();
that
.
selected
.
forEach
(
function
(
entry
)
{
...
...
@@ -364,7 +364,7 @@
if
(
!
that
.
isReady
||
!
that
.
map
)
{
return
;
}
console
.
log
(
'
LOG happymap-element: refreshMapPoints
'
);
//
console.log('LOG happymap-element: refreshMapPoints');
if
(
that
.
happyMapLayer
)
{
that
.
map
.
removeLayer
(
that
.
happyMapLayer
);
}
...
...
@@ -400,7 +400,7 @@
var
happy_data
=
[];
var
intense_data
=
[];
var
power_data
=
[];
console
.
log
(
that
.
data
)
//
console.log(that.data)
that
.
data
.
hits
.
hits
.
forEach
(
function
(
entry
)
{
entry
.
_source
.
entities
.
forEach
(
function
(
entity
){
if
(
entity
[
"
@type
"
]
==
"
schema:Place
"
){
...
...
demo/elements/people-chart/people-chart.html
View file @
b690e02c
...
...
@@ -270,7 +270,7 @@
this
.
push
(
'
filters
'
,
{
terms
:
{
'
entities.schema:name.keyword
'
:
myfilters
}})
},
ready
:
function
(){
console
.
log
(
"
people-chart
"
)
//
console.log("people-chart")
}
...
...
demo/elements/trivalent-page/trivalent-page.html
View file @
b690e02c
...
...
@@ -38,9 +38,9 @@
ready
:
function
(){
},
_routeChanged
:
function
(){
console
.
log
(
this
.
route
.
path
)
//
console.log(this.route.path)
var
path
=
this
.
route
.
path
console
.
log
(
path
.
indexOf
(
"
resources
"
))
//
console.log(path.indexOf("resources"))
if
(
path
.
indexOf
(
"
resources
"
)
>
-
1
){
this
.
uri
=
this
.
route
.
path
.
split
(
'
/
'
)[
2
]
this
.
selected
=
0
...
...
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