##// END OF EJS Templates
graph: improve script hiding tricks
Dirkjan Ochtman -
r6729:855851ea default
parent child Browse files
Show More
@@ -50,8 +50,9
50 50
51 51 <script type="text/javascript" src="{staticurl}graph.js"></script>
52 52 <script>
53 <!-- hide script content
53 54
54 document.getElementById('noscript').style.visibility = 'hidden';
55 document.getElementById('noscript').style.display = 'none';
55 56
56 57 data = {jsdata|json};
57 58 graph = new Graph();
@@ -96,6 +97,8 graph.vertex = function(x, y, color, par
96 97 }
97 98
98 99 graph.render(data);
100
101 // stop hiding script -->
99 102 </script>
100 103
101 104 <div class="navigate">
@@ -42,8 +42,9 graph |
42 42
43 43 <script type="text/javascript" src="#staticurl#graph.js"></script>
44 44 <script>
45 <!-- hide script content
45 46
46 document.getElementById('noscript').style.visibility = 'hidden';
47 document.getElementById('noscript').style.display = 'none';
47 48
48 49 data = {jsdata|json};
49 50 graph = new Graph();
@@ -107,6 +108,8 graph.vertex = function(x, y, color, par
107 108 }
108 109
109 110 graph.render(data);
111
112 // stop hiding script -->
110 113 </script>
111 114
112 115 <div class="page_nav">
@@ -35,8 +35,9 navigate: <small class="navigate">#chang
35 35
36 36 <script type="text/javascript" src="#staticurl#graph.js"></script>
37 37 <script>
38 <!-- hide script content
38 39
39 document.getElementById('noscript').style.visibility = 'hidden';
40 document.getElementById('noscript').style.display = 'none';
40 41
41 42 data = {jsdata|json};
42 43 graph = new Graph();
@@ -79,6 +80,8 graph.vertex = function(x, y, color, par
79 80 }
80 81
81 82 graph.render(data);
83
84 // stop hiding script -->
82 85 </script>
83 86
84 87 <form action="#url#log">
@@ -85,6 +85,7 div#wrapper {
85 85 position: relative;
86 86 margin: 0;
87 87 padding: 0;
88 margin-top: 3px;
88 89 }
89 90
90 91 canvas {
General Comments 0
You need to be logged in to leave comments. Login now