* Select the wrapper dom object for a specific position. * @param {string} position The name of the position. * @returns {HTMLElement | void} the wrapper element
(position)
| 85 | * @returns {HTMLElement | void} the wrapper element |
| 86 | */ |
| 87 | function selectWrapper (position) { |
| 88 | const classes = position.replace("_", " "); |
| 89 | const parentWrapper = document.getElementsByClassName(classes); |
| 90 | if (parentWrapper.length > 0) { |
| 91 | const wrapper = parentWrapper[0].getElementsByClassName("container"); |
| 92 | if (wrapper.length > 0) { |
| 93 | return wrapper[0]; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Send a notification to all modules. |
no outgoing calls
no test coverage detected