grim/hgkeeper-theme
Clone
Summary
Browse
Changes
Graph
Tweak the margin's on the rss and atom links
draft
2020-03-22, Gary Kramlich
370c28e46baf
Tweak the margin's on the rss and atom links
{dict(graph=1)%header}
<div class="position-relative">
<canvas id="graph" class="position-absolute" style="z-index: 5;"></canvas>
<ul class="list-group" id="graphnodes">
{nodes%changesetheader}
</ul>
</div>
<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
var data = {jsdata|json};
var graph = new GraphV2();
graph.colors = [
"#8dd3c7", "
#feffb
3
", "
#
bfbbd9", "
#fa
8174
", "
#
81b1d2",
"
#fdb
462
", "
#
b3de69", "
#bc
82
bd
", "
#
ccebc4", "
#ffed
6
f
"
];
graph.render(data);
</script>
<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
new ClipboardJS(".clipboard");
</script>
<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
ajaxScrollInit(
'{url|urlescape}graph/%next%{graphvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
'.card',
'<div class="%class%" style="text-align: center;">%text%</div>',
'graph'
);
</script>
{footer}