Menu animation based on the work of CreativeDash. http://dribbble.com/shots/1239862-iPad-Mini-Showcase-Template
A Pen by Matt Hoiland on CodePen.
| <!-- @Reference : http://www.abeautifulsite.net/blog/2011/11/detecting-mobile-devices-with-javascript/ --> | |
| <html> | |
| <head> | |
| <!-- For Syntax Highlighting --> | |
| <script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css"></link> | |
| <script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script> | |
| <script> | |
| function styleCode() { | |
| if (typeof disableStyleCode != 'undefined') { return; } |
| // Create CustomView.xib, set File's Owner to CustomView. | |
| // Link the top level view in the XIB to the contentView outlet. | |
| class CustomView : UIView { | |
| @IBOutlet weak private var contentView:UIView! | |
| // other outlets | |
| override init(frame: CGRect) { // for using CustomView in code | |
| super.init(frame: frame) | |
| self.commonInit() |