00b508a0
luigser
DEEPCLIENT
|
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<!DOCTYPE html>
<html>
<head>
<!-- style -->
<link rel="stylesheet" href="js/bootstrap-3.3.4-dist/css/bootstrap.css">
<style>
@media screen and (min-width: 768px) {
#treemapModal .modal-dialog {width:900px;}
}
</style>
<!-- Js imports -->
<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="../COMPONENTS/bower_components/webcomponentsjs/webcomponents.js"></script>
<script type="text/javascript" src="js/deepClient.js"></script>
<script src="js/bootstrap-3.3.4-dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
DATAURL = "http://dati.lazio.it/catalog/api/action/datastore_search?resource_id=722b6cbd-28d3-4151-ac50-9c4261298168&limit=500";
FIELDS = Array("result,records,Descr. missione","result,records,Previsione Competenza","result,records,Descr. programma");
jQuery(document).ready(function($) {
var table_params ={
component : "datatable-datalet",
params :{
'data-url' : DATAURL
},
fields : FIELDS,
placeHolder : "table_component_place_holder"
};
var treemap_params ={
component : "treemap-datalet",
params :{
'data-url' : DATAURL,
'fields-order' : "0,2,1"
},
fields : FIELDS,
placeHolder : "treemap_component_place_holder"
};
ComponentService.deep_url = 'http://service.routetopa.eu/WebComponentsDEV/DEEP/';
ComponentService.getComponent(table_params);
ComponentService.getComponent(treemap_params);
});
</script>
</head>
<body>
<div class="jumbotron">
<div class="container">
<h2>Open Data Datalets</h2>
<p class="small text-info">In this page you can see several containers with opendata Datalets. To do this the page uses the DEEPCLIENT js library.
The only things you have to know is the data source url, the fields that component need to visualize the chart, the componet you want to use and the place holder in witch the component will be
injected.
</p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more »</a></p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"> Datatable Datalet</h3>
</div>
<div class="panel-body">
<div id="table_component_place_holder"></div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Treemap Datalet</h3>
</div>
<div class="panel-body">
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#treemapModal">Open Modal</button>
<!-- Modal -->
<div id="treemapModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Treemap Datalet</h4>
</div>
<div id="treemap_component_place_holder"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|