MediaWiki:Common.js: відмінності між версіями
Матеріал з WikiLegalAid
Alexb (обговорення | внесок) мНемає опису редагування |
Alexb (обговорення | внесок) мНемає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* Розміщений тут код JavaScript буде завантажений всім користувачам при зверненні до будь-якої сторінки */ | /* Розміщений тут код JavaScript буде завантажений всім користувачам при зверненні до будь-якої сторінки */ | ||
mw.loader.using('mediawiki.util').then(function () { | mw.loader.using('mediawiki.util').then(function () { | ||
var adContainer = document.createElement('div'); | var adContainer = document.createElement('div'); | ||
adContainer.setAttribute('align', 'center'); | adContainer.setAttribute('align', 'center'); | ||
| Рядок 8: | Рядок 8: | ||
adIns.style.cssText = 'display:inline-block;width:728px;height:90px'; | adIns.style.cssText = 'display:inline-block;width:728px;height:90px'; | ||
adIns.setAttribute('data-ad-client', 'ca-pub-9946719691242357'); | adIns.setAttribute('data-ad-client', 'ca-pub-9946719691242357'); | ||
adIns.setAttribute('data-ad-slot', '1234567890'); | // adIns.setAttribute('data-ad-slot', '1234567890'); | ||
adContainer.appendChild(adIns); | adContainer.appendChild(adIns); | ||
