blob: 237c5112aa859d25703dc8081274600e285d8dd4 [file] [log] [blame]
Simon Hunt195cb382014-11-03 17:50:51 -08001/*
2 * Copyright 2014 Open Networking Laboratory
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
17/*
Simon Hunt2fe26ac2014-11-06 09:58:32 -080018 ONOS GUI -- Masthead script
Simon Hunt195cb382014-11-03 17:50:51 -080019
20 Defines the masthead for the UI. Injects logo and title, as well as providing
21 the placeholder for a set of radio buttons.
22
23 @author Simon Hunt
24 */
25
26(function (onos){
27 'use strict';
28
29 // API's
30 var api = onos.api;
31
32 // Config variables
33 var guiTitle = 'Open Networking Operating System';
34
35 // DOM elements and the like
36 var mast = d3.select('#mast');
37
38 mast.append('img')
39 .attr({
40 id: 'logo',
41 src: 'img/onos-logo.png'
42 });
43
44 mast.append('span')
45 .attr({
46 class: 'title'
47 })
48 .text(guiTitle);
49
50 mast.append('span')
51 .attr({
52 id: 'mastRadio',
53 class: 'right'
54 });
55
Simon Hunt2fe26ac2014-11-06 09:58:32 -080056}(ONOS));