This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!-- teads unit Hook --> | |
| <div id="sni_teads_hook"></div> | |
| <!-- outstream ad slot --> | |
| <div id="dfp_outstream"></div> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Start init ready wrap | |
| SniAds.ready(function(){ | |
| if (window.cqMobile) { | |
| if ($('#tcad-bigbox-mobile')) { | |
| SniAds.appendSlot('tcad-bigbox-mobile', 'dfp_bigbox'); | |
| } | |
| } | |
| else if (isRiverBoxAdExists) { | |
| SniAds.River.appendAutoSlot('tcad-riverBox', false); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Prevent slot from being appended multiple times. | |
| var slotAppended = 0; | |
| // Contols rate at which the scroll event callback is run. | |
| var _debounce = function(fn, delay) { | |
| var timer = null; | |
| return function () { | |
| var context = this, args = arguments; | |
| clearTimeout(timer); | |
| timer = setTimeout(function () { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "vp1": "1", | |
| "vp2": "1", //WE dont use this currently, just here for example | |
| "amzn_vid": "IJ8Qqgf0G0pfs5iesZbdXd4AAAFKdIToVAAAAAPsj9iWXQ" | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # nodereinstall | |
| # credit: http://stackoverflow.com/a/11178106/2083544 | |
| # | |
| # UPDATE: I've converted this gist to a repo: | |
| # https://github.com/brock/node-reinstall | |
| # | |
| # get sudo | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Notes: | |
| * - Make sure slot intervals do not overlap. ie pislot: [1,3] and nislot [3,5]. | |
| * - The timer setting is optional. If left off, the default timer (in ads-config.js) will be used. | |
| * - Timer sets how many seconds the gallery will be disabled. | |
| * - Setting timer to 0 will disable the gallery blocking completely | |
| * - The pislot is the default and always needed. nislot and vislot are optional. | |
| * - If using the timer setting, the corresponsing interval set must be preset also. | |
| * - Current descriptor versions are fully compatible with this update. | |
| * | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | it("18.3 Restrict ad to 2 sizes for a specific ad type and set of mdManager values; adSlot 'sizes’ has only 1 size; all 4 adSlot 'mappings’ have only 1 size", function() { | |
| var AD_SLOT_NAME = "dfp_bigbox"; | |
| var SIZE_OVERRIDE_ONE = [300, 250]; | |
| var SIZE_OVERRIDE_TWO = [301, 251]; | |
| var CUSTOM_KEYS = { "site": "food" }; | |
| SniAdsConfig.adSlots[0] = { | |
| "tag": AD_SLOT_NAME, | |
| "sizes": SIZE_OVERRIDE_ONE, | |
| "mapping":{ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Default descriptor file. | |
| * @type {string} | |
| */ | |
| "photoDescriptorDefault": { | |
| active : "true", | |
| interstitial : "true", | |
| refreshRate : "200", | |
| intFreqCap : "1999", | |
| toFreqCap : "1999", | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SniAds.init({ | |
| breakpoints: { | |
| small: [0,0], | |
| medium: [600,0], | |
| large: [800,0], | |
| xlarge: [1920,0] | |
| }, | |
| customKeys: { | |
| "site" : "food" | |
| ,"sponsorship": "size_override_testing" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var cfg = { | |
| breakpoints: { | |
| // Bottom width limit.dont worry about it :) | |
| small: [0,0], | |
| // Width where page goes from phone to tablet format. | |
| medium: [600,0], | |
| // Width where page goes from tablet to desktop format. | |
| large: [800,0], | |
| // max point. not really used currently, but allows control over larger screen expierience. leave as [1920,0] | |
| xlarge: [1920,0] |