+ var propContent = (vertical) ? "contentY" : "contentX";
You do this & similar in each function. It would be more elegant to have a object with a vertical property that is only changed when necessary, and private propOrigin, propContent and propPos vars based on that.
+ var propContent = (vertical) ? "contentY" : "contentX";
You do this & similar in each function. It would be more elegant to have a object with a vertical property that is only changed when necessary, and private propOrigin, propContent and propPos vars based on that.