blob: 1013e609ed073022a5278c6ce312773013513df0 [file] [log] [blame]
Simon Hunt6242ede2016-02-02 12:33:44 -08001<!DOCTYPE html>
2<!--
3 ~ Copyright 2016 Open Networking Laboratory
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<!--
19 ONOS -- Display a glyph with Angular test page
20 -->
21
22<html>
23<head lang="en">
24 <meta charset="UTF-8">
25 <title>Show Icons Angular</title>
26
27 <script type="text/javascript" src="../tp/angular.js"></script>
28 <script type="text/javascript" src="../tp/angular-route.js"></script>
29
30 <script type="text/javascript" src="../tp/d3.js"></script>
31
32 <script type="text/javascript" src="../app/fw/util/util.js"></script>
33 <script type="text/javascript" src="../app/fw/util/fn.js"></script>
34
35 <script type="text/javascript" src="../app/fw/svg/svg.js"></script>
36 <script type="text/javascript" src="../app/fw/svg/svgUtil.js"></script>
37 <script type="text/javascript" src="../app/fw/svg/glyph.js"></script>
38
39 <script type="text/javascript" src="big-icon.js"></script>
40
41 <link rel="stylesheet" href="../app/common.css">
42 <link rel="stylesheet" href="../app/fw/svg/icon.css">
43
44 <style>
45 html,
46 body {
47 background-color: #ddf;
48 font-family: Arial, Helvetica, sans-serif;
49 font-size: 9pt;
50 }
51
52 h2 {
53 color: darkred;
54 }
55
Simon Huntf715cdb2016-02-18 15:18:25 -080056 /* foreground color */
Simon Hunt6242ede2016-02-02 12:33:44 -080057 svg .glyph {
58 stroke: none;
Simon Huntf715cdb2016-02-18 15:18:25 -080059 fill: #246;
Simon Hunt6242ede2016-02-02 12:33:44 -080060 fill-rule: evenodd;
61 }
62
Simon Huntf715cdb2016-02-18 15:18:25 -080063 /* background color */
Simon Hunt6242ede2016-02-02 12:33:44 -080064 svg.embeddedGlyph .glyph rect {
65 fill: #fff
66 }
67
68 </style>
69
70</head>
71<!-- outline for using a controller in Angular -->
72<body class="light" ng-app="showGlyph" ng-controller="OvShowGlyph as ctrl">
73 <h2>Display a Glyph</h2>
74 <div id="showGlyphs"></div>
75 <svg><defs></defs></svg>
76</body>
77</html>