These bars are based on the css layout provided by Chris Coyier @ CSS-Tricks and modified by Jeff Langdon @ JL Design Network.
1. Copy the "src" folder into your directory.
2. Copy/paste the following into the <head> of your HTML document above <style> / <script>.
<!-- JLDNMeter CSS --> <link href="src/style.css" rel="stylesheet">
3. Copy/paste the following into the <head> of your HTML document between <style> / <script>. Alternatively, you can place the following lines in the <body> of your HTML document.
<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> <!-- JLDNMeter JS --> <script type="text/javascript" src="src/script.js"></script>
4. Edit the JLDNMeter CSS <link> and the JLDNMeter JS <script> so that it points to the location of the "src" folder.
5. Copy/paste the code, from any of the styles found below, into your HTML document.
6. Set the visibility of the meter by changing the value of "reveal-width", or setting the "reveal-width" inside the "data-options" attribute, found in the <div> containing the 'meter' class.
Each meter requires a unique id in the <div> where the meter class is defined. Failure to include a unique id may result in unexpected or unusual behavior.
Below is a list of current working meter options. These are seperate from the CSS classes, '.no-animation', '.no-candystripes' and the several border classes (which can be found in the styles section of this page).
<div id="default" class="meter" data-options='{"reveal-width":"95%"}'> <span> <span> <span>This line is set to 95%</span> </span> </span> </div>
<div id="barNA" class="meter no-animation" data-options='{"reveal-width":"90%"}'> <span> <span> <span>This line is set to 90%</span> </span> </span> </div>
<div id="barNS" class="meter no-stripes" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 85%</span> </span> </span> </div>
<div id="barR" class="meter meter-rounded" data-options='{"reveal-width":"80%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRT" class="meter meter-rounded-top" data-options='{"reveal-width":"80%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRB" class="meter meter-rounded-bottom" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRL" class="meter meter-rounded-left" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRR" class="meter meter-rounded-right" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRTRBL" class="meter meter-rounded-trbl" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="barRTLBR" class="meter meter-rounded-tlbr" data-options='{"reveal-width":"85%"}'> <span> <span> <span>This line is set to 80%</span> </span> </span> </div>
<div id="candycane" class="meter no-animation meter-rounded" data-options='{"candystripe-color":"white","meter-color":"red"}'> <span> <span> <span></span> </span> </span> </div>
<div id="caution-stripe" class="meter" data-options='{"candystripe-color":"white","meter-color":"black","animation-speed":0.6,"meter-shadow":"1px 1px 5px 1px rgba(255,255,255,0.4)"}'> <span> <span> <span></span> </span> </span> </div>