|
|
|
`;
}
// process odds
Object.keys(folder_array).forEach(function (k) {
if (k == 1) return; // skip 1 since it was processed above
if (parseInt(k) % 2 != 0) {
// odd
// Right Middle
data += ` |
|
`;
}
});
// process end if total is odd
if (folder_array.length > 1) {
if (folder_array.length % 2 != 0) {
data += ` |
|
`;
}
}
/*
if (totalfavorites > 2)
{
data += `
|
|
`
} else if (totalfavorites == 2) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 4)
{
data += `
|
|
`
} else if (totalfavorites == 4) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 6)
{
data += `
|
|
`
} else if (totalfavorites == 6) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 8)
{
data += `
|
|
`
} else if (totalfavorites == 8) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 10)
{
data += `
|
|
`
} else if (totalfavorites == 10) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 12)
{
data += `
|
|
`
} else if (totalfavorites == 12) {
data += `
|
|
`
}
if (totalfavorites == 14) {
data += `
|
|
`
stopdrawing = true;
}
if (totalfavorites > 1)
{
data += ` |
|
|
|