Advertisement
Guest User

Untitled

a guest
Feb 5th, 2022
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.17 KB | None | 0 0
  1. <div class = "container">  
  2.     <input type="range"  
  3.    min="0"  
  4.    max="25"  
  5.    step="any"  
  6.    value="%VOLM"  
  7.    id="volm">  
  8. </div>  
  9.  
  10. <style>  
  11. .container{
  12.     display:flex;
  13.     width:100%;
  14.     padding-top:2;
  15.     height: fit-content;}
  16.  
  17. #volm{
  18.     position: relative;
  19.     margin-top: 5px;
  20.     width:153px;
  21.     border-radius: 3px;
  22.     height: 5px;
  23.     -webkit-appearance: none;}
  24.  
  25. input::-webkit-slider-runnable-track {
  26.     -webkit-appearance: none;
  27.     position: relative;
  28.     box-sizing: border-box;
  29.     width: 100%;
  30.     height: 6px;
  31.     border-radius: 3px;
  32.     overflow: hidden;}
  33.  
  34. input::-webkit-slider-thumb {
  35.     position: relative;
  36.     left: initial;
  37.     bottom: 10px;
  38.     -webkit-appearance: none;
  39.     width: 0px;
  40.     height: 20px;
  41.     box-shadow: -330px 0 0 330px #96ccfd, inset 0 0 0 40px #1597ff, 330px 0 0 330px #1597ff, inset 0 0 0 40px #1597ff;
  42.     margin-top: 5px;}
  43. </style>  
  44.  
  45. <script>  
  46.     var slider = document.getElementById("volm");  
  47.     slider.addEventListener("input",function()  
  48.     {performTask("WebView Slider - Media Volume",1,slider.value,)}, false);  
  49. </script>
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement