I have this in a CSS file:
.name-search
{
border: 2px solid blue;
border-radius: 5px;
}
I want a function that creates a simple JavaScript map from this.
So for the above CSS class,
var x = getCSSMap("name-search");
would be equivalent to
var x = {"border": "2px solid blue", "border-radius": "5px"};
Is there something out there that does this?