This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The final thing is to add a tap listener that is called whenever the user taps on the screen. | |
* We do a quick check to make sure they're not tapping on the carousel indicators (tapping on | |
* those indicators moves you between items so we don't want to override that), then either hide | |
* or show the info Component. | |
*/ | |
Ext.Viewport.element.on('tap', function(e) { | |
if (!e.getTarget('.x-carousel-indicator')) { | |
if (titleVisible) { | |
info.element.removeCls('apod-title-visible'); |
NewerOlder