Skip to content

Instantly share code, notes, and snippets.

@CodeMonkeyG
CodeMonkeyG / header.js
Last active May 18, 2016 02:54
Gigya Global Config for BeachBody
// Global Gigya Configutatio object
window.__gigyaConf = {
customLang: {
invalid_login_or_password : 'The Current Password you entered is incorrect. Try again or <a href="http://beachbodyglobal.com/forgot-password/">click here to reset your password</a>.'
},
validation: {
// formData contains all information user has entered
// eventType is either "change" or "keypress"
// callback is optional, you can use it for asynchronous validation or just use return
'gigya-login-screen': function(formData, eventType, callback){
@CodeMonkeyG
CodeMonkeyG / showScreenSets.js
Last active November 15, 2023 23:07
Gigya ShowScreenSet function cal for BeachBody
function resizeScreenSetFields(){
$('.gigya-screen input').parents('.gigya-layout-cell').each(function(){
if(parseInt($('.gigya-screen:visible').width()) == 375){
$(this).css({
'min-width' : (parseInt($('.gigya-screen:visible').width()) - 40) + 'px',
'width' : (parseInt($('.gigya-screen:visible').width()) - 40) + 'px'
})
} else {
$(this).css({
'min-width' : '',