Apologies for the blunt title, but I couldn't find a more precise way to phrase it. I recently stumbled upon this fantastic slider tutorial. Before implementing it on my own page, I would like to customize it by replacing the small circles at the bottom with small squares of varying widths, giving it a 2D barcode appearance. I managed to turn them into squares by removing border-radius, but I am unsure how to make each one's width dynamically different. I have traced it back to a section in the Javascript where the navigation buttons (basically) are created:
this.vars.slides.forEach(function(s,i){
var e=document.createElement("li"),r=document.createElement("a");
Do you have any suggestions on how to achieve this desired style?