Get a FREE Copy Of The “Constitution of the United States”

July 7, 2021


Get a FREE Copy Of The “Constitution of the United States” Quantcast 0}catch(e){}return!1}function r(){var a=o();if(a){var r=t[e].pubads();typeof r.setTargeting===n&&r.setTargeting(“admiral-engaged”,”true”)}}a=t[e]=t[e]||{},a.cmd=a.cmd||[],typeof a.pubads===n?r():typeof a.cmd.unshift===n?a.cmd.unshift(r):a.cmd.push(r)}(window,”googletag”,”function”);;;;; ]]> max_wh[1] ) max_wh[1] = size_list[i][1]; } return max_wh; } var FFADS = {“desktop_bidding_timeout”:”1000″,”mobile_bidding_timeout”:”1100″,”lazy_load_threshold”:”900″,”custom_unit_code”:”FP”,”units”:{“SA1”:{“ad_type”:”dfp_prebid”,”size_mappings”:[{“screen_width”:”944″},{“screen_width”:”1″,”creative_sizes”:[{“size”:”1×1″},{“size”:”320×100″},{“size”:”320×50″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”mobile”,”appnexus_placementid”:”15419593″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”sa1_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”mobile”,”appnexus_placementid”:null,”grid_uid”:”5128″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”BB1″:{“ad_type”:”dfp_prebid”,”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”728×90″}]},{“screen_width”:”1″}],”bidders”:[{“name”:”appnexus”,”device_category”:”all”,”appnexus_placementid”:”13536252″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:”5131″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”Top”:{“ad_type”:”custom”,”custom_ads”:[{“code”:””,”rendering_script”:”(function(w,d,s,i){w.ldAdInit=w.ldAdInit||[];w.ldAdInit.push({slot:14007029740289126,size:[0, 0],id:”ld-5811-9210″});if(!d.getElementById(i)){var j=d.createElement(s),p=d.getElementsByTagName(s)[0];j.async=true;j.src=”//cdn2.lockerdomecdn.com/_js/ajs.js”;j.id=i;p.parentNode.insertBefore(j,p);}})(window,document,”script”,”ld-ajs”);”}]},”IC1″:{“ad_type”:”dfp_prebid”,”lazy_load”:”yes”,”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”728×90″},{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”500″,”creative_sizes”:[{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”1″,”creative_sizes”:[{“size”:”300×250″},{“size”:”320×100″},{“size”:”320×50″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”all”,”appnexus_placementid”:”13536274″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”ic1_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:”5130″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”IC2″:{“ad_type”:”dfp_prebid”,”lazy_load”:”yes”,”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”728×90″},{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”500″,”creative_sizes”:[{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”1″,”creative_sizes”:[{“size”:”300×250″},{“size”:”320×100″},{“size”:”320×50″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”all”,”appnexus_placementid”:”13536279″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”ic2_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:”5091″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”IC3″:{“ad_type”:”hybrid”,”lazy_load”:”yes”,”custom_ads”:[{“code”:””,”rendering_script”:”(function() {rnvar referer=””;try{if(referer=document.referrer,”undefined”==typeof referer||””==referer)throw”undefined”}catch(exception){referer=document.location.href,(“”==referer||”undefined”==typeof referer)&&(referer=document.URL)}referer=referer.substr(0,700);rnvar rcds = document.getElementById(“rcjsload_e5be09”);rnvar rcel = document.createElement(“script”);rnrcel.id = ‘rc_’ + Math.floor(Math.random() * 1000);rnrcel.type = ‘text/javascript’;rnrcel.src = “//trends.revcontent.com/serve.js.php?w=92284&t=”+rcel.id+”&c=”+(new Date()).getTime()+”&width=”+(window.outerWidth || document.documentElement.clientWidth)+”&referer=”+encodeURIComponent(referer);rnrcel.async = true;rnrcds.appendChild(rcel);rn})();”,”cpm”:”.40″}],”size_mappings”:[{“screen_width”:”944″},{“screen_width”:”336″,”creative_sizes”:[{“size”:”300×250″},{“size”:”320×50″},{“size”:”336×280″}]},{“screen_width”:”1″,”creative_sizes”:[{“size”:”300×250″},{“size”:”320×100″},{“size”:”320×50″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”all”,”appnexus_placementid”:”13536283″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”ic3_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:”5092″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”IC4″:{“ad_type”:”dfp_prebid”,”lazy_load”:”yes”,”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”728×90″},{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”500″,”creative_sizes”:[{“size”:”300×250″},{“size”:”336×280″}]},{“screen_width”:”1″,”creative_sizes”:[{“size”:”300×250″},{“size”:”320×100″},{“size”:”320×50″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”all”,”appnexus_placementid”:”13536289″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”ic4_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:”5093″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}],”repeating”:true},”SB1″:{“ad_type”:”hybrid”,”lazy_load”:”yes”},”SB2″:{“ad_type”:”hybrid”,”lazy_load”:”yes”,”custom_ads”:[{“code”:””,”rendering_script”:”(function() {rnvar referer=””;try{if(referer=document.referrer,”undefined”==typeof referer||””==referer)throw”undefined”}catch(exception){referer=document.location.href,(“”==referer||”undefined”==typeof referer)&&(referer=document.URL)}referer=referer.substr(0,700);rnvar rcds = document.getElementById(“rcjsload_c147fc”);rnvar rcel = document.createElement(“script”);rnrcel.id = ‘rc_’ + Math.floor(Math.random() * 1000);rnrcel.type = ‘text/javascript’;rnrcel.src = “https://trends.revcontent.com/serve.js.php?w=102989&t=”+rcel.id+”&c=”+(new Date()).getTime()+”&width=”+(window.outerWidth || document.documentElement.clientWidth)+”&referer=”+referer;rnrcel.async = true;rnrcds.appendChild(rcel);rn})();”,”cpm”:”.48″}],”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”300×250″},{“size”:”300×600″}]},{“screen_width”:”1″}],”bidders”:[{“name”:”appnexus”,”device_category”:”desktop”,”appnexus_placementid”:”13536305″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”sb2_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”desktop”,”appnexus_placementid”:null,”grid_uid”:”5085″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”SB3″:{“ad_type”:”dfp_prebid”,”lazy_load”:”yes”},”SB4″:{“ad_type”:”dfp_prebid”,”lazy_load”:”yes”,”size_mappings”:[{“screen_width”:”944″,”creative_sizes”:[{“size”:”300×250″}]}],”bidders”:[{“name”:”appnexus”,”device_category”:”desktop”,”appnexus_placementid”:”13536372″,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null},{“name”:”pubmatic”,”device_category”:”all”,”appnexus_placementid”:null,”grid_uid”:null,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:”158410″,”pubmatic_adslot”:”sb4_fp”,”teads_pageid”:null,”teads_placementid”:null},{“name”:”grid”,”device_category”:”desktop”,”appnexus_placementid”:null,”grid_uid”:”5076″,”ix_siteid”:null,”justpremium_zone”:null,”oftmedia_placementid”:null,”pubmatic_publisherid”:null,”pubmatic_adslot”:null,”teads_pageid”:null,”teads_placementid”:null}]},”BA1″:{“ad_type”:”custom”,”custom_ads”:[{“code”:”rn”,”rendering_script”:”(function() {rn var referer=””;try{if(referer=document.referrer,”undefined”==typeof referer||””==referer)throw”undefined”}catch(exception){referer=document.location.href,(“”==referer||”undefined”==typeof referer)&&(referer=document.URL)}referer=referer.substr(0,700);rn var rcds = document.getElementById(“rcjsload_d74dc9”);rn var rcel = document.createElement(“script”);rn rcel.id = ‘rc_’ + Math.floor(Math.random() * 1000);rn rcel.type = ‘text/javascript’;rn rcel.src = “//trends.revcontent.com//serve.js.php?w=114134&t=”+rcel.id+”&c=”+(new Date()).getTime()+”&width=”+(window.outerWidth || document.documentElement.clientWidth)+”&referer=”+encodeURIComponent(referer);rn rcel.async = true;rn rcds.appendChild(rcel);rn})();rnrnlet mcs = document.createElement( ‘script’ );rnmcs.async = ‘async’;rnmcs.src = ‘https://jsc.mgid.com/t/h/thefederalistpapers.org.1135112.js’;rndocument.body.appendChild( mcs );”}]},”SB5″:{“ad_type”:”dfp_prebid”,”size_mappings”:[{“screen_width”:”1″}]},”WP1″:{“ad_type”:”dfp_prebid”},”OOP”:{“ad_type”:”dfp_prebid”}},”ad_type”:”dfp_prebid”,”dfp_account_id”:”101957818″,”use_fixed_containers”:”yes”,”lazy_load”:”yes”,”cat”:”uncategorized”}; FFADS.debug = function( msg ) { if( document.location.href.search( ‘ffads_debug=true’ ) !== -1 ) { if( typeof msg !== ‘undefined’ ) console.log( JSON.parse( JSON.stringify( msg ) ) ); else console.log( ‘undefined’ ); } } FFADS.content_order = [“OOP”,”SA1″,”BB1″,”WP1″,”Top”,”IC1″,”IC2″,”IC3″,”IC4″,”BA1″]; FFADS.sidebar_order = [“SB1″,”SB2″,”SB3″,”SB4″,”SB5”]; for( let ad_unit in FFADS.units ) if( ( FFADS.units[ad_unit].ad_type == ‘dfp_prebid’ || FFADS.units[ad_unit].ad_type == ‘hybrid’ ) && FFADS.units[ad_unit].size_mappings ) for( let i = 0; i = FFADS.units[ad_unit].size_mappings[i].screen_width ) { if( FFADS.units[ad_unit].size_mappings[i].creative_sizes && FF_EXCLUDE_ADS.indexOf( ad_unit ) == -1 ) FFADS.units[ad_unit].sizes = FFADS.units[ad_unit].size_mappings[i].creative_sizes.map( function( sizeObj ) { return sizeObj.size.split( ‘x’ ).map( function( numString ) { return parseInt( numString ); } ); } ); break; } let new_unit_obj = {}; for( let i in FFADS.content_order ) { FFADS.debug( ‘Checking if ‘ + FFADS.content_order[i] + ‘ is valid on this page’ ); let ad_unit = FFADS.content_order[i].split( ‘_’ )[0]; if( FFADS.units[ad_unit] && ( FFADS.units[ad_unit].ad_type == ‘custom’ || FFADS.units[ad_unit].sizes ) ) new_unit_obj[ad_unit] = FFADS.units[ad_unit]; else { FFADS.debug( FFADS.content_order[i] + ‘ is not valid on this page. Removing it from content_order.’ ); FFADS.content_order[i] = false; } } FFADS.content_order = FFADS.content_order.filter( function( ad_unit ) { return ad_unit && FFADS.units[ad_unit.split( ‘_’ )[0]].lazy_load; } ); if( window.innerWidth >= 944 ) for( let i in FFADS.sidebar_order ) { FFADS.debug( ‘Checking if ‘ + FFADS.sidebar_order[i] + ‘ is valid on this page’ ); if( FFADS.units[FFADS.sidebar_order[i]].ad_type == ‘custom’ || FFADS.units[FFADS.sidebar_order[i]].sizes ) new_unit_obj[FFADS.sidebar_order[i]] = FFADS.units[FFADS.sidebar_order[i]]; else { FFADS.debug( FFADS.sidebar_order[i] + ‘ is not valid on this page. Removing it from sidebar_order.’ ); FFADS.sidebar_order[i] = false; } } FFADS.sidebar_order = FFADS.sidebar_order.filter( function( ad_unit ) { return ad_unit && FFADS.units[ad_unit].lazy_load; } ); FFADS.units = new_unit_obj; FFADS.all_bidders = {“appnexus”:{“nicename”:”AppNexus”,”params”:[“placementId”]},”grid”:{“nicename”:”Grid”,”params”:[“uid”]},”ix”:{“nicename”:”Index Exchange”,”params”:[“siteId”],”array_params”:[“size”]},”justpremium”:{“nicename”:”JustPremium”,”params”:[“zone”],”array_params”:[“allow”,”exclude”]},”oftmedia”:{“nicename”:”One Fifty Two Media”,”params”:[“placementId”]},”pubmatic”:{“nicename”:”PubMatic”,”params”:[“publisherId”,”adSlot”]},”teads”:{“nicename”:”Teads”,”params”:[“pageId”,”placementId”]}}; FFADS.pb_units = []; for( let bidder in FFADS.all_bidders ) { FFADS.all_bidders[bidder].param_map = {}; for( let param in FFADS.all_bidders[bidder].params ) FFADS.all_bidders[bidder].param_map[FFADS.all_bidders[bidder].params[param].toLowerCase()] = FFADS.all_bidders[bidder].params[param]; for( let param in FFADS.all_bidders[bidder].array_params ) FFADS.all_bidders[bidder].param_map[FFADS.all_bidders[bidder].array_params[param].toLowerCase()] = FFADS.all_bidders[bidder].array_params[param]; } for( let ad_unit in FFADS.units ) { FFADS.debug( ad_unit + ‘ type: ‘ + FFADS.units[ad_unit].ad_type ); FFADS.debug( ad_unit + ‘ size mappings:’ ); FFADS.debug( FFADS.units[ad_unit].size_mappings ); if( ( FFADS.units[ad_unit].ad_type == ‘dfp_prebid’ || FFADS.units[ad_unit].ad_type == ‘hybrid’ ) && FFADS.units[ad_unit].size_mappings ) { FFADS.debug( ‘creating PB unit(s) for ‘ + ad_unit ); let bids = []; for( let i in FFADS.units[ad_unit].bidders ) if( FFADS.units[ad_unit].bidders[i].device_category == ‘all’ || FFADS.units[ad_unit].bidders[i].device_category == ‘desktop’ && window.innerWidth >= 944 || FFADS.units[ad_unit].bidders[i].device_category == ‘mobile’ && window.innerWidth < 944 ) { let params = {}; for( let param in FFADS.units[ad_unit].bidders[i] ) if( param.search( FFADS.units[ad_unit].bidders[i].name.toLowerCase() + '_' ) === 0 ) { let param_name_lower = param.split( '_' ).splice( 1 ).join( '_' ); let param_name = FFADS.all_bidders[FFADS.units[ad_unit].bidders[i].name].param_map[param_name_lower]; if( typeof FFADS.units[ad_unit].bidders[i][param] == 'object' ) { params[param_name] = []; for( let j in FFADS.units[ad_unit].bidders[i][param] ) params[param_name].push( parseInt( FFADS.units[ad_unit].bidders[i][param][j][param_name_lower] ) || FFADS.units[ad_unit].bidders[i][param][j][param_name_lower] ); } else params[param_name] = FFADS.units[ad_unit].bidders[i][param]; } bids.push( { bidder: FFADS.units[ad_unit].bidders[i].name.replace( 'ttacross', '33across' ), params: params } ); } if( FFADS.units[ad_unit].repeating ) for( let i = 0; i < FF_REP_COUNT; i++ ) FFADS.pb_units.push( { mediaTypes: { banner: { sizes: FFADS.units[ad_unit].sizes } }, bids: bids, code: 'REP_' + i } ); else if( FFADS.units[ad_unit].rep_count ) for( let i = 0; i < FFADS.units[ad_unit].rep_count; i++ ) FFADS.pb_units.push( { mediaTypes: { banner: { sizes: FFADS.units[ad_unit].sizes } }, bids: bids, code: ad_unit + '_' + i } ); else FFADS.pb_units.push( { mediaTypes: { banner: { sizes: FFADS.units[ad_unit].sizes } }, bids: bids, code: ad_unit } ); } FFADS.units[ad_unit].instances = {}; if( FFADS.units[ad_unit].repeating ) for( let i = 0; i < FF_REP_COUNT; i++ ) FFADS.units[ad_unit].instances['REP_' + i] = {}; else if( FFADS.units[ad_unit].rep_count ) for( let i = 0; i 943 ? FFADS.desktop_bidding_timeout : FFADS.mobile_bidding_timeout; FFADS.get_unit_path = function( ad_unit ) { return '/' + ( this.dfp_account_id || 101957818 ) + '/' + ad_unit + '_' + ( this.custom_unit_code || 'TFP' ) + ( typeof this.use_sx_units != 'undefined' && this.use_sx_units == 'yes' ? ( window.innerWidth > 943 ? ‘_LGSX’ : ‘_SMSX’ ) : ” ); } FFADS.pbjs_bids_back = function() { FFADS.debug( ‘PB bids back for initial units’ ); FFADS.pbjs_ready = true; if( FFADS.a9_ready ) return sendInitialAdserverRequest(); } FFADS.render_ad = function( ad_unit, div_id = false ) { div_id = div_id || ad_unit; this.debug( ‘refreshing ‘ + ad_unit + ‘ into #’ + div_id ); this.units[ad_unit].instances[div_id].displayed = true; if( this.units[ad_unit].ad_type == ‘custom’ ) eval( this.units[ad_unit].custom_ads[0].rendering_script ); else googletag.cmd.push( this.request_bids.bind( this, ad_unit, div_id ) ); } FFADS.request_bids = function( ad_unit, div_id = false ) { div_id = div_id || ad_unit; this.debug( ‘requesting bids for ‘ + ad_unit + ‘ in #’ + div_id ); FFADS.units[ad_unit].instances[div_id].gt_slot = googletag.defineSlot( this.get_unit_path( ad_unit ), this.units[ad_unit].sizes, div_id ).setTargeting( ‘ad_group’, Adomik.randomAdGroup() ).setTargeting( ‘ad_h’, (new Date).getUTCHours().toString() ).addService( googletag.pubads() ); window[‘firefly_pbjs_ready’ + div_id] = false, window[‘firefly_a9_ready’ + div_id] = false; pbjs.requestBids( { bidsBackHandler: firefly_pbjs_bids_back_single.bind( null, ad_unit, div_id ), adUnitCodes: [div_id] } ); setTimeout( sendSingleAdserverRequest.bind( FFADS, ad_unit, div_id ), FFADS.prebid_timeout ); apstag.fetchBids( { slots: [ { slotID: div_id, slotName: this.get_unit_path( ad_unit ), sizes: this.units[ad_unit].sizes } ] }, firefly_a9_bids_back_single.bind( null, ad_unit, div_id ) ); }; FFADS.lazy_load_check = function() { FFADS.debug( ‘checking lazy load’ ); let wnhc_j = jQuery( ‘#wj-network-header-container’ + ( window.innerWidth div.fixed-size.sliding > div’ ); for( let i = 0; i max_margin ) { slide_units[i].style.position = ‘static’; slide_units[i].style.paddingTop = max_margin + ‘px’; } else if( distance < 0 ) { slide_units[i].style.position = 'static'; slide_units[i].style.paddingTop = '0px'; } else if( slide_units[i].style.position != 'fixed' ) { slide_units[i].style.left = jQuery( slide_units[i].firstChild ).offset().left + 'px'; slide_units[i].style.position = 'fixed'; slide_units[i].style.paddingTop = '0px'; slide_units[i].style.top = jQuery( '#wpadminbar' ).outerHeight() + jQuery( '#wj-network-header-container' ).outerHeight() + ( window.innerWidth < 944 ? jQuery( '.jw-above-container.stuck:not( .never-stick ) .jw-sticky-container' ).outerHeight() : 0 ) + 'px'; } } for( let i = 0; i < FFADS.content_order.length; i++ ) { let ad_unit_id = FFADS.content_order[i]; let ad_unit = ad_unit_id.split( '_' )[0]; if( ! FFADS.units[ad_unit].repeating ) { if( checkAlmostVisible( document.getElementById( ad_unit_id ), FFADS.lazy_load_threshold ) ) { FFADS.debug( ad_unit_id + ' is almost visible' ); FFADS.content_order.splice( i--, 1 ); // splice first in case render_ad fails, decrement i to account for item removed FFADS.render_ad( ad_unit, ad_unit_id ); } else break; } else for( var j = 0; j 943 ) for( let i = 0; i < FFADS.sidebar_order.length; i++ ) { let ad_unit_code = FFADS.sidebar_order[i]; if( checkAlmostVisible( document.getElementById( ad_unit_code ), FFADS.lazy_load_threshold ) ) { FFADS.debug( ad_unit_code + ' is almost visible' ); FFADS.sidebar_order.splice( i, 1 ); FFADS.render_ad( ad_unit_code ); } else break; } } FFADS.comments_displayed = false; var pbjs = pbjs || {}; pbjs.que = pbjs.que || [ function() { FFADS.debug( 'pbjs.que starting' ); } ]; pbjs.que.push(function() { pbjs.enableAnalytics( { provider: 'roxot', options: { publisherIds: ["556182c7-ac68-4d56-8c66-4b4336e28e5e"] } } ); pbjs.setConfig( { priceGranularity: "high", userSync: { iframeEnabled: true, filterSettings: { iframe: { bidders: ['nobid','pubmatic'], filter: 'include' } } } } ); if( typeof PWT !== 'undefined' && typeof PWT.getUserIds == "function" ) { FFADS.pb_units.forEach( function( adUnit ) { adUnit.bids.forEach( function( bid ) { bid["userId"] = PWT.getUserIds(); bid["userIdAsEids"] = owpbjs.getUserIdsAsEids(); } ); } ); } else { FFADS.debug( 'PWT not ready in time' ); } FFADS.debug( 'adding units to PB' ); FFADS.debug( FFADS.pb_units ); pbjs.addAdUnits( FFADS.pb_units ); let adUnitCodes = []; for( let ad_unit in FFADS.units ) if( ! FFADS.units[ad_unit].lazy_load ) adUnitCodes.push( ad_unit ); FFADS.debug( 'requesting PB bids for initial units' ); pbjs.requestBids({ bidsBackHandler: FFADS.pbjs_bids_back, adUnitCodes: adUnitCodes }); }); function sendInitialAdserverRequest() { if( FFADS.initialAdserverRequestSent ) return; FFADS.initialAdserverRequestSent = true; FFADS.debug( 'queuing DFP request for initial units' ); googletag.cmd.push(function() { pbjs.que.push(function() { FFADS.debug( 'sending DFP request for initial units' ); let adUnitCodes = []; let dfpAdUnits = []; for( let ad_unit in FFADS.units ) if( ! FFADS.units[ad_unit].lazy_load ) { if( FFADS.units[ad_unit].ad_type == 'hybrid' ) { let pb_bid = pbjs.getHighestCpmBids( ad_unit ); pb_bid = pb_bid.length ? pb_bid[0].cpm : 0; FFADS.debug( 'Prebid bid ' + pb_bid + ' for ' + ad_unit ); if( pb_bid < FFADS.units[ad_unit].custom_ads[0].cpm ) { FFADS.debug( 'Custom code won for ' + ad_unit ); let el = false; if( el = document.getElementById( ad_unit ) ) { el.innerHTML = FFADS.units[ad_unit].custom_ads[0].code; eval( FFADS.units[ad_unit].custom_ads[0].rendering_script ); } else FFADS.debug( 'failed to render custom code in ' + ad_unit + ' since the unit is not on this page' ); continue; } } adUnitCodes.push( ad_unit ); dfpAdUnits.push( FFADS.units[ad_unit].instances[ad_unit].gt_slot ); } pbjs.setTargetingForGPTAsync( adUnitCodes ); apstag.setDisplayBids(); googletag.pubads().refresh( dfpAdUnits ); }); }); } FFADS.debug( 'scheduling DFP request for initial units' ); setTimeout( function() { sendInitialAdserverRequest(); }, FFADS.prebid_timeout ); if( ! getCookie( 'ff_subbed' ) ) { (function () { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); } var googletag = googletag || {}; googletag.cmd = googletag.cmd || [ function() { FFADS.debug( 'googletag.cmd starting' ); } ]; googletag.cmd.push( function() { googletag.pubads().disableInitialLoad(); for( let ad_unit in FFADS.units ) if( ! FFADS.units[ad_unit].lazy_load && ( FFADS.units[ad_unit].ad_type == 'dfp_prebid' || FFADS.units[ad_unit].ad_type == 'hybrid' ) ) { FFADS.debug( 'defining slot for ' + ad_unit + ' #' + ad_unit ); FFADS.units[ad_unit].instances[ad_unit].gt_slot = googletag.defineSlot( FFADS.get_unit_path( ad_unit ), FFADS.units[ad_unit].sizes, ad_unit ).setTargeting( 'ad_group', Adomik.randomAdGroup() ).setTargeting( 'ad_h', (new Date).getUTCHours().toString() ).addService( googletag.pubads() ); } googletag.pubads().enableSingleRequest(); firefly_setTargeting(); googletag.pubads().setCentering(true); googletag.enableServices(); } ); function sendSingleAdserverRequest( ad_unit, div_id = false ) { div_id = div_id || ad_unit; if( FFADS.units[ad_unit].instances[div_id].adserverRequestSent ) return; FFADS.units[ad_unit].instances[div_id].adserverRequestSent = true; if( FFADS.units[ad_unit].ad_type == 'hybrid' ) { let pb_bid = pbjs.getHighestCpmBids( div_id ); pb_bid = pb_bid.length ? pb_bid[0].cpm : 0; FFADS.debug( 'Prebid bid ' + pb_bid + ' for #' + div_id ); if( pb_bid

Tap here to add The Western Journal to your home screen.

Quantcast
Source