Created
May 29, 2014 18:29
-
-
Save digitaldavenyc/5e69b181e85c3c91b845 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script> | |
var memFragConfig = { | |
force_desktop: true, | |
show_app_switcher: false, | |
headerContainer: 'header', // css class without '.' | |
mmdbHost: 'https://mmdb.nationalgeographic.com', | |
memcenHost: 'https://members.nationalgeographic.com', | |
notificationsHost: 'https://notifications.nationalgeographic.com', | |
notificationsKey: 'e6c4b4af844c454fc2110a4d09828559489837313bd2e519cf', | |
crossDomain: false, | |
noSSL: false, | |
staticMedia: '//assets.nationalgeographic.com/ngs-header/', | |
refreshOnLogin: false, | |
refreshOnLogout: false, | |
serverSideLogin: true, | |
debug: false, | |
debug_lvl: 5, | |
whitelist: { | |
origins: [ | |
'*.nationalgeographic.com', | |
'*.natgeo.vm' | |
], | |
targets: [ | |
'mmdb', | |
'mc', | |
'geodata' | |
] | |
}, | |
alertContainerSelector: '#dialog-alert' | |
}, | |
head = document.head || document.getElementsByTagName("head")[0], | |
isHTTPS = !!document.location.protocol.match('https:'), | |
gigyaCDN = (isHTTPS ? "https://cdns.gigya.com" : "http://cdn.gigya.com"), | |
gigyaConfig = new Object(), | |
gs; | |
// Create Gigya Global Configuration Object and add to window | |
// gigyaConfig.siteName = ''; | |
gigyaConfig.enabledProviders = 'facebook'; | |
gigyaConfig.autoLogin = true; | |
window.__gigyaConf = gigyaConfig; | |
// Append Gigya Socialize.js script to DOM | |
gs = document.createElement('script'); | |
gs.type = 'text/javascript'; | |
gs.setAttribute('src', gigyaCDN + '/JS/socialize.js?apikey='); | |
head.appendChild(gs); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment