<?php
    include('../loginsession.php');
    error_reporting(E_ALL);
    $filename = __FILE__;  //---Nama file saat ini
    if (strlen(__FILE__) > 48) {$filename = substr(__FILE__, 48);}
    $save = mysqli_query($conn, "INSERT INTO novia_abc_user_logs (userid,filename) VALUES ('$userini_id','$filename')");
    // https://howlerjs.com/
    // v 2.2.3
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//ID" "http://www.w3.org/TR/html4/frameset.dtd">
<html lang="id">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="user-scalable=no">
  <title>Audio Player</title>
  <link rel="stylesheet" href="./styles.css">
  <link href="../images/balance.ico" rel="icon" type="image/icon" />
  <style>
      .cover {
        width: 135px;
        height: 135px;
        border-radius: 50%;
        overflow: hidden;
        position: absolute;
        left: 50%;
        top: 33px;
        transform: translateX(-50%);
        box-shadow: 0 5px 20px 0 #d56c006d;
    
        img {
          width: 135px;
          height: 135px;
          object-fit: cover;
        }
      }
  </style>
</head>
<body>
  <!-- Top Info -->
  <div id="title">
    <span id="track"></span>
    
  </div>
  
  <!-- Tambahan Cover -->
    <div class="cover">
        <a href="https://kdr.drrocky.skin"><img src="Meditasi_01.jpg" alt=""></a>
    </div>
  
  <!-- Controls -->
  <div class="controlsOuter">
    <div class="controlsInner">
      <div id="loading"></div>
      <div class="btn" id="playBtn"></div>
      <div class="btn" id="pauseBtn"></div>
      <div class="btn" id="prevBtn"></div>
      <div class="btn" id="nextBtn"></div>
    </div>
    <div class="btn" id="playlistBtn"></div>
    <div class="btn" id="volumeBtn"></div>
  </div>

  <!-- Progress -->
    <div id="waveform"></div>
    <div id="bar"></div>
    <div id="progress"></div>
    <div id="timer">0:00</div>
    <div id="duration">0:00</div>
  <!-- Playlist -->
  <div id="playlist">
    <div id="list"></div>
  </div>

  <!-- Volume -->
  <div id="volume" class="fadeout">
    <div id="barFull" class="bar"></div>
    <div id="barEmpty" class="bar"></div>
    <div id="sliderBtn"></div>
  </div>

  <!-- Scripts -->
  <script src="./howler.core.js"></script>
  <script src="./siriwave.js"></script>
  <script src="./player.js"></script>
</body>
</html>