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