GithubHelp home page GithubHelp logo

mediatizr's Introduction

Mediatizr 0.3.1

This library adds media queries support to browsers that don't support it (like Internet Explorer 5.5-8).

Features

  • px/em values
  • min-width/max-width
  • min-device-width/max-device-width
  • resizing, zooming and text size changing will re-evaluate media queries for live responsive adjustment
  • @keyframes friendly
  • expose current media queries support with window.supportMediaQueries

Use

Simply link the script to your page as usual. Mediatizr will run by itself.

Dependencies

Mediatizr uses Sheethub and W libraries. Then, you can choose among 4 script versions to minimize bandwith use and maximize simplicity. If you've already added one of these libraries (or both) into your project, then take the simple minified mediatizr version, else take the one with the script(s) that you haven't included.

Caveats

There's some issues between IE<8 and em values in W. If you've planned to use em units on your media queries and you want to support IE6/7, then you must load mediatizr when the DOM is ready.

Using mediatizr with STYLE stylesheets (sheets that have been included to the HTML page itself) doesn't work, because when the browser parses the STYLE stylesheet and encounters rules that it doesn't understand then it will simply drops these rules: your media queries are lost. For...ever.

License

Mediatizr is brought to you with the MIT license.

mediatizr's People

Contributors

akkuma avatar

Watchers

Ramiro Gomez avatar James Cloos avatar

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.