9,361
回編集
(ページの作成:「(function(doc, win) { var ad = doc.createElement('script'); ad.type = 'text/javascript'; ad.data-ad-client = 'ca-pub-6884347898813638'; ad.async = true; ad.src = 'https:/…」) |
|||
(同じ利用者による、間の8版が非表示) | |||
1行目: | 1行目: | ||
− | (function( | + | (function(window, document) { |
− | var ad = | + | var ad = document.createElement('script'); |
− | ad.type = 'text/javascript'; | + | ad.type = 'text/javascript'; |
− | ad. | + | ad.dataset.adClient = 'ca-pub-6884347898813638'; |
− | ad.async = true; | + | ad.async = true; |
− | ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; | + | ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; |
− | var sc = | + | var sc = document.getElementsByTagName('script')[0]; |
− | sc.parentNode.insertBefore(ad, sc); | + | sc.parentNode.insertBefore(ad, sc); |
− | })(document | + | })(window, document); |