The following script written for a progress bar, is assigned to a div with id=container1. This is while I have several divs with ids like container2, container3 and ... which all should be referred to this script.
How can I assign this script to all divs?
var bar = new ProgressBar.Line(container1, {
strokeWidth: 4,
easing: 'easeInOut',
duration: 1400,
color: '#66cc33',
trailColor: 'transparent',
trailWidth: 1,
svgStyle: {
width: '100%',
height: '100%',
position: 'absolute'
}
});
bar.animate(1.0); // Number from 0.0 to 1.0
ProgressBar.Line??ProgressBar.Linecode is acting on the division byid="container1", I want it to work on divisions with id: container2, container3 and ... as well.