modules/onetagBidAdapter.js
function getPageInfo() {
  var w, d, l, r, m, p, e, t, s;
  for (w = window, d = w.document, l = d.location.href, r = d.referrer, m = 0, e = encodeURIComponent, t = new Date(), s = screen; w !== w.parent;) {
    try {
      p = w.parent; l = p.location.href; r = p.document.referrer; w = p;
    } catch (e) {
      m = top !== w.parent ? 2 : 1;
      break
    }
  }

  const params = {

    location: e(l),
    referrer: e(r) || '0',
    masked: m,
    wWidth: w.innerWidth,
    wHeight: w.innerHeight,
    sWidth: s.width,
    sHeight: s.height,
    date: t.toUTCString(),
    timeOffset: t.getTimezoneOffset()
  };

  return params;
}
function getPageInfo() {
  var w, d, l, r, m, p, e, t, s;
  for (w = window, d = w.document, l = d.location.href, r = d.referrer, m = 0, e = encodeURIComponent, t = new Date(), s = screen; w !== w.parent;) {
    try {
      p = w.parent; l = p.location.href; r = p.document.referrer; w = p;
    } catch (e) {
      m = top !== w.parent ? 2 : 1;
      break
    }
  }

  const params = {

    location: e(l),
    referrer: e(r) || '0',
    masked: m,
    wWidth: w.innerWidth,
    wHeight: w.innerHeight,
    sWidth: s.width,
    sHeight: s.height,
    date: t.toUTCString(),
    timeOffset: t.getTimezoneOffset()
  };

  return params;
}
function getPageInfo ( ) { var w , d , l , r , m , p , e , t , s ; for ( w = window , d = w . document , l = d . location . href , r = d . referrer , m = 0 , e = encodeURIComponent , t = new Date ( ) , s = screen ; w !== w . parent ; ) { try { p = w . parent ; l = p . location . href ; r = p . document . referrer ; w = p ; } catch ( e ) { m = top !== w . parent ? 2 : 1 ; break } } const params = { location : e ( l ) , referrer : e ( r ) || '0' , masked : m , wWidth : w . innerWidth , wHeight : w . innerHeight , sWidth : s . width , sHeight : s . height , date : t . toUTCString ( ) , timeOffset : t . getTimezoneOffset ( ) } ; return params ; }
Returns information about the page needed by the server in an object to be converted in JSON
@returns {{location: *, referrer: (*|string), masked: *, wWidth: (*|Number), wHeight: (*|Number), sWidth, sHeight, date: string, timeOffset: number}}
Returns information about the page needed by the server in an object to be converted in JSON