blob: 3952b6ced204f7d447814c2ebeae3c9e65d420ae [file] [log] [blame]
Bri Prebilic Cole91425fb2015-03-11 16:29:48 -07001<!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 -- SVG mouse over d3 exercise html
20 -->
21
22<html>
23<head lang="en">
24 <meta charset="UTF-8">
25 <title>Upgrade Performance</title>
26
27 <script type="text/javascript" src="../tp/angular.js"></script>
28 <script type="text/javascript" src="../tp/d3.js"></script>
29 <script type="text/javascript" src="svg-exercise.js"></script>
30 <script type="text/javascript" src="../app/fw/util/util.js"></script>
31 <script type="text/javascript" src="../app/fw/util/fn.js"></script>
32
33
34 <style>
35 html,
Bri Prebilic Cole4db8dce2015-03-18 13:57:24 -070036 body, div {
Bri Prebilic Cole91425fb2015-03-11 16:29:48 -070037 background-color: #eee;
38 font-family: Arial, Helvetica, sans-serif;
39 font-size: 9pt;
Bri Prebilic Cole4db8dce2015-03-18 13:57:24 -070040 margin: 0;
Bri Prebilic Cole91425fb2015-03-11 16:29:48 -070041 }
42 .button {
43 fill: #369;
44 /* TODO: figure out why svg filters are not working */
45 /*filter: url(#innerbevel);*/
46 }
47 svg text {
48 fill: white;
49 letter-spacing: .005em;
50 }
51 defs {
52 display: none;
53 }
54 </style>
55</head>
56
57<body ng-app="svgExercise">
58<div id="svgExDiv" ng-controller="svgExCtrl as ctrl">
59 <improve-performance></improve-performance>
60</div>
61
62<svg>
63 <defs>
64 <filter id="innerbevel" x0="-50%" y0="-50%" width="200%" height="200%">
65 <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
66 <feOffset dy="-1" dx="-1"/>
67 <feComposite in2="SourceAlpha" operator="arithmetic"
68 k2="-1" k3="1" result="hlDiff"/>
69 <feFlood flood-color="white" flood-opacity=".7"/>
70 <feComposite in2="hlDiff" operator="in"/>
71 <feComposite in2="SourceGraphic" operator="over" result="withGlow"/>
72
73 <feOffset in="blur" dy="3" dx="3"/>
74 <feComposite in2="SourceAlpha" operator="arithmetic"
75 k2="-1" k3="1" result="shadowDiff"/>
76 <feFlood flood-color="black" flood-opacity="1"/>
77 <feComposite in2="shadowDiff" operator="in"/>
78 <feComposite in2="withGlow" operator="over"/>
79 </filter>
80 </defs>
81</svg>
82
83</body>
84</html>