(offsets, width, height)
| 784 | }; |
| 785 | |
| 786 | function getOffsets(offsets, width, height) { |
| 787 | return [ |
| 788 | parseFloat(offsets[0]) * (rpercent.test(offsets[0]) ? width / 100 : 1), |
| 789 | parseFloat(offsets[1]) * (rpercent.test(offsets[1]) ? height / 100 : 1) |
| 790 | ]; |
| 791 | } |
| 792 | |
| 793 | function parseCss(element, property) { |
| 794 | return parseInt($.css(element, property), 10) || 0; |