I'm developing an Jquery plugin and have to set many css values inside of script to make it flexible.
It looks something like this:
...var loadingBarInsideFWidth = loadingBarWidth - 4;
var loadingBarInsideWidth;
$(holder).find('.round').css({
'width':setRoundWidth,
'height':setRoundWidth
});
$(holder).find('.pointer').css({
'width':setPointerWidth,
'height':setPointerWidth,
'left':rotCenter,
'top':rotCenter*2
});...
and so on for about 70 rows of code. Just wanted to ask if it's ok so, or is there a better way?
thx
p.s. sure there is an external css file, all these values are about preloader and some navigation elements positions and sizes relativeley to containing element size.