(global, data)
| 5 | * @param {!Object} data |
| 6 | */ |
| 7 | export function sortable(global, data) { |
| 8 | validateData(data, ['site', 'name'], ['responsive']); |
| 9 | |
| 10 | const slot = global.document.getElementById('c'); |
| 11 | const ad = global.document.createElement('div'); |
| 12 | const size = |
| 13 | data.responsive === 'true' ? 'auto' : data.width + 'x' + data.height; |
| 14 | ad.className = 'ad-tag'; |
| 15 | ad.setAttribute('data-ad-name', data.name); |
| 16 | ad.setAttribute('data-ad-size', size); |
| 17 | slot.appendChild(ad); |
| 18 | loadScript( |
| 19 | global, |
| 20 | 'https://tags-cdn.deployads.com/a/' + encodeURIComponent(data.site) + '.js' |
| 21 | ); |
| 22 | } |
nothing calls this directly
no test coverage detected