johnathanmartin.com
Johnathan Martin – Web Developer
http://johnathanmartin.com/blog
Parsing JSON API’s. Everyone loves Ron Swanson’s witty humor. Lucky for us James Wright. Already created us a database full of plenty of famous quotes from the mouth of Ron Swanson. Mr. Wright was kind enough to share an entry point. Into his database for others to use and display on their websites or software. Let’s get started on how to “Parse” the data and have it return to the requester. Ron = file get contents('http:/ ron-swanson-quotes.herokuapp.com/v2/quotes');. I hate everything."]. Almost every ...
zerosixthree.se
Z63 | Detecting media queries with Javascript | zerosixthree
http://zerosixthree.se/detecting-media-queries-with-javascript
Detecting media queries with Javascript. January 26, 2015. Detecting certain CSS media queries with Javascript is often necessary, but can be kind of tricky. Usually you end up using Modernizr. And/or some hard coded width to detect mobile layouts, like this:. If($(window).width 725 Modernizr.touch) { / Code for smaller screens. }. Set with CSS, get with Javascript. Since our media queries is set by the CSS, why not have the CSS tell our Javascript what media query we’re currently inside? Mixin bp-large ...