Created
February 19, 2014 16:45
-
-
Save wboykinm/9096031 to your computer and use it in GitHub Desktop.
Conditional map id load
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
// Larger screens get expanded layer control | |
var faradayMapid; | |
if (document.body.clientWidth <= 767) { | |
faradayMapid = 'landplanner.hajfpk7a'; | |
} else { | |
faradayMapid = 'landplanner.hajfpk7a'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment