Media Query Blog post by Chris Mahlke from 2012, updated to AMD?

582
1
02-06-2014 06:46 AM
TracySchloss
Frequent Contributor
There was a blog post written by Chris Mahlke a while back that described how to apply media queries in your code to be more responsive to various screen resolutions and sizes. 

http://blogs.esri.com/esri/arcgis/2012/08/24/applying-media-queries-to-your-arcgis-api-for-javascrip...

There was also a place to download the entire sample.  It works as-is, but I was hoping to rewrite it in AMD-style.  I've started over twice and I'm not having any luck.  I'm lost in a few different places:  I'm not sure about the mobile style sheets, they are several versions back and the overall paths I know have changed.  I'm also not sure about the AMD equivalent of
dojo.requireIf("!dojo.isWebKit, "dojox.mobile.compat");


Maybe I should just require it, rather than having any sort of 'if'? 

Does anybody remember this posting?  And maybe updated it with AMD-style instead?
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
Is this replaced by dojo/has? And this page might help a little too.
0 Kudos