1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

Adding dist folder.

This commit is contained in:
Kevan Ahlquist 2015-01-18 16:40:07 -06:00
parent f65fed8d0a
commit 77062bec84
34 changed files with 3579 additions and 0 deletions

15
dist/assets/js/legend.js vendored Normal file
View file

@ -0,0 +1,15 @@
function legend(parent, data) {
parent.className = 'legend';
var datas = data.hasOwnProperty('datasets') ? data.datasets : data;
datas.forEach(function(d) {
var title = document.createElement('span');
title.className = 'title';
title.style.borderColor = d.hasOwnProperty('strokeColor') ? d.strokeColor : d.color;
title.style.borderStyle = 'solid';
parent.appendChild(title);
var text = document.createTextNode(d.title);
title.appendChild(text);
});
}