<!-- Javascript includes -->
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="/js/mobileinit.js"></script>
+ <script src="/js/ios-orientationchange-fix.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<script src="/js/application.js"></script>
</head>
--- /dev/null
+/*
+ A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto.MIT License.
+ https://github.com/scottjehl/iOS-Orientationchange-Fix
+*/
+(function(m){if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1)){return}var l=m.document;if(!l.querySelector){return}var n=l.querySelector("meta[name=viewport]"),a=n&&n.getAttribute("content"),k=a+",maximum-scale=1",d=a+",maximum-scale=10",g=true,j,i,h,c;if(!n){return}function f(){n.setAttribute("content",d);g=true}function b(){n.setAttribute("content",k);g=false}function e(o){c=o.accelerationIncludingGravity;j=Math.abs(c.x);i=Math.abs(c.y);h=Math.abs(c.z);if(!m.orientation&&(j>7||((h>6&&i<8||h<8&&i>6)&&j>5))){if(g){b()}}else{if(!g){f()}}}m.addEventListener("orientationchange",f,false);m.addEventListener("devicemotion",e,false)})(this);
\ No newline at end of file
* The latest jQuery bits from CDN, with a local option.
* Override files for both JS and CSS
* Extensive UI element snippet library. Easy to copy and paste.
+* Includes Scott Jehl's fix for the [iOS orientation bug](https://github.com/scottjehl/iOS-Orientationchange-Fix)
## Contributing
* Source: http://github.com/commadelimited/jQuery-Mobile-Boilerplate
* Twitter: [http://twitter.com/jqmbp](http://twitter.com/jqmbp)
+* Twitter: [http://twitter.com/commadelimited](http://twitter.com/commadelimited)
## License