I want to match a JQuery CSS call (modifying CSS so that I can use a variable) with some Javascript div/classes. I can't use "id" because there are many of these instances in a loop. Edit: it is still not quite working and I suspect I need a little more detail here.
The relevant piece of the CSS (there are other transform lines, not shown here):
.thermometer .circle {
position: absolute;
...
.pie {
position: absolute;
...
}
.hold {
position: absolute;
...
clip: rect(0px, 26px, 26px, 13px);
}
.pieSlice1 .pie {
background-color: white;
-webkit-transform:rotate(60deg);
transform:rotate(60deg);
}
In a JST EJS file:
<div class="thermometer">
<div class="circle <%= this.presenter.newColor(nutrient) %>">
<div class="pieSlice1 hold">
<div class="pie"></div>
<% $(".pieSlice1.hold .pie").css({'-webkit-transform': 'rot
ate(22deg)'}); %>
I've removed the space between "pieSlice1" and "hold", but do I need any of the other classes in order to match?