dashboard
Version:
Create dashboards with gadgets on node.js
70 lines (64 loc) • 2.52 kB
HTML
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
-->
<html>
<head>
<title>Gadget Demo: Flickr & Google Sky</title>
<!-- default container look and feel -->
<link rel="stylesheet" href="../css/gadgetsDemo2.css">
<script type="text/javascript" src="../../../gadgets/js/shindig-container:rpc.js?c=1&debug=0&nocache=1"></script>
<script type="text/javascript" src="css/cookies.js"></script>
<script type="text/javascript" src="css/util.js"></script>
<script type="text/javascript" src="css/gadgets.js"></script>
<script type="text/javascript" src="css/cookiebaseduserprefstore.js"></script>
<script type="text/javascript">
var gadgetHostURL = 'http://' + window.location.hostname + ':8080/ascot/gadgets/';
var specUrl = [
'viewport_sky.xml',
//'FlickrAstrometry5.xml',
'geoCode.xml',
//'carousel.xml',
'data_gadget.xml',
//'input_coords.xml',
//'plot.xml',
//'name_resolve.xml',
//'gadget_template.xml',
//'kml_sandbox.xml',
//'output_data.xml',
//'get_objects.xml',
//'frameInfo.xml',
//'input_address.xml'
]
function init() {
gadgets.container.layoutManager =
new gadgets.FloatLeftLayoutManager('layout-root');
for (var i = 0; i < specUrl.length ; i++) {
gadgets.container.addGadget(
gadgets.container.createGadget({specUrl: gadgetHostURL + specUrl[i], width: 420}));//was 600
}
};
function renderGadgets() {
gadgets.container.renderGadgets();
};
</script>
</head>
<body onLoad="init();renderGadgets();">
<div id="layout-root" class="gadgets-layout-root"></div>
</body>
</html>