Skip to content

Commit

Permalink
Update audiplay.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 17, 2024
1 parent a551d29 commit fe06342
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions audiplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const ap_html = `
background: rgba(245, 236, 242);
border-radius: 4px;
transition: all 1s;
width: 100%;
margin: auto;
}
.ap_controls {
Expand All @@ -49,6 +51,10 @@ const ap_html = `
font-size: large;
font-family: Tahoma, Geneva, Verdana, sans-serif;
cursor: pointer;
transition: all 0.5s;
justify-content: space-around;
align-items: center;
}
.ap_controls span {
Expand All @@ -64,21 +70,23 @@ const ap_html = `
.ap_container svg {
width: 25px;
height: 25px;
transition: all 0.3s;
}
.ap_controls .duration {
width: 80%;
margin-right: 10px;
bottom: 4px;
width: 60%;
display: flex;
align-items: center;
}
.ap_controls input[type=range] {
-webkit-appearance: none;
width: 100%;
outline: 0;
height: 2px;
margin: 0 15px;
background: #0ff;
transition: all 0.3s;
}
.ap_controls:hover input[type=range]::-webkit-slider-thumb {
Expand All @@ -88,6 +96,7 @@ const ap_html = `
border-radius: 50%;
cursor: pointer;
background: #00ced1;
transition: all 0.3s;
}
.ap_controls input[type=range]::-webkit-slider-thumb {
Expand Down Expand Up @@ -117,7 +126,7 @@ const ap_html = `
</div>
`;

// Get all audio elements with class 'audiplay'
// Get all audio elements with class 'audioplay'
const ap_audioElements = document.querySelectorAll('.audiplay');

// Insert the audio player before each audio element
Expand Down

0 comments on commit fe06342

Please sign in to comment.