41 <canvas id="graph"></canvas> |
41 <canvas id="graph"></canvas> |
42 <ul id="graphnodes">{nodes%graphentry}</ul> |
42 <ul id="graphnodes">{nodes%graphentry}</ul> |
43 </div> |
43 </div> |
44 |
44 |
45 <script{if(nonce, ' nonce="{nonce}"')}> |
45 <script{if(nonce, ' nonce="{nonce}"')}> |
46 <!-- hide script content |
|
47 |
|
48 var data = {jsdata|json}; |
46 var data = {jsdata|json}; |
49 var graph = new Graph(); |
47 var graph = new Graph(); |
50 graph.scale({bg_height}); |
48 graph.scale({bg_height}); |
51 |
49 |
52 graph.vertex = function(x, y, radius, color, parity, cur) \{ |
50 graph.vertex = function(x, y, radius, color, parity, cur) \{ |
53 Graph.prototype.vertex.apply(this, arguments); |
51 Graph.prototype.vertex.apply(this, arguments); |
54 return ['<li class="bg parity' + parity + '"></li>', '']; |
52 return ['<li class="bg parity' + parity + '"></li>', '']; |
55 } |
53 } |
56 |
54 |
57 graph.render(data); |
55 graph.render(data); |
58 |
|
59 // stop hiding script --> |
|
60 </script> |
56 </script> |
61 |
57 |
62 <div class="extra_nav"> |
58 <div class="extra_nav"> |
63 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
59 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> |
64 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |
60 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> |