Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3.     <head>
  4.         <script src="distribute/nouislider.js"></script>
  5.         <link href="distribute/nouislider.css" rel="stylesheet"/>
  6.     </head>
  7.     <body>
  8.    
  9. <div class="range-slider">
  10.                         <div class="d-flex flex-row flex-wrap justify-content-between align-items-center item-spaces">
  11.                             <p><label for="maxAuctions"><?php te('hp price number of active auctions'); ?><span class="bs-icon bs-icon-small bs-info" data-toggle="tooltip" data-placement="right" title="<?php te('hp price number of active auctions tooltip'); ?>"></span></label></p>
  12.                             <div class="input-wrapper">
  13.                                 <input id="minAuctions" class="form-control hidden-input" type="text" name="pf" value="0" placeholder="od"/>
  14.                                 <input id="maxAuctions" class="form-control" type="text" name="pt" value="200"  placeholder="do"/>
  15.                             </div>
  16.                         </div>
  17.  
  18.                         <div id="auctions-slider"></div>
  19.                     </div>
  20.     <script>
  21.         var slider = document.getElementById('auctions-slider');
  22.  
  23.         noUiSlider.create(slider, {
  24.             start: [0, 250],
  25.             behaviour: 'none',
  26.             margin: 0,
  27.             connect: true,
  28.             range: {
  29.                 'min': 0,
  30.                 '15%': 100,
  31.                 '30%': 500,
  32.                 '50%': 1000,
  33.                 '75%': 5000,
  34.                 'max': 10000
  35.             },
  36.             pips: {
  37.                 mode: 'steps',
  38.                 density: 5
  39.             }
  40.         });
  41.     </script>
  42.    
  43.     </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement