UNPKG

dashboard

Version:

Create dashboards with gadgets on node.js

55 lines (49 loc) 1.87 kB
<!-- * 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. --> <!DOCTYPE html> <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"> var gadgetHostURL = 'http://' + window.location.hostname + ':8080/ascot/gadgets/'; var specUrl = [ 'flickr_viewport_sky.xml', 'flickrAstrometry.xml', 'data_gadget.xml', ] function init() { shindig.container.layoutManager = new shindig.FloatLeftLayoutManager('layout-root'); for (var i = 0; i < specUrl.length ; i++) { shindig.container.addGadget( shindig.container.createGadget({specUrl: gadgetHostURL + specUrl[i], width: 420}));//was 600 } }; function renderGadgets() { shindig.container.renderGadgets(); }; </script> </head> <body onLoad="init();renderGadgets();"> <div id="layout-root" class="gadgets-layout-root"></div> </body> </html>