just run this command on your mac:
brew install https://gist.github.com/raw/1007028/66c1911132a2970b9df9723bd8063ac13e926993/nginx.rb
require( ['jquery'], function( $ ) { | |
$( document ).one( "mobileinit", function() { | |
// Set up your jQM options here | |
}); | |
require( ['jquery.mobile'] ); | |
} |
just run this command on your mac:
brew install https://gist.github.com/raw/1007028/66c1911132a2970b9df9723bd8063ac13e926993/nginx.rb
javascript:(function(doc, docElem){ function s(url, css, sc){ sc = doc.createElement( css ? "link" : "script");if(css){sc.rel = "stylesheet";} sc[css?"href":"src"] = url; docElem.insertBefore(sc,docElem.firstChild); return sc; } s("http://jquerymobile.com/test/themes/default/jquery.mobile.core.css", true ); s("http://jquerymobile.com/test/themes/default/jquery.mobile.transitions.css", true ); var jq =s("http://code.jquery.com/jquery-latest.min.js"); jq.onload = function(){ s( "http://code.jquery.com/mobile/latest/jquery.mobile.min.js"); }; })(document, document.documentElement ); |