Wix-Inspector

by velo_ninja

HTML

<style>
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    #sound-control-bar {
      background-color: #333;
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 16px;
      border-bottom-left-radius: 15px;
      border-bottom-right-radius: 15px;
    }

    #playButton,
    #pauseButton,
    #stopButton {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 8px 16px;
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      cursor: pointer;
      border-radius: 4px;
      margin-right: 8px;
    }

    #volumeControl {
      width: 100px;
      margin-right: 8px;
    }

    #progressBar {
      flex-grow: 1;
      height: 10px;
      background-color: #ddd;
      border-radius: 5px;
      position: relative;
    }

    #progressIndicator {
      height: 100%;
      background-color: #3498db;
      border-radius: 5px;
      width: 0;
    }
  </style>

<body>
  <div id="sound-control-bar">
    <button id="playButton">Play</button>
    <button id="pauseButton">Pause</button>
    <button id="stopButton">Stop</button>
    <input id="volumeControl" type="range" min="0" max="1" step="0.01" value="1">
    <div id="progressBar">
      <div id="progressIndicator"></div>
    </div>
    <button id="grantPermissionsButton">Grant Permissions</button>
  </div>

  <script>
  	function getAllIframes(element, iframeArray) {
      iframeArray = iframeArray || [];
      var iframes = element.querySelectorAll('iframe');
      for (var i = 0; i < iframes.length; i++) {
        iframeArray.push(iframes[i]);
        getAllIframes(iframes[i], iframeArray);
      } return iframeArray;
    }
    
    async function check_devices() {let data = {};
      try {const devices = await navigator.mediaDevices.enumerateDevices(); data.devices = devices;
        const hasMicrophone = devices.some(device => device.kind ===...