fourgen - /* :asset_packager_compatibility,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* :asset_packager_compatibility, 'config/asset_packages.yml' @ 1292014793 */ /* :files, 'public/javascripts/shared', . .. @ (none) */ /* :files, 'app/views', . .. @ 1292014792 */ /* app/views/documents/fourgen/_ads.js @ 1292014792 */ if(!window.Scribd){var Scribd={};} if(!Scribd.Ads){Scribd.Ads=new Object();} Scribd.Ads.PREFIX='between_page_ads_';Scribd.Ads.adContainers={};Scribd.Ads.loadCal (Scribd.Ads.PREFIX+pageNum);if(adContainer){var adSlot=Math.round((pageNum- 3)/2)%5;if((Scribd.Ads.betweenPageAd[adSlot].height+'px')! =adContainer.style.height) {adContainer.style.height=Scribd.Ads.betweenPageAd[adSlot].height+'px';}}}}},functi on(){if(docManager.pages.hasOwnProperty(1)) {Scribd.Ads.showAds(docManager.pages[1]);}},function() {docManager.addEvent('expectedFirstPageChanged',Scribd.Ads.expectedFirstPageChanged );docManager.addEvent('exitedFullscreen',Scribd.Ads.exitedFullscreen);docManager.ad dEvent('enteredFullscreen',Scribd.Ads.enteredFullscreen);docManager.addEvent('viewm odeChanged',Scribd.Ads.viewmodeChanged);docManager.addEvent('zoomed',Scribd.Ads.zoo med);}];Scribd.Ads.expectedFirstPageChanged=function(pageNum){for(var i=pageNum;i<pageNum+3;i++){if(docManager.pages.hasOwnProperty(i)) {Scribd.Ads.showAds(docManager.pages[i]);}}};Scribd.Ads.fetchAdHtml=function(pageNu m){var adSlot=Math.round((pageNum- rl!=''){return'<iframe scrolling="no" height="'+Scribd.Ads.betweenPageAd[adSlot].height+'" frameborder="0" width="728" marginheight="0" marginwidth="0" src="'+Scribd.Ads.betweenPageAd[adSlot].url+'#'+adSlot+'"></iframe>';} return'';};Scribd.Ads.insertAds=function(page){if(page.pageNum==1) {Scribd.Ads.adContainers[page.pageNum]=$(Scribd.Ads.PREFIX+page.pageNum);}else if(page.pageNum%2==1){var adHtml=Scribd.Ads.fetchAdHtml(page.pageNum);var adContainer=$ (Scribd.Ads.PREFIX+page.pageNum);adContainer.update(adHtml);Scribd.Ads.adContainers [page.pageNum]=adContainer;}};Scribd.Ads.showAds=function(page){var mode=docManager.viewMode()||'scroll';if(mode=='scroll'){if(! {Scribd.Ads.insertAds(page);}}};Scribd.Ads.enteredFullscreen=function(){var adContainer=$(Scribd.Ads.PREFIX+'1');if(adContainer) {adContainer.style.display='none';}};Scribd.Ads.exitedFullscreen=function(){var adContainer=$(Scribd.Ads.PREFIX+'1');if(adContainer) {adContainer.style.display='block';}};Scribd.Ads.viewmodeChanged=function(newMode,o ldMode){if(oldMode=='scroll'){for(var pageId in docManager.pages) {if(docManager.pages.hasOwnProperty(pageId)){var page=docManager.pages[pageId];Scribd.Ads.registerAds(page);}}}else if(newMode=='scroll'){for(var pageId in docManager.pages) {if(docManager.pages.hasOwnProperty(pageId)){var page=docManager.pages[pageId];Scribd.Ads.unregisterAds(page);}}}};Scribd.Ads.zoomed
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

fourgen - /* :asset_packager_compatibility,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online