Initialized the front page
[holmes/rule-management.git] / rulemgt-frontend / src / default.html
1 <!--
2  Copyright 2018 ZTE Corporation.
3
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
7
8      http://www.apache.org/licenses/LICENSE-2.0
9
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.
15 -->
16 <!DOCTYPE html>
17 <html>
18
19 <head>
20     <!-- <base href=""> -->
21     <meta charset="UTF-8">
22     <meta name="viewport" content="width=device-width, initial-scale=1">
23     <script src="./assets/thirdparty/js/jquery_1.12.4.min.js"></script>
24
25     <style type="text/css">
26         .header {
27             height: 50px;
28             width: 100%;
29             background-color: #e0e0e0;
30             color: #333333;
31             padding-left: 20px;
32             padding-right: 20px;
33             border-bottom: 2px solid #d0d0d0d0;
34             padding: 0;
35         }
36
37         .header .title {
38             font-family: Arial, Helvetica, sans-serif;
39             font-weight: bold;
40             font-size: 20px;
41             padding-left: 25px;
42             padding-top: 17px;
43         }
44
45         .logo-img {
46             margin-top: 8px;
47         }
48
49         .fl {
50             float: left;
51         }
52
53         .sidebar {
54             height: 100%;
55             background-color: #4d5b69;
56             width: 135px;
57             display: table-cell;
58         }
59
60         .body {
61             min-height: 500px;
62             height: 500px;
63             padding: 0;
64         }
65
66         body {
67             margin: 0;
68             overflow: auto;
69         }
70
71         iframe {
72             margin: 0;
73         }
74
75         .menu-item {
76             height: 135px;
77             color: #aaa;
78             text-align: center;
79         }
80
81         .menu-item:hover {
82             color: #FFF;
83             background-color: rgba(255, 255, 255, 0.1);
84         }
85
86         .menu-item-title {
87             height: 50px;
88             line-height: 50px;
89             font-family: Arial, Helvetica, sans-serif;
90             font-weight: bold;
91         }
92
93         .menu-icon {
94             height: 85px;
95             line-height: 85px;
96         }
97
98         .active {
99             color: #FFF;
100             background-color: #424e57;
101         }
102
103     </style>
104 </head>
105
106 <body>
107     <div class="header">
108         <div class="fl logo-img">
109             <img src="./assets/images/logo.png" alt="ONAP" />
110         </div>
111         <div class="fl title">
112             Holmes
113         </div>
114     </div>
115     <div class="body">
116         <div class="sidebar fl">
117             <div class="menu-item active">
118                 <div class="menu-icon">
119                     icon
120                 </div>
121                 <div class="menu-item-title">Rules</div>
122             </div>
123         </div>
124         <div class="main fl">
125             <iframe src="/iui/holmes/index.html"></iframe>
126         </div>
127     </div>
128
129     <script type="text/javascript">
130         function adjustSizes() {
131             var height = $(window).height() - $(".header").height();
132                 $(".sidebar").height(height);
133                 $("iframe").height(height);
134                 $("iframe").width($(window).width() - $(".sidebar").width());
135         }
136
137         $(function(){
138             $(window).on("resize", function(){
139                 adjustSizes();
140             });
141             adjustSizes();
142         });
143     </script>
144 </body>
145
146 </html>