Mercurial > hg
comparison templates/graph.tmpl @ 6733:936a9073bb73
graph: fix JavaScript issues to make it work on IE
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Wed, 25 Jun 2008 20:50:40 +0200 |
parents | 855851eae70f |
children | 248e54a9456e |
comparison
equal
deleted
inserted
replaced
6732:3e532b97d1e1 | 6733:936a9073bb73 |
---|---|
2 <title>#repo|escape#: graph</title> | 2 <title>#repo|escape#: graph</title> |
3 <link rel="alternate" type="application/atom+xml" | 3 <link rel="alternate" type="application/atom+xml" |
4 href="#url#atom-tags" title="Atom feed for #repo|escape#: tags"> | 4 href="#url#atom-tags" title="Atom feed for #repo|escape#: tags"> |
5 <link rel="alternate" type="application/rss+xml" | 5 <link rel="alternate" type="application/rss+xml" |
6 href="#url#rss-tags" title="RSS feed for #repo|escape#: tags"> | 6 href="#url#rss-tags" title="RSS feed for #repo|escape#: tags"> |
7 <!--[if IE]><script type="text/javascript" src="#staticurl#excanvas.js"></script><![endif]--> | |
7 </head> | 8 </head> |
8 <body> | 9 <body> |
9 | 10 |
10 <div class="buttons"> | 11 <div class="buttons"> |
11 <a href="#url#log{sessionvars%urlparameter}">changelog</a> | 12 <a href="#url#log{sessionvars%urlparameter}">changelog</a> |
37 <script> | 38 <script> |
38 <!-- hide script content | 39 <!-- hide script content |
39 | 40 |
40 document.getElementById('noscript').style.display = 'none'; | 41 document.getElementById('noscript').style.display = 'none'; |
41 | 42 |
42 data = {jsdata|json}; | 43 var data = {jsdata|json}; |
43 graph = new Graph(); | 44 var graph = new Graph(); |
44 graph.scale({bg_height}); | 45 graph.scale({bg_height}); |
45 | 46 |
46 graph.edge = function(x0, y0, x1, y1, color) { | 47 graph.edge = function(x0, y0, x1, y1, color) { |
47 | 48 |
48 this.setColor(color, 0.0, 0.65); | 49 this.setColor(color, 0.0, 0.65); |