Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -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 |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -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 -- Displaying icons with Angular test page |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 20 | --> |
| 21 | |
| 22 | <html> |
| 23 | <head lang="en"> |
| 24 | <meta charset="UTF-8"> |
| 25 | <title>Show Icons Angular</title> |
| 26 | |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 27 | <script type="text/javascript" src="../tp/angular.js"></script> |
| 28 | <script type="text/javascript" src="../tp/angular-route.js"></script> |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 29 | |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 30 | <script type="text/javascript" src="../tp/d3.js"></script> |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 31 | |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 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 | <script type="text/javascript" src="../app/fw/util/theme.js"></script> |
| 35 | <script type="text/javascript" src="../app/fw/util/keys.js"></script> |
Bri Prebilic Cole | c006eef | 2015-01-20 11:42:05 -0800 | [diff] [blame] | 36 | |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 37 | <script type="text/javascript" src="../app/fw/svg/svg.js"></script> |
Simon Hunt | c4c5a07 | 2015-03-25 15:32:19 -0700 | [diff] [blame] | 38 | <script type="text/javascript" src="../app/fw/svg/svgUtil.js"></script> |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 39 | <script type="text/javascript" src="../app/fw/svg/glyph.js"></script> |
Simon Hunt | 4afa61d | 2016-02-23 09:31:43 -0800 | [diff] [blame] | 40 | <script type="text/javascript" src="../app/fw/svg/glyphData.js"></script> |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 41 | <script type="text/javascript" src="../app/fw/svg/icon.js"></script> |
Bri Prebilic Cole | c006eef | 2015-01-20 11:42:05 -0800 | [diff] [blame] | 42 | <script type="text/javascript" src="../app/fw/svg/geodata.js"></script> |
| 43 | <script type="text/javascript" src="../app/fw/svg/map.js"></script> |
| 44 | <script type="text/javascript" src="../app/fw/svg/zoom.js"></script> |
| 45 | |
Bri Prebilic Cole | b07c279 | 2015-01-20 09:58:09 -0800 | [diff] [blame] | 46 | <script type="text/javascript" src="show-icons-test.js"></script> |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 47 | |
| 48 | <link rel="stylesheet" href="../app/common.css"> |
Bri Prebilic Cole | c006eef | 2015-01-20 11:42:05 -0800 | [diff] [blame] | 49 | <link rel="stylesheet" href="../app/fw/svg/icon.css"> |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 50 | |
| 51 | <style> |
| 52 | html, |
| 53 | body { |
| 54 | background-color: #ddf; |
| 55 | font-family: Arial, Helvetica, sans-serif; |
| 56 | font-size: 9pt; |
| 57 | } |
| 58 | |
| 59 | h2 { |
| 60 | color: darkred; |
| 61 | } |
Bri Prebilic Cole | c006eef | 2015-01-20 11:42:05 -0800 | [diff] [blame] | 62 | |
| 63 | svg .glyph { |
| 64 | stroke: none; |
| 65 | fill: #123456; |
| 66 | fill-rule: evenodd; |
| 67 | } |
| 68 | |
| 69 | svg.embeddedGlyph .glyph rect { |
| 70 | fill: #fff |
| 71 | } |
| 72 | |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 73 | </style> |
| 74 | |
| 75 | </head> |
| 76 | <!-- outline for using a controller in Angular --> |
Bri Prebilic Cole | c006eef | 2015-01-20 11:42:05 -0800 | [diff] [blame] | 77 | <body class="light" ng-app="showIconsTest" ng-controller="OvShowIconsTest as ctrl"> |
| 78 | <h2>Displaying Icons and Glyphs with Angular</h2> |
| 79 | <div id="showIcons"> |
| 80 | <p>Show all icons in icon library:<br></p> |
| 81 | </div> |
| 82 | <hr> |
| 83 | <div id="showGlyphs"> |
| 84 | <p>Show all glyphs in glyph library:</p> |
| 85 | <p>(Displays checkMark and xMark too, because icons are built on top |
| 86 | of glyphs.)</p> |
Bri Prebilic Cole | 17a18b2 | 2015-01-19 17:15:59 -0800 | [diff] [blame] | 87 | </div> |
| 88 | |
| 89 | |
| 90 | |
| 91 | </body> |
| 92 | </html> |