PageSourceSearch

https://mspy.org/static/mspyorg/public/assets/js/weekend-deal_069b71cb6c.mjs

js mspy.org collected 2026-09-30 23:09:23 UTC 3,848 bytes, 1 lines download raw bytes

1(function(){"use strict";var __webpack_modules__={516:function(){eval("\n;// CONCATENATED MODULE: ../../../Common/Resources/front/assets/js/functions/selectElement.js\n// alias for the document.querySelector(selectors); function\nconst qS = document.querySelector.bind(document);\n\n// alias for the document.querySelectorAll(selectors); function\nconst qSA = arg => Array.from(document.querySelectorAll(`${arg}`));\n;// CONCATENATED MODULE: ./assets/js/pages/weekend-deal/weekend-deal.js\n/* harmony default export */ var weekend_deal = ((banner, timerMinutes, timerSeconds, grabBtns) => {\n  const visitTime = localStorage.getItem('visitTime');\n  let timerIdPromo = null;\n  let timerIdBanner = null;\n  let deadlinePromo = '';\n  const timerTime = 12 * 60 * 1000;\n  !visitTime ? localStorage.setItem('visitTime', new Date()) : showBanner();\n  const show = () => {\n    if (typeof ga === \"function\") {\n      ga('send', 'event', 'Weekend Deal', 'Show', window.location.pathname);\n    } else {\n      console.warn(`ga is - ${typeof ga}`);\n    }\n  };\n  function showBanner() {\n    const visitedTime = localStorage.getItem('visitTime');\n    const deadlineToShowBanner = Date.parse(visitedTime) + timerTime;\n    const expirationTime = deadlineToShowBanner - Date.now();\n    if (expirationTime <= 0) {\n      deadlinePromo = Date.now() + timerTime;\n      getPromoTime();\n      localStorage.removeItem('visitTime');\n      clearInterval(timerIdBanner);\n      show();\n      timerIdPromo = setInterval(getPromoTime, 1000);\n      banner.hidden = false;\n    }\n  }\n\n  // weekend-deal timer\n  function getPromoTime() {\n    const expirationTime = deadlinePromo - Date.now();\n    if (expirationTime <= 0) {\n      clearInterval(timerIdPromo);\n      banner.hidden = true;\n    }\n    const minutes = expirationTime > 0 ? Math.floor(expirationTime / 1000 / 60) % 60 : 0;\n    const seconds = expirationTime > 0 ? Math.floor(expirationTime / 1000) % 60 : 0;\n    timerMinutes.innerText = minutes < 10 ? '0' + minutes : '' + minutes;\n    timerSeconds.innerText = seconds < 10 ? '0' + seconds : '' + seconds;\n  }\n  showBanner();\n  timerIdBanner = setInterval(showBanner, 1000);\n  grabBtns.forEach(btn => btn.addEventListener('click', () => {\n    if (typeof ga === \"function\") {\n      console.log('click');\n      console.log(typeof ga);\n      console.log(typeof ga === \"function\");\n      ga('send', 'event', 'Weekend Deal', 'Click', window.location.pathname);\n    } else {\n      console.warn(`ga is - ${typeof ga}`);\n    }\n    document.cookie = 'weekend-deal=true';\n  }));\n});\n;// CONCATENATED MODULE: ../../../Common/Resources/front/assets/js/functions/getCookie.js\n/* harmony default export */ var getCookie = (key => {\n  const cookies = document.cookie.split(';');\n  for (let i = 0; i < cookies.length; i++) {\n    const cookie = cookies[i].trim();\n    if (cookie.startsWith(`${key}=`)) {\n      return cookie.substring(key.length + 1);\n    }\n  }\n  return null;\n});\n;// CONCATENATED MODULE: ./assets/js/_page-scripts/weekend-deal.js\n/*---=== import modules ===---*/\n\n\n\n\n/*---=== /import modules ===---*/\n\n/*---=== declare variables ===---*/\nconst banner = qS('#weekend-deal');\nconst timerSeconds = qS('.timer-seconds-js');\nconst timerMinutes = qS('.timer-minutes-js');\nconst grabBtns = qSA('.grab-btn-js');\n\n/*---=== /declare variables ===---*/\n\n/*---=== run modules ===---*/\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  const dayNow = new Date().getDay();\n  if (dayNow === 6 || dayNow === 0 || getCookie('wd_t') === 'true') {\n    weekend_deal(banner, timerMinutes, timerSeconds, grabBtns);\n  }\n});\n/*---=== /run modules ===---*/\n\n//# sourceURL=webpack:///./assets/js/_page-scripts/weekend-deal.js_+_3_modules?")}},__webpack_exports__={};__webpack_modules__[516]()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.