Skip to content

Instantly share code, notes, and snippets.

@digitaldavenyc
Created May 29, 2014 19:29
Show Gist options
  • Save digitaldavenyc/55816ac9023dc2fff423 to your computer and use it in GitHub Desktop.
Save digitaldavenyc/55816ac9023dc2fff423 to your computer and use it in GitHub Desktop.
<script>
var memFragConfig = {
force_desktop: true,
show_app_switcher: false,
headerContainer: 'header', // css class without '.'
mmdbHost: 'https://mmdb-staging.nationalgeographic.com',
memcenHost: 'https://membercenter-staging.nationalgeographic.com',
notificationsHost: 'https://notifications.nationalgeographic.com',
notificationsKey: 'e6c4b4af844c454fc2110a4d09828559489837313bd2e519cf',
crossDomain: false,
noSSL: false,
staticMedia: 'https://assets-staging.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