upgrade jquery version.
[msb/apigateway.git] / apiroute / apiroute-service / src / main / resources / iui-route / default.html
1 <!--
2
3 Copyright (C) 2016-2018 ZTE, Inc. and others. All rights reserved. (ZTE)
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 -->
18 <!DOCTYPE html>
19 <html>
20 <head lang="en">
21 <meta charset="UTF-8">
22 <title id="org_onap_msb_route_title" name_i18n="org_onap_msb_route_ui_i18n"></title>
23 <link
24         href="js/fontAwesome/css/font-awesome.min.css"
25         rel="stylesheet" />
26 <link
27         href="js/bootstrap/css/bootstrap.min.css"
28         rel="stylesheet" />
29         <link href="css/newRoute.css" rel="stylesheet" type="text/css" />
30 <link href="css/base.css" rel="stylesheet" type="text/css" />
31
32         <script type="text/javascript">
33
34         function setIframeUrl(type){
35
36                     var url;
37         
38                         switch(type){
39                           case 1:url="/iui/microservices/index.html";break;
40                           case 2:url="/iui/msdiscover/index.html";break;
41                           case 3:url="/iui/msdiscover/serviceMng.html?type=add";break;
42                    }
43                 
44                 
45
46                  $('#msbPage').attr("src",url);   
47         }
48         </script>
49
50 </head>
51 <body >
52  <div  id="routeHead">
53         <div class="navbar-inner container-fluid" id="top-bar">
54             <header class="row-fluid">            
55             <div class="logoimg"><img class="logo" src="img/logo.png" alt="Logo"></div>
56             <div class="chineseTitle" id="org_onap_msb_route_chinese_name" name_i18n="org_onap_msb_route_ui_i18n"></div>
57             <div class="englishTitle" id="org_onap_msb_route_english_name" name_i18n="org_onap_msb_route_ui_i18n"></div>
58             </header>
59         </div>
60 </div>
61
62 <div>
63    <div class="page-sidebar" >
64         <div class="sidebar-toggler hidden-xs hidden-sm" ></div>
65         <div class="sideBar">
66         <ul class="sideBarUl">
67       <li>
68         <a onclick="setIframeUrl(1)" class="router-link-active"><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-link"></i><br><label  id="org_onap_msb_route_sideBar_serviceroute" name_i18n="org_onap_msb_route_ui_i18n"></label>       
69         </div>  
70       </a>
71       </li>
72          <li>
73       <a  onclick="setIframeUrl(2)" ><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-cloud"></i><br><label id="org_onap_msb_route_sideBar_servicediscover" name_i18n="org_onap_msb_route_ui_i18n"></label>               
74       </div>
75       </a>
76         </li>
77           <li>
78       <a  onclick="setIframeUrl(3)" id="serviceregister_sideBar"><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-plus-circle"></i><br><label id="org_onap_msb_route_sideBar_serviceregister" name_i18n="org_onap_msb_route_ui_i18n"></label>             
79       </div>
80       </a>
81         </li>
82         
83
84     
85   </div>
86   </div>
87 <div class="page-content" >
88   <div class="page-content-body">
89                                                 
90         <div id="pdiv_page-mainIframeisWare">
91                                         <iframe src="/iui/microservices/index.html" width="100%" scrolling="no" marginheight="0" frameborder="0" id="msbPage"  name="msbPage"  class="page-mainIframeisWare"  ></iframe>
92            </div>
93         </div>
94  </div>
95 </div>
96 <script type="text/javascript"  src="js/jquery/jquery-3.3.1.min.js"></script>
97 <script type="text/javascript"  src="js/iframeResizer/iframeResizer.min.js"></script>
98 <script type="text/javascript" src="js/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
99 <script src="i18n/loadi18nApp_iui-route_view.js"></script>
100 <script type="text/javascript">
101
102
103
104 $(function(){
105
106
107   var apiRootPath="api";
108     
109       $.ajaxSettings.async = false;
110         $.getJSON("./ext/initUrlRootPath/initUrlRootPath.json",function(json){
111          apiRootPath=json.apiRootPath;
112         });
113       
114
115       var apiBasePath="/"+apiRootPath+"/microservices/v1";
116
117 $.ajax({
118         "type": 'get',
119         "url":  apiBasePath+"/apiRoute/apigateway_metrics/version/v1",
120         "dataType": "json",       
121          error: function(XMLHttpRequest, textStatus, errorThrown) {
122                 $("#chart-sub-menu").hide();
123          }
124
125     });
126
127  loadPropertiesSideMenu('', 'msb-iui-route-i18n', 'i18n/');
128
129         //Get window height
130         var winHeight=610;
131                 if (window.innerHeight) 
132                         winHeight = window.innerHeight;
133                 else if ((document.body) && (document.body.clientHeight)) 
134                         winHeight = document.body.clientHeight;
135                 //Through in-depth internal Document to test the body, for the window size
136                 if (document.documentElement && document.documentElement.clientHeight ) {
137                     winHeight = document.documentElement.clientHeight;
138
139                 }
140         winHeight=winHeight-55;
141 $('iframe').iFrameResize({minHeight:winHeight});
142
143  $(".sideBar a").on({
144         click: function(){
145         $(".sideBar a").removeClass("router-link-active");
146
147         if($(this).is(".nav-link")){
148                              $(this).parent().parent().parent().children("a").addClass("router-link-active");
149         }
150         else{
151                 $(this).addClass("router-link-active");
152         }
153
154         
155         }
156       });
157
158 $(".sidebar-toggler").click(function(){
159   $("body").toggleClass("page-sidebar-closed");
160 });
161
162         
163
164 });
165
166  function gotoServiceRegisterPage(){
167     $(".sideBar a").removeClass("router-link-active");
168    $("#serviceregister_sideBar").addClass("router-link-active");
169    //setIframeUrl(3);
170   }
171         
172
173 </script>
174                                         
175
176 </body>
177 </html>