aboutsummaryrefslogtreecommitdiffstats
path: root/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/TopoAccor.html
blob: cd021a493f9b601a49c72ef0ecb9d98ed2f893ba (plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
    <link href="css/bootstrap.min.css" rel="stylesheet" />

    <link href="css/bootstrap-table.min.css" rel="stylesheet" />

    <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/rest.js"></script>
    <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
    <script>
        $(document).ready(function () {
            var serviceId = getQueryStringValue("serviceId");
            console.log("TOPOAccor - serviceId : " + serviceId);

            $("#topoContObj").attr('data', 'chartTopo.html?serviceId='+serviceId);
            $("#nfvotopoContObj").attr('data', 'lcm_detail_nfvo_topology.html?serviceId='+serviceId);
        });

        function getQueryStringValue (key) {
            var params = new URLSearchParams(window.location.search.slice(1));
            return params.get(key);
        }
        function acordClick_sdno() {
            $("#topoContObj").show();
            $("#nfvotopoContObj").hide();
        }
        function acordClick_nfvo() {
            $("#nfvotopoContObj").show();
            $("#topoContObj").hide();
        }

    </script>
    <meta charset="utf-8">
    <title>JS Bin</title>
    <style>
        body {
            overflow: hidden;
            margin: 15px;
        }
        .panel-heading:hover {
            border: 1px solid #4ac9ff;
            color: #4ac9ff;
        }

        li:hover {
            cursor: pointer;
            color: #4ac9ff;
        }
        #accordion .glyphicon {
            margin-right: 10px;
        }

        .panel-collapse > .list-group .list-group-item:first-child {
            border-top-right-radius: 0;
            border-top-left-radius: 0;
        }

        .panel-collapse > .list-group .list-group-item {
            border-width: 1px 0;
        }

        .panel-collapse > .list-group {
            margin-bottom: 0;
        }

        .panel-collapse .list-group-item {
            border-radius: 0;
        }

        .panel-collapse .list-group .list-group {
            margin: 0;
            margin-top: 10px;
        }

        .panel-collapse .list-group-item li.list-group-item {
            margin: 0 -15px;
            border-top: 1px solid #ddd !important;
            border-bottom: 0;
            padding-left: 30px;
        }

        .panel-collapse .list-group-item li.list-group-item:last-child {
            padding-bottom: 0;
        }

        .panel-collapse div.list-group div.list-group {
            margin: 0;
        }

        .panel-collapse div.list-group .list-group a.list-group-item {
            border-top: 1px solid #ddd !important;
            border-bottom: 0;
            padding-left: 30px;
        }

        .panel-collapse .list-group-item li.list-group-item {
            border-top: 1px solid #DDD !important;
        }

        .selected {
            /*background-color: #ddd;*/
            color: #4ac9ff;
        }
        .panel-title>a {
            display: inline-block;
            width: 100%;
        }

    </style>
</head>
<body>

    <div class="row">
        <div class="col-sm-3" style="width: 18%; padding-right: 0;">
            <div class="panel-group" id="accordion">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <a id="sdno" style="text-decoration:none;" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" onClick="acordClick_sdno();">
                                SDNO
                            </a>
                        </h4>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a id="nfvo" style="text-decoration:none;" class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" onClick="acordClick_nfvo();">
                            NFVO
                        </a>
                    </h4>
                </div>
            </div>
        </div>
        <div class="col-sm-3" style="width: 82%; padding-right: 0;">
            <div class="panel-body" style="padding: 0">
                <object id="topoContObj" data="chartTopo.html" width="100%" height="300" type="text/html">

                </object>
            </div>
            <div class="panel-body" style="padding: 0">
                <object id="nfvotopoContObj" data="lcm_detail_nfvo_topology.html" width="100%" height="300" type="text/html">

                </object>
            </div>
        </div>
    </div>


</body>
</html>