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