forked from routetopa/deep-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe_controllet.html
51 lines (43 loc) · 2.85 KB
/
iframe_controllet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<script type="text/javascript" src="controllets/shared_js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="controllets/data-sevc-controllet/demo-data-sevc-controllet.html" />
<script type="text/javascript" src="configuration.js"></script>
<style>
#controllet paper-material {
overflow: hidden;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
var datasets = {
"1": {
"p_name": "ROUTE-TO-PA",
"p_url": "http://ckan.routetopa.eu",
"p_datasets": [
{
"name": "SPOD SUPER HEROES",
"id": "7801529a-985c-4079-941c-747ada0f5ec9",
"p": "CKAN_1"
},
{
"name": "Wonders of the World",
"id": "7bc4479b-938e-4561-b15f-f9c12ce00acd",
"p": "CKAN_1"
},
{
"name": "Animal Sounds",
"id": "edd557bc-0510-4efe-9395-db9d4f2a7eac",
"p": "CKAN_1"
}
]
}
};
var controllet = document.getElementById("controllet");
controllet.setAttribute("datasets", JSON.stringify(datasets));
window.addEventListener("data-sevc-controllet.dataletCreated", function(e){parent.createHTML(e);});
});
//http://ckan.routetopa.eu/api/action/datastore_search?resource_id=1d9c8e62-47ab-40d5-8943-b4c3bca14b50
</script>
<demo-data-sevc-controllet id="controllet">
</demo-data-sevc-controllet>
<!--datasets='{"result":{"providers":{"1":{"title":"CKAN","api_url":"http:\/\/ckan.routetopa.eu","image_hash":"11","id":"1"}},"datasets":[{"w":1,"provider_name":"p:1","organization_name":"SPOD","package_name":"isislab","resource_name":"EXAMPLE 1","url":"http:\/\/ckan.routetopa.eu\/\/api\/action\/datastore_search?resource_id=642ceea8-711e-4124-b450-0d23010c44e6","metas":"{\"organization\":\"SPOD\",\"description\":\"This is a test datasets.\",\"format\":\"CSV\"}"}, {"w":1,"provider_name":"p:1","organization_name":"SPOD","package_name":"isislab","resource_name":"EXAMPLE 2","url":"http:\/\/ckan2.routetopa.eu\/\/api\/action\/datastore_search?resource_id=642ceea8-711e-4124-b450-0d23010c44e6","metas":"{\"organization\":\"SPOD\",\"description\":\"This is a test datasets.\",\"format\":\"CSV\"}"}, {"w":1,"provider_name":"p:1","organization_name":"SPOD","package_name":"isislab","resource_name":"EXAMPLE 3","url":"http:\/\/ckan3.routetopa.eu\/\/api\/action\/datastore_search?resource_id=642ceea8-711e-4124-b450-0d23010c44e6","metas":"{\"organization\":\"SPOD\",\"description\":\"This is a test datasets.\",\"format\":\"CSV\"}"}]}}'-->