Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 3 | ~ Copyright 2016-present Open Networking Laboratory |
Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 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> |
Simon Hunt | 4afa61d | 2016-02-23 09:31:43 -0800 | [diff] [blame] | 38 | <script type="text/javascript" src="../app/fw/svg/glyphData.js"></script> |
Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 39 | |
| 40 | <script type="text/javascript" src="big-icon.js"></script> |
| 41 | |
| 42 | <link rel="stylesheet" href="../app/common.css"> |
| 43 | <link rel="stylesheet" href="../app/fw/svg/icon.css"> |
| 44 | |
| 45 | <style> |
| 46 | html, |
| 47 | body { |
| 48 | background-color: #ddf; |
| 49 | font-family: Arial, Helvetica, sans-serif; |
| 50 | font-size: 9pt; |
| 51 | } |
| 52 | |
| 53 | h2 { |
| 54 | color: darkred; |
| 55 | } |
| 56 | |
Simon Hunt | f715cdb | 2016-02-18 15:18:25 -0800 | [diff] [blame] | 57 | /* foreground color */ |
Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 58 | svg .glyph { |
| 59 | stroke: none; |
Simon Hunt | f715cdb | 2016-02-18 15:18:25 -0800 | [diff] [blame] | 60 | fill: #246; |
Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 61 | fill-rule: evenodd; |
| 62 | } |
| 63 | |
Simon Hunt | f715cdb | 2016-02-18 15:18:25 -0800 | [diff] [blame] | 64 | /* background color */ |
Simon Hunt | 6242ede | 2016-02-02 12:33:44 -0800 | [diff] [blame] | 65 | svg.embeddedGlyph .glyph rect { |
| 66 | fill: #fff |
| 67 | } |
| 68 | |
| 69 | </style> |
| 70 | |
| 71 | </head> |
| 72 | <!-- outline for using a controller in Angular --> |
| 73 | <body class="light" ng-app="showGlyph" ng-controller="OvShowGlyph as ctrl"> |
| 74 | <h2>Display a Glyph</h2> |
| 75 | <div id="showGlyphs"></div> |
| 76 | <svg><defs></defs></svg> |
| 77 | </body> |
| 78 | </html> |