Commit cc57caa4dceba80ee6ea7f6e35474d566598b798
1 parent
4cf88b25
datasetexplorer
Showing
6 changed files
with
49 additions
and
17 deletions
.htaccess deleted
datalets/base-datalet/base-datalet.html
... | ... | @@ -177,14 +177,14 @@ Example : |
177 | 177 | }, |
178 | 178 | |
179 | 179 | attached: function(){ |
180 | - if(this.title == undefined) | |
181 | - this.title = ""; | |
182 | - | |
183 | - if(this.description == undefined) | |
184 | - this.description = ""; | |
185 | - | |
186 | - if(this.title != "" && this.description != "") | |
187 | - this.description = "- " + this.description; | |
180 | +// if(this.title == undefined) | |
181 | +// this.title = ""; | |
182 | +// | |
183 | +// if(this.description == undefined) | |
184 | +// this.description = ""; | |
185 | +// | |
186 | +// if(this.title != "" && this.description != "") | |
187 | +// this.description = "- " + this.description; | |
188 | 188 | }, |
189 | 189 | |
190 | 190 | /** | ... | ... |
datalets/datasetexplorer-datalet/datasetexplorer-datalet.html
... | ... | @@ -84,8 +84,7 @@ Example: |
84 | 84 | stroke: #fff; |
85 | 85 | } |
86 | 86 | |
87 | - :host ::content rect.parent, | |
88 | - .grandparent rect { | |
87 | + :host ::content rect.parent { | |
89 | 88 | stroke-width: 2px; |
90 | 89 | } |
91 | 90 | |
... | ... | @@ -97,8 +96,12 @@ Example: |
97 | 96 | fill: #ee9700; |
98 | 97 | } |
99 | 98 | |
100 | - :host ::content .children rect.parent, | |
101 | - .grandparent rect { | |
99 | + :host ::content .children rect.parent { | |
100 | + cursor: pointer; | |
101 | + } | |
102 | + | |
103 | + :host ::content .grandparent rect { | |
104 | + stroke-width: 2px; | |
102 | 105 | cursor: pointer; |
103 | 106 | } |
104 | 107 | ... | ... |
datalets/datasetexplorer-datalet/js/buildtreemap2.js
... | ... | @@ -43,7 +43,18 @@ function build2(root, meta, place_holder, select_listener, width, height) { |
43 | 43 | grandparent.append("rect") |
44 | 44 | .attr("y", -margin.top) |
45 | 45 | .attr("width", width) |
46 | - .attr("height", margin.top); | |
46 | + .attr("height", margin.top) | |
47 | + //.call(rect) | |
48 | + .attr("onmousemove", function() { | |
49 | + //var data = ["lvl", "name", "color", "description", "logoUrl", "datasets", "datasetUrl"]; | |
50 | + var data = ["top", "", "#000000", "", "", "", ""]; | |
51 | + //data[3] = OW.getLanguageText('ode', 'back'); | |
52 | + data[3] = datasetexplorer_ln["ode+back_"+datasetexplorer_ln["ln"]]; | |
53 | + console.log(data[3]); | |
54 | + | |
55 | + return "showTooltip(evt, '" + data + "')"; | |
56 | + }) | |
57 | + .attr("onmouseout", function() {return "hideTooltip()";}) | |
47 | 58 | |
48 | 59 | grandparent.append("text") |
49 | 60 | .attr("x", 6) | ... | ... |
datalets/datasetexplorer-datalet/treemap_tooltip.html
... | ... | @@ -46,6 +46,10 @@ |
46 | 46 | /*left: 20px;*/ |
47 | 47 | } |
48 | 48 | |
49 | + .tooltip#top_info { | |
50 | + white-space: nowrap; | |
51 | + } | |
52 | + | |
49 | 53 | .tooltip#first_info { |
50 | 54 | width: 400px; |
51 | 55 | } |
... | ... | @@ -93,6 +97,10 @@ |
93 | 97 | |
94 | 98 | </style> |
95 | 99 | |
100 | + <paper-dialog id="top_info" class="tooltip"> | |
101 | + <p class="ptop"><b>{{description}}</b></p> | |
102 | + </paper-dialog> | |
103 | + | |
96 | 104 | <paper-dialog id="first_info" class="tooltip"> |
97 | 105 | <iron-icon icon="communication:call-made" class="this" style$="color: {{color}};"></iron-icon> |
98 | 106 | <div class="tooltip_top"> |
... | ... | @@ -165,6 +173,11 @@ |
165 | 173 | this.hideTooltip(); |
166 | 174 | |
167 | 175 | switch (lvl) { |
176 | + case "top": | |
177 | + $("#top_info").css("top", y); | |
178 | + $("#top_info").css("left", x); | |
179 | + this.$.top_info.open(); | |
180 | + break; | |
168 | 181 | case "first": |
169 | 182 | $("#first_info").css("top", y); |
170 | 183 | $("#first_info").css("left", x); |
... | ... | @@ -183,6 +196,7 @@ |
183 | 196 | }, |
184 | 197 | |
185 | 198 | hideTooltip: function() { |
199 | + this.$.top_info.close(); | |
186 | 200 | this.$.first_info.close(); |
187 | 201 | this.$.middle_info.close(); |
188 | 202 | this.$.last_info.close(); | ... | ... |
locales/datasetexplorer_ln.js
1 | 1 | datasetexplorer_ln = []; |
2 | 2 | |
3 | 3 | /*EN*/ |
4 | +datasetexplorer_ln["ode+back_en"] = "<< Click to navigate back to the top level."; | |
5 | + | |
4 | 6 | datasetexplorer_ln["openwall+provider_1_en"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; |
5 | 7 | datasetexplorer_ln["openwall+provider_2_en"] = "data.issy.com (from OpenDataSoft France)"; |
6 | 8 | datasetexplorer_ln["openwall+provider_3_en"] = "Open data Regione Lazio (Italy)"; |
... | ... | @@ -11,6 +13,8 @@ datasetexplorer_ln["openwall+provider_7_en"] = "Ireland\\'s Open Data Portal (Ir |
11 | 13 | datasetexplorer_ln["openwall+provider_8_en"] = "TET v.0.1 @ Galway (Ireland)"; |
12 | 14 | |
13 | 15 | /*IT*/ |
16 | +datasetexplorer_ln["ode+back_it"] = "<< Clicca qui per tornare al livello precedente."; | |
17 | + | |
14 | 18 | datasetexplorer_ln["openwall+provider_1_it"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; |
15 | 19 | datasetexplorer_ln["openwall+provider_2_it"] = "data.issy.com (from OpenDataSoft France)"; |
16 | 20 | datasetexplorer_ln["openwall+provider_3_it"] = "Open data Regione Lazio (Italy)"; |
... | ... | @@ -21,6 +25,8 @@ datasetexplorer_ln["openwall+provider_7_it"] = "Ireland\\'s Open Data Portal (Ir |
21 | 25 | datasetexplorer_ln["openwall+provider_8_it"] = "TET v.0.1 @ Galway (Ireland)"; |
22 | 26 | |
23 | 27 | /*FR*/ |
28 | +datasetexplorer_ln["ode+back_fr"] = "<< Click to navigate back to the top level."; | |
29 | + | |
24 | 30 | datasetexplorer_ln["openwall+provider_1_fr"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; |
25 | 31 | datasetexplorer_ln["openwall+provider_2_fr"] = "data.issy.com (from OpenDataSoft France)"; |
26 | 32 | datasetexplorer_ln["openwall+provider_3_fr"] = "Open data Regione Lazio (Italy)"; |
... | ... | @@ -31,6 +37,8 @@ datasetexplorer_ln["openwall+provider_7_fr"] = "Ireland\\'s Open Data Portal (Ir |
31 | 37 | datasetexplorer_ln["openwall+provider_8_fr"] = "TET v.0.1 @ Galway (Ireland)"; |
32 | 38 | |
33 | 39 | /*NL*/ |
40 | +datasetexplorer_ln["ode+back_en"] = "<< Click to navigate back to the top level."; | |
41 | + | |
34 | 42 | datasetexplorer_ln["openwall+provider_1_nl"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; |
35 | 43 | datasetexplorer_ln["openwall+provider_2_nl"] = "data.issy.com (from OpenDataSoft France)"; |
36 | 44 | datasetexplorer_ln["openwall+provider_3_nl"] = "Open data Regione Lazio (Italy)"; | ... | ... |