While I am an experienced user of CSS I am a virtual novice when it comes to JavaScript.
So, I beg your indulgence...
I have a small JavaScript 'widget' running on my Gantry 4 site. The widget works perfectly in the large desktop mode. I have spent some time (hours) trying to figure out how to alter a small bit of JavaScript depending on the screen size. Essentially, I need to figure out how to perform a Media Query (screen size based) in JavaScript and then have an if/then statement run the appropriate JavaScript changes.
From what I gather I can use the RokMediaQueries.js file to help with this. Unfortunately, I don't know enough JavaScript to write the appropriate code.