| // θ·εζζε η΄ | |
| module.exports = function getAllElements(type) { | |
| return Array.from(document.querySelectorAll(`[data-type="${type}"]`)).map((el) => { | |
| const id = this._getElementId(el); | |
| return { | |
| id: id, | |
| type: type, | |
| element: el, | |
| }; | |
| }); | |
| }; | |
| // θ·εζζε η΄ | |
| module.exports = function getAllElements(type) { | |
| return Array.from(document.querySelectorAll(`[data-type="${type}"]`)).map((el) => { | |
| const id = this._getElementId(el); | |
| return { | |
| id: id, | |
| type: type, | |
| element: el, | |
| }; | |
| }); | |
| }; | |