Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Interstitial code desktop + mobile */
- function lx_isMobileDevice(){ if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i .test(navigator.userAgent)){ return true ;} else { return false ;}}
- window.googletag = window.googletag || {cmd:[]};
- if (lx_isMobileDevice()) {
- googletag.cmd.push( function () {
- var slot = googletag.defineOutOfPageSlot(
- ' / 45470634,21654139727/clickio_area_686233_300x600 ' .trim(),
- googletag.enums.OutOfPageFormat.INTERSTITIAL);
- // Slot returns null if the page or device does not support interstitials
- if (slot) slot.addService(googletag.pubads());
- googletag.enableServices();
- // Consider delaying until first div on page
- googletag.display(slot);
- });
- }
- else
- {
- googletag.cmd.push( function () {
- var slot = googletag.defineOutOfPageSlot(
- ' / 45470634,21654139727/clickio_area_686237_300x600 ' .trim(),
- googletag.enums.OutOfPageFormat.INTERSTITIAL);
- // Slot returns null if the page or device does not support interstitials
- if (slot) slot.addService(googletag.pubads());
- googletag.enableServices();
- // Consider delaying until first div on page
- googletag.display(slot);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement