Skip to content

Instantly share code, notes, and snippets.

@junmakii
Created May 30, 2015 02:17
Show Gist options
  • Select an option

  • Save junmakii/b6776ea5b8a29bc57007 to your computer and use it in GitHub Desktop.

Select an option

Save junmakii/b6776ea5b8a29bc57007 to your computer and use it in GitHub Desktop.
/*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