Giter Club home page Giter Club logo

multirange's Introduction

multirange's People

Contributors

anom avatar antejan avatar backflip avatar decemberly avatar faqteur avatar htchaan avatar jauco avatar leaverou avatar markasoftware avatar n00b42 avatar rasben avatar salvan13 avatar sercxjo avatar shvaikalesh avatar topaxi avatar totalolage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

multirange's Issues

documentation not clear

CSS: Use the --range-color property to change the color of the range. Use the --track-background property for more extensive customization.

how? pls show example

thanks

ghost.value returns single instead of array

Ghost input returns single value, whereas it has attribute multiple. That is confusing in case if we try to handle input event and read this.value.

I am trying multirange in prama, it is very graceful solution for inputs, thanks @LeaVerou!

P. S. [Un]fortunately traditionally IE shits the bed.

Move the closest handle

Clicking on the track moves only the one handle. I think it would be more intuitive to move the closest handle.

Example:
If range is set from 40% to 60% and i tap at 80% the range should be 40% to 80%
If the initial range is the same and i tap at 20% the final range will be 20% to 60%

Issue loading plugin?

This plugin doesn't seem to operate or load as expected for me in the latest Chrome (v62).
In a new Incognito window I go to https://leaverou.github.io/multirange/ and see this in the console:

Uncaught TypeError: Cannot read property 'bind' of null
    at self.multirange (multirange.js:60)
    at Array.forEach (<anonymous>)
    at HTMLDocument.multirange.init (multirange.js:74)

I get the error in Safari too at this URL. Same error when I include the script on a page of my own.

CDN, package.json, CSS Variables free

CDN is good place where polyfills can be.

You can add package.json to add npm support. Other developers can import your polyfill to page through browserify.

As you can see caniuse statistics - CSS Variables is supported only by modern browsers. So please add IE browsers support.

"module.exports = multirange" declaration causes TypeError with Vue.js

Hello,

The multirange polyfill works just fine in JSFiddle, but won't work in my Vue.js project.

Line 112 in multirange.js is the issue: module.exports = multirange; which gives me the following error:
"TypeError: Cannot assign to read only property 'exports' of object '#<Object>'"

If I comment that line, the component would be loaded as a simple HTML input range element...

I looked for solutions on the Internet and found that using export ... instead of module.exports = ... could solve the issue, but I can't manage to use it properly (I'm using Vue.js which only allows me to use export on the top of the page). Is there a proper way to import this IIFE with the export default statement?

Thanks

Missing fallback with 2 sliders

I'm testing the demo-page in IE11 (in Browserstack), but I only see one slider and not two as it says in the demo. Perhaps it's not implemented yet or am I missing something?

glitch when absolute positioning changes box width

If we give the input width:100% and place it in a parent that has padding, the multirange input doesn't look right. The "ghost" input has the right width, but the "original" (which is given position:absolute) has a width that doesn't respect the padding.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.