This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Returns the cell of the table by given (x;y) coordinates considering colSpan and rowSpan of the cells. | |
| * @param {HTMLElement} table - HTML table | |
| * @param {number} x - X position in table matrix | |
| * @param {number} y - Y position in table matrix | |
| * @returns {HTMLElement|null} | |
| */ | |
| var getTableCell = function (table, x, y) { | |
| var m = [], row, cell, xx, tx, ty, xxx, yyy; | |
| for(yyy = 0; yyy < table.rows.length; yyy++) { |