##// END OF EJS Templates
hgweb: make stripes in graph with CSS
Alexander Plavin -
r19453:ece3b329 default
parent child Browse files
Show More
@@ -56,7 +56,7 files, or words in the commit message</d
56 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
56 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
57
57
58 <div id="wrapper">
58 <div id="wrapper">
59 <ul id="nodebgs"></ul>
59 <ul id="nodebgs" class="stripes2"></ul>
60 <canvas id="graph" width="480" height="{canvasheight}"></canvas>
60 <canvas id="graph" width="480" height="{canvasheight}"></canvas>
61 <ul id="graphnodes"></ul>
61 <ul id="graphnodes"></ul>
62 </div>
62 </div>
@@ -75,7 +75,7 graph.vertex = function(x, y, color, par
75 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
75 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
76 this.ctx.fill();
76 this.ctx.fill();
77
77
78 var bg = '<li class="bg parity' + parity + '"></li>';
78 var bg = '<li class="bg"></li>';
79 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
79 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
80 var nstyle = 'padding-left: ' + left + 'px;';
80 var nstyle = 'padding-left: ' + left + 'px;';
81
81
@@ -262,7 +262,7 Some tests for hgweb in an empty reposit
262 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
262 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
263
263
264 <div id="wrapper">
264 <div id="wrapper">
265 <ul id="nodebgs"></ul>
265 <ul id="nodebgs" class="stripes2"></ul>
266 <canvas id="graph" width="480" height="12"></canvas>
266 <canvas id="graph" width="480" height="12"></canvas>
267 <ul id="graphnodes"></ul>
267 <ul id="graphnodes"></ul>
268 </div>
268 </div>
@@ -281,7 +281,7 Some tests for hgweb in an empty reposit
281 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
281 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
282 this.ctx.fill();
282 this.ctx.fill();
283
283
284 var bg = '<li class="bg parity' + parity + '"></li>';
284 var bg = '<li class="bg"></li>';
285 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
285 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
286 var nstyle = 'padding-left: ' + left + 'px;';
286 var nstyle = 'padding-left: ' + left + 'px;';
287
287
General Comments 0
You need to be logged in to leave comments. Login now