2 <!-- /* Copyright 2016-2017, Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 <meta charset="UTF-8">
24 <link href="css/bootstrap.min.css" rel="stylesheet" />
25 <link href="css/VMMain.css" rel="stylesheet" />
26 <link href="css/bootstrap-table.min.css" rel="stylesheet" />
28 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
29 <script type="text/javascript" src="js/bootstrap.min.js"></script>
30 <script type="text/javascript" src="js/rest.js"></script>
31 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
32 <script type="text/javascript" src="js/jquery-ui-1.12.1.min.js"> </script>
33 <link href="css/jquery-ui-1.12.1.min.css" rel="stylesheet" />
36 <script src="js/topo/sigma/sigma.min.js"></script>
37 <script src="js/topo/sigma/sigma.renderers.edgeLabels.min.js"></script>
44 .panel-heading:hover {
45 border: 1px solid #4ac9ff;
55 #accordion .glyphicon {
58 .panel-collapse>.list-group .list-group-item:first-child {
59 border-top-right-radius: 0;
60 border-top-left-radius: 0;
62 .panel-collapse>.list-group .list-group-item {
65 .panel-collapse>.list-group {
68 .panel-collapse .list-group-item {
71 .panel-collapse .list-group .list-group {
75 .panel-collapse .list-group-item li.list-group-item {
77 border-top: 1px solid #ddd !important;
81 .panel-collapse .list-group-item li.list-group-item:last-child {
84 .panel-collapse div.list-group div.list-group {
87 .panel-collapse div.list-group .list-group a.list-group-item {
88 border-top: 1px solid #ddd !important;
92 .panel-collapse .list-group-item li.list-group-item {
93 border-top: 1px solid #DDD !important;
99 var serviceId = getQueryStringValue("serviceId");
100 console.log("TOPO - serviceId : "+ serviceId);
104 $('#container').highcharts({
106 backgroundColor: 'rgb(250,250,250)',
111 var ren = this.renderer,
112 colors = Highcharts.getOptions().colors,
113 rightArrow = ['M', 0, 0, 'L', 100, 0, 'L', 95, 5, 'M', 100, 0, 'L', 95, -5],
114 leftArrow = ['M', 100, 0, 'L', 0, 0, 'L', 5, 5, 'M', 0, 0, 'L', 5, -5];
117 ren.label('vCpe Name', 10, 82)
140 ren.label('', 50, 75)
149 ren.label('Site Name', 210, 82)
164 ren.label('DC Name', 420, 82)
178 ren.label('VPC', 620, 82)
222 function addAccordionData(paneltype, text){
224 content += '<div id="panel_'+paneltype+'" class="panel panel-default" onclick="acordClick(\''+paneltype+'\');"><div class="panel-heading">';
225 content += '<h4 class="panel-title">';
226 content += '<a style="text-decoration:none;" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">';
227 content += '<span id="sdnoLink">'+text+'</span></a>';
228 content += '</h4></div>';
229 content += '</div></div>';
232 function getQueryStringValue (key) {
233 var params = new URLSearchParams(window.location.search.slice(1));
234 return params.get(key);
237 function acordClick(panelType) {
238 //TODO: Act according to the panelType. value may be sdno, gso or nfvo
239 console.log(panelType + " Clicked");
254 <div class="col-sm-3" style="width:18%">
255 <div class="panel-group" id="accordion">
258 <div class="col-sm-3" id="dashboard" style="width:82%">
259 <div id="container" style="width: 750px; height: 250px; margin: 0 auto; display: inline-block;"> </div>