- gitlist.git
- src
- browser
- js
- treegraph.js
This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
$(() => {
const subjects = $('.p3x-gitlist-treegraph-subject')
if (subjects) {
for (let subject of subjects) {
const html = window.gitlist.renderMarkdown({
markdown: subject.innerHTML
})
subject.innerHTML = html
// console.log(html)
}
}
})
window.gitlist.treegraph = () => {
if (!document.getElementById('graph-canvas')) {
return;
}
const log = $("#p3x-gitlist-treegraph-log");
if (log) {
const graphList = [];
$("#graph-raw-list li span.node-relation").each(function () {
graphList.push($(this).text());
})
const $li = $('#rev-list li');
$li.each(function() {
const $this = $(this)
const text = $this.find('.p3x-gitlist-treegraph-subject').text()
if (text !== undefined && text !== '') {
$this.attr('title', text)
}
})
global.gitGraph(document.getElementById('graph-canvas'), graphList);
}
}