Created
May 30, 2015 02:17
-
-
Save junmakii/b6776ea5b8a29bc57007 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*global window, document */ | |
| var DrawAdsense; | |
| DrawAdsense = function () {}; | |
| DrawAdsense.delay = 3000; | |
| DrawAdsense.elName = 'adsense-area'; | |
| DrawAdsense.code = '変更されました。'; | |
| DrawAdsense.main = function () { | |
| var el; | |
| el = document.getElementById(DrawAdsense.elName); | |
| window.setTimeout(function () { | |
| el.innerHTML = DrawAdsense.code; | |
| }, DrawAdsense.delay); | |
| }; | |
| window.addEventListener('load', function () { | |
| try { | |
| DrawAdsense.main(); | |
| } catch (err) { | |
| alert(err); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment