Comments (9)
+1
from jrespond.
Doesn't
breakpoint: '*',
work for that?
from jrespond.
I personally think jRespond should work more like media queries so that you can define a familiar set of rules.
maxWidth, minWidth, etc.
It would just be more legible to me.
Then you could have breakpoints happening and overlaps would be unnecessary because it would just be assumed.
if maxWidth is defined but minWidth isn't defined, then that means it runs until the maxWidth is exceeded... and so on.
from jrespond.
I agree this would be useful.
However, for now assigning a function to an array of breakpoints seems to accomplish similar results.
from jrespond.
Just looked over the source code and this should be really easy to implement, will fork and look at doing this
from jrespond.
+1 I agree. This would be a great addition to jRespond
from jrespond.
ok i will be adding this at some point, been busy working on new version SimpleStateManager (which is using the code that I will port across to work with jRespond)
from jrespond.
I also agree this would be very useful. In my case I need both mobile and tablet breakpoints but I also need another breakpoint to count for both mobile and tablet and slightly above, Hence adding a function to mobile and tablet wouldn't achieve what I need.
from jrespond.
+1
from jrespond.
Related Issues (16)
- document.documentElement.clientWidth vs window.innerWidth HOT 5
- winWidth method is using IE conditional in Chrome when in an iframe HOT 3
- Function doesn't load at breakpoint only when entering breakpoint HOT 2
- Add change function for breakpoints.
- Bower HOT 8
- jRespond and Firefox select menu
- Debugging with firebug almost impossible
- publish to npmjs respository HOT 3
- Add Version HOT 2
- Addition to remove function HOT 2
- compare to cssobj HOT 1
- jRespond and Blendid HOT 4
- which cases that document.body.clientWidth equal document.documentElement.clientWidth HOT 1
- What would be the best way to load a jQuery plugin in a enter:function()? HOT 1
- function is not triggered when page load.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrespond.