<!DOCTYPE html>
<html lang="pl">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>TVP1 - irylek.pages.dev</title>
  <script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool'></script>
  <style>
    body {
      font-family: 'Roboto', Arial, sans-serif;
      background-color: #181818;
      color: #e0e0e0;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      min-height: 100vh;
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      padding: 10px 20px;
      background-color: #141414;
      position: fixed;
      width: calc(100% - 40px);
      top: 0;
      z-index: 1000;
    }

    .back-btn {
      background-color: #6200ea;
      color: #fff;
      font-size: 1rem;
      border: none;
      border-radius: 25px;
      padding: 10px 20px;
      cursor: pointer;
      text-align: center;
      margin-top: 80px;
      transition: background-color 0.3s ease;
    }

    .back-btn:hover {
      background-color: #bb86fc;
    }

    .video-container {
      margin-top: 100px;
      width: 100%;
      max-width: 960px;
      height: 540px;
      background-color: #252525;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      position: relative;
      padding: 20px;
    }

    footer {
      margin-top: 20px;
      text-align: center;
      padding: 10px 0;
      font-size: 0.9rem;
      color: #888;
      border-top: 1px solid #333;
    }
  </style>
</head>

<body>
  <div class="navbar">
    <iframe src="https://irylek.pages.dev/navbar" width="100%" height="43" frameborder="0"></iframe>
  </div>

  <button class="back-btn" onclick="window.location.href='https://irylek.pages.dev/tv'">Powrót do strony głównej</button>

  <div class="video-container">
    <div id="jwplayerDiv"></div>
  </div>

  <footer>
    © 2024 | Made with ❤️ by Irylek
  </footer>

  <script src="https://content.jwplatform.com/libraries/SAHhwvZq.js"></script>
  <script type="text/javascript">
    function waitForJWPlayer(callback) {
      if (typeof jwplayer === 'function') {
        callback();
      } else {
        setTimeout(function () {
          waitForJWPlayer(callback);
        }, 100);
      }
    }

    function setupVideoPlayer() {
      var manifestUrl = "https://redir.cache.orange.pl/dai4/org1/vb/104/tvp1hd/manifest.mpd";

      var playerConfig = {
        file: manifestUrl,
        autostart: true,
        stretching: "",
        width: "100%",
        type: "dash"
      };

      jwplayer("jwplayerDiv").setup(playerConfig);
    }

    waitForJWPlayer(setupVideoPlayer);
 
    document.addEventListener("contextmenu", e => e.preventDefault(), false);
    
    document.addEventListener("keydown", e => {
        if (e.ctrlKey || e.keyCode==123) {
          e.stopPropagation();
          e.preventDefault();
        }
      });
  </script>
</body>

</html>
