Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632736 Views

Latest files of /cody/bradtraversy/50projects50days/custom-range-slider

.vscode/ cody/bradtraversy/50projects50days/custom-range-slider/.vscode/
1 Items
  • settings.json
  • style.css cody/bradtraversy/50projects50days/custom-range-slider/style.css
    80 Views
    0 Comments
    @import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

    * {
    box-sizing: border-box;
    }

    body {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    index.html cody/bradtraversy/50projects50days/custom-range-slider/index.html
    297 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="style.css" />
    <title>Custom Range Slider</title>
    </head>
    script.js cody/bradtraversy/50projects50days/custom-range-slider/script.js
    81 Views
    0 Comments
    const range = document.getElementById('range')

    range.addEventListener('input', (e) => {
    const value = +e.target.value
    const label = e.target.nextElementSibling

    const range_width = getComputedStyle(e.target).getPropertyValue('width')
    const label_width = getComputedStyle(label).getPropertyValue('width')