<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- User
</div> <div class="videobar"> <div class="tool-tip" id="tooltip"> <!-- <img src="./assets/Tooltiprl.png"> --> <p>Please select a video title from either side to play </p> </div> <div class="sub-container" id="subtitles"> <div class="subtitle-buttons" style="flex-direction:row;"> <p>SUBTITLES</p> </div> <div class="subtitle-buttons"> <div class="sub-button" onclick="setSubtitles('fre')">FRENCH </div> <div class="sub-button" onclick="setSubtitles('jap')">JAPANESE </div> <div class="sub-button" onclick="setSubtitles('spa')">SPANISH </div> </div> </div> </div> <div class="logo"> <img src="./assets/Daikin Logo 1080.png" style="width: 100%;"> </div> <div class="video-container"> <div class="video-heading"> <strong>I</strong>ndoor <strong>E</strong>nvironment <strong>Q</strong>uality</div> <style> video::cue { font-size: 35px; z-index: 1000; position: relative; } </style> <video src="" autoplay controls style="display: none; width: 100% ; height:75%" id="videoPlayer" class="videosection"> </video> <div id="custom-subtitle" class="custom-subtitle"></div> <!-- <img src="./assets/IEQ Background 1.gif" id="gifPlaceholder" style=" width: 100%; height: 75%;" /> --> <video id="loopingVideoPlayer" style="width: 100%; height: 75%;" autoplay muted></video> <!-- <div class="volume-control" style="width: 19%; margin-top: 10px; display: flex; align-items: right;"> <label for="volumeSlider" style="margin-right: 10px;">Volume:</label> <input type="range" min="0" max="100" value="35" id="volumeSlider" style="width: 100%;"> </div> --> <div class="volume-control"> <div class="volume-icon" id="volumeIcon"> <i class="fas fa-volume-up"></i> </div> <div class="volume-slider" id="volumeSliderContainer"> <input type="range" min="0" max="100" value="35" id="volumeSlider"> </div> </div> </div> <div class=" section right"> <!-- <div class="heading-right"> IEQ in the DC Office</div> --> <div class="buttons" id="right-buttons"> </div> </div>/* Volume Icon */ .volume-icon { cursor: pointer; font-size: 24px; color: white; }
/* Hide the volume slider by default */ .volume-slider { display: none; margin-bottom: 10px; }
/* Style the volume slider */ .volume-slider input[type="range"] { -webkit-appearance: none; width: 100px; height: 5px; background: #ddd; border-radius: 5px; outline: none; }
/* Slider Thumb */ .volume-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: #4CAF50; border-radius: 50%; cursor: pointer; }
.volume-slider input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; background: #4CAF50; border-radius: 50%; cursor: pointer; } and this videoPlayer.volume = volumeSlider.value / 100;
// Toggle the display of the volume slider on icon click volumeIcon.addEventListener('click', function(event) { event.stopPropagation(); // Prevent click from bubbling up if (volumeSliderContainer.style.display === 'block') { volumeSliderContainer.style.display = 'none'; } else { volumeSliderContainer.style.display = 'block'; } });
- Assistant