R
Ren
This is what I've got. It rotates every ">" of each piece but
unfortunately also rotates the first element in the array at the same
time.
function _setRotateMe(x) {this.rot = x ; this.refresh()}
function rotateMe(x)
{
response = characters[x].rot
oldHTML = document.getElementById('rotateMe1').innerHTML ;
response = "<b style='-moz-transform:rotate(90deg)'>"+oldHTML+"</
b>";
document.getElementById('rotateMe1').innerHTML = response ;
if (response != null)
{characters[x].setRotateMe(response)}
}
function _ref()
{
boxContents="<span class=piecestyle onClick=rotateMe("+this.index
+")><b id=rotateMe1>"+this.rot+"</b></span>
/*cut off here to save space
unfortunately also rotates the first element in the array at the same
time.
function _setRotateMe(x) {this.rot = x ; this.refresh()}
function rotateMe(x)
{
response = characters[x].rot
oldHTML = document.getElementById('rotateMe1').innerHTML ;
response = "<b style='-moz-transform:rotate(90deg)'>"+oldHTML+"</
b>";
document.getElementById('rotateMe1').innerHTML = response ;
if (response != null)
{characters[x].setRotateMe(response)}
}
function _ref()
{
boxContents="<span class=piecestyle onClick=rotateMe("+this.index
+")><b id=rotateMe1>"+this.rot+"</b></span>
/*cut off here to save space