https://github.com/GameDistribution/GD-HTML5/wiki/SDK-Implementation
bag:
nextButton.addEventListener('mouseUp',function(){if(typeofgdsdk!=='undefined'&&gdsdk.showBanner!=='undefined'){gdsdk.showBanner();}});good:
nextButton.addEventListener('mouseUp',function(){if(typeofgdsdk!=='undefined'&&gdsdk.showBanner!==undefined){gdsdk.showBanner();}});very good:
nextButton.addEventListener('mouseUp',function(){if(typeofgdsdk!=='undefined'&&gdsdk.showBanner){gdsdk.showBanner();}});perfect:
nextButton.addEventListener('mouseUp',function(){window.gdsdk&&gdsdk.showBanner&&gdsdk.showBanner();});
https://github.com/GameDistribution/GD-HTML5/wiki/SDK-Implementation
bag:
good:
very good:
perfect: