blob: 785a3a72af5b89cf7ff4f6eab4b8d9eac378664f [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 */
Bri Prebilic Cole5a206bb2015-03-25 16:33:27 -070045 /* is it because there is an invisible rectangle behind it? */
Bri Prebilic Cole91425fb2015-03-11 16:29:48 -070046 /*filter: url(#innerbevel);*/
47 }
48 svg text {
49 fill: white;
50 letter-spacing: .005em;
51 }
52 defs {
53 display: none;
54 }
55 </style>
56</head>
57
58<body ng-app="svgExercise">
59<div id="svgExDiv" ng-controller="svgExCtrl as ctrl">
60 <improve-performance></improve-performance>
61</div>
62
63<svg>
64 <defs>
65 <filter id="innerbevel" x0="-50%" y0="-50%" width="200%" height="200%">
66 <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
67 <feOffset dy="-1" dx="-1"/>
68 <feComposite in2="SourceAlpha" operator="arithmetic"
69 k2="-1" k3="1" result="hlDiff"/>
70 <feFlood flood-color="white" flood-opacity=".7"/>
71 <feComposite in2="hlDiff" operator="in"/>
72 <feComposite in2="SourceGraphic" operator="over" result="withGlow"/>
73
74 <feOffset in="blur" dy="3" dx="3"/>
75 <feComposite in2="SourceAlpha" operator="arithmetic"
76 k2="-1" k3="1" result="shadowDiff"/>
77 <feFlood flood-color="black" flood-opacity="1"/>
78 <feComposite in2="shadowDiff" operator="in"/>
79 <feComposite in2="withGlow" operator="over"/>
80 </filter>
81 </defs>
82</svg>
83
84</body>
85</html>