| OLD | NEW |
| (Empty) | |
| 1 <!-- |
| 2 * Copyright (c) 2015 Mountainstorm |
| 3 * |
| 4 * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 * of this software and associated documentation files (the "Software"), to deal |
| 6 * in the Software without restriction, including without limitation the rights |
| 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 * copies of the Software, and to permit persons to whom the Software is |
| 9 * furnished to do so, subject to the following conditions: |
| 10 * |
| 11 * The above copyright notice and this permission notice shall be included in al
l |
| 12 * copies or substantial portions of the Software. |
| 13 * |
| 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 * SOFTWARE. |
| 21 --> |
| 22 <html> |
| 23 <head> |
| 24 <link rel="stylesheet" href="http://cdn.rawgit.com/mountainstorm/jquery.grap
hviz.svg/master/css/graphviz.svg.css"> |
| 25 </head> |
| 26 <body> |
| 27 <div id="graph" style="width: 100%; height: 100%; overflow: scroll; position: re
lative;"></div> |
| 28 <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js">
</script> |
| 29 <script type="text/javascript" src="https://cdn.rawgit.com/jquery/jquery-mousewh
eel/master/jquery.mousewheel.min.js"></script> |
| 30 <script type="text/javascript" src="https://cdn.rawgit.com/jquery/jquery-color/m
aster/jquery.color.js"></script> |
| 31 <script type="text/javascript" src="http://cdn.rawgit.com/mountainstorm/jquery.g
raphviz.svg/master/js/jquery.graphviz.svg.js"></script> |
| 32 |
| 33 <script> |
| 34 $(document).ready(function() { |
| 35 $("#graph").graphviz({ |
| 36 url: "out/dependencies.dot.svg", |
| 37 ready: function() { |
| 38 var gv = this |
| 39 gv.nodes().click(function() { |
| 40 var $set = $() |
| 41 $set.push(this) |
| 42 $set = $set.add(gv.linkedFrom(this, true)) |
| 43 $set = $set.add(gv.linkedTo(this, true)) |
| 44 gv.highlight($set, true) |
| 45 gv.bringToFront($set) |
| 46 }) |
| 47 $(document).keydown(function(evt) { |
| 48 if (evt.keyCode == 27) { |
| 49 gv.highlight() |
| 50 } |
| 51 }) |
| 52 } |
| 53 }); |
| 54 }); |
| 55 </script> |
| 56 </body> |
| 57 </html> |
| OLD | NEW |