Commit e9aeb8073eed41951da32e5df340b566937308bf

Authored by Andrea Petta
1 parent f46ae55c

datalet creator fix

Showing 1 changed file with 9 additions and 0 deletions
demo.html
... ... @@ -133,8 +133,17 @@
133 133 var dsc = document.getElementById("dsc");
134 134 dsc.setAttribute("datasets", JSON.stringify(datasets));
135 135  
  136 + $("#treeMapView").parent().parent().hide();
136 137 window.addEventListener("data-sevc-controllet.dataletCreated", function(e){parent.createHTML(e);});
137 138  
  139 + /*var h = $("#material_container").height() - 48;
  140 + var w = $("#material_container").width();
  141 + console.log($("#div_datasetexplorer"));
  142 + console.log($("#div_datasetexplorer").html());
  143 + $("#div_datasetexplorer").html("CIAO !!");
  144 + console.log($("#div_datasetexplorer").html());
  145 + $("#div_datasetexplorer").html("<datasetexplorer-datalet width=\""+w+"\" height=\""+h+"\" data-url=\"http://spod.routetopa.eu/openwall/api/datasetTree\" fields=\"[\"result,datasets,provider_name\",\"result,datasets,organization_name\",\"result,datasets,package_name\",\"result,datasets,resource_name\",\"result,datasets,url\",\"result,datasets,w\"]\"></datasetexplorer-datalet>");
  146 + console.log($("#div_datasetexplorer").html());*/
138 147 });
139 148 </script>
140 149 </head>
... ...