User:FINNER/common.js

/* Rotate-c START */ var obj = document.getElementById("image-c");

if (obj.className == 'rotate-c') { document.getElementById("image-c").onclick = function {rotate2}; } else { document.getElementById("image-c").onclick = function {rotate}; } function rotate { obj.className.replace("rotate2-c"); obj.className = "rotate-c"; } function rotate2 { obj.className.replace("rotate-c"); obj.className = "rotate2-c"; }   /* Rotate-c END */