(global, data)
| 5 | * @param {!Object} data |
| 6 | */ |
| 7 | export function yieldmo(global, data) { |
| 8 | const ymElem = global.document.createElement('div'); |
| 9 | ymElem.id = 'ym_' + data.ymid; |
| 10 | ymElem.className = 'ym'; |
| 11 | ymElem.dataset['ampEnabled'] = true; |
| 12 | global.document.getElementById('c').appendChild(ymElem); |
| 13 | |
| 14 | const swimLane = Math.round((5 * Math.random()) / 3); |
| 15 | const ymJs = 'https://static.yieldmo.com/ym.' + swimLane + '.js'; |
| 16 | |
| 17 | loadScript(global, ymJs); |
| 18 | } |
nothing calls this directly
no test coverage detected