Skip to content

Instantly share code, notes, and snippets.

@ErinCall
Created September 18, 2013 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ErinCall/6604649 to your computer and use it in GitHub Desktop.
Save ErinCall/6604649 to your computer and use it in GitHub Desktop.
Source of the new codescouts index.html while attempting to integrate janrain capture
{
"screens" : {
"signIn": {
"source": "client",
"modal": true,
"screenConditionals": {
"if": {
"withOperator": "===",
"compare": "cookie:janrainLastAuthMethod",
"to": "socialSignin"
},
"then": {
"render": {
"screen": "returnSocial"
}
},
"else": {
"if": {
"withOperator": "===",
"compare": "cookie:janrainLastAuthMethod",
"to": "traditionalSignin"
},
"then": {
"render": {
"screen": "returnTraditional"
}
}
}
},
"layout": "signIn"
},
"returnSocial" : {
"source" : "client",
"modal" : true,
"layout" : "returnSocial"
},
"returnTraditional" : {
"source" : "client",
"modal" : true,
"layout" : "returnTraditional"
},
"forgotPassword" : {
"source" : "client",
"modal" : true,
"layout" : "forgotPassword"
},
"forgotPasswordSuccess" : {
"source" : "client",
"modal" : true,
"layout" : "forgotPasswordSuccess"
},
"traditionalRegistration" : {
"source" : "client",
"validateOnRender" : true,
"modal" : true,
"layout" : "traditionalRegistration"
},
"socialRegistration" : {
"modal" : true,
"validateOnRender" : true,
"source" : "client",
"layout" : "socialRegistration"
},
"registrationNewVerification": {
"modal" : true,
"displayData": ["email"],
"source" : "client",
"modalLoadOnLoad": true,
"layout" : "registrationNewVerification"
},
"mergeAccounts" : {
"source" : "client",
"modal" : true,
"modalLoadOnLoad": true,
"layout" : "mergeAccounts",
"type" : "mergeAccounts"
},
"traditionalAuthenticateMerge" : {
"source" : "client",
"type" : "traditionalMergeAccounts",
"modal" : true,
"layout" : "traditionalAuthenticateMerge"
},
"resetPasswordRequestCode" : {
"source" : "client",
"messages": {
"errors": {
"invalidForgotPasswordCode": "That code is invalid"
}
},
"modal" : true,
"modalLoadOnLoad": true,
"layout" : "resetPasswordRequestCode",
"dataType" : "changePasswordLink",
"next": {
"type" : "server",
"render" : {
"screen" : "resetPassword"
}
}
},
"resetPassword" : {
"source" : "client",
"modal" : true,
"modalLoadOnLoad": true,
"layout" : "resetPassword"
},
"resetPasswordSuccess" : {
"source" : "client",
"modal" : true,
"modalLoadOnLoad": true,
"layout" : "resetPasswordSuccess"
},
"resetPasswordRequestCodeSuccess" : {
"source" : "client",
"modal" : true,
"modalLoadOnLoad": true,
"layout" : "resetPasswordRequestCodeSuccess"
},
"verifyEmail" : {
"modal" : true,
"modalLoadOnLoad": true,
"source" : "client",
"dataType" : "verifyEmail",
"layout" : "verifyEmail",
"next": {
"type" : "server",
"render" : {
"screen" : "verifyEmailSuccess"
}
}
},
"resendVerificationSuccess" : {
"modal" : true,
"modalLoadOnLoad": true,
"source" : "client",
"layout" : "resendVerificationSuccess"
},
"verifyEmailSuccess" : {
"modal" : true,
"modalLoadOnLoad": true,
"source" : "client",
"layout" : "verifyEmailSuccess"
}
},
"fields" : {
"displayNameData": {
"element":"data",
"type":"string",
"schemaId": "displayName",
"forcePublic" : true,
"justString": true
},
"displayNameStorageData": {
"element":"data",
"type":"localStorage",
"data": "displayName"
},
"publicProfileLink" : {
"value" : "",
"schemaId" : "uuid",
"elementHref" : "public-profile.html",
"elementClasses" : ["capture_btn", "capture_primary"],
"elementText": "<span class=\"janrain-icon-16 janrain-icon-person\"></span> Public Profile",
"type" : "publicProfileLink",
"element" : "capture"
},
"userInformationForm" : {
"messages" : {
"errors" : {
"invalidCredentials" : "Username and password don't match. Try again.",
"invalidPassword" : "Username and password don't match. Try again."
}
},
"fields" : [
"traditionalSignIn_emailAddress",
"traditionalSignIn_password"
],
"action" : "widget/traditional_signin.jsonp",
"element" : "form",
"hideOnSubmit" : true
},
"traditionalSignIn_emailAddress" : {
"schemaId" : "email",
"type" : "email",
"label" : "",
"profileStoragePath": "email",
"profileStoragePath": "email",
"validation" : {
"messages" : {
"required" : "Email address is required.",
"format" : "Email address is not formatted correctly."
},
"required" : true,
"format" : "email"
},
"placeholder" : "email address",
"element" : "input"
},
"traditionalSignIn_password" : {
"tip" : "<a href=\"#\" data-capturescreen=\"forgotPassword\">Forgot your password?</a>",
"schemaId" : "password",
"type" : "password",
"label" : "",
"validation" : {
"messages" : {
"required" : "Password is required."
},
"required" : true
},
"placeholder" : "password",
"element" : "input"
},
"traditionalSignIn_signInButton" : {
"value" : "Sign In",
"type" : "submit",
"element" : "button",
"elementContent": "<span class=\"janrain-icon-16 janrain-icon-key\"></span> Sign In",
"elementClasses": ["capture_secondary", "capture_btn_half"]
},
"traditionalSignIn_createButton" : {
"value" : "Create Account",
"type" : "submit",
"element" : "button",
"elementContent": "<span class=\"janrain-icon-16 janrain-icon-plus\"></span> Create Account",
"elementClasses": ["capture_secondary", "capture_btn_half"],
"modify" : {
"event":"click",
"element" : "capture_signIn_userInformationForm",
"attributes" : {
"next" : "{\"dontSubmit\":true, \"storeValues\":true, \"screen\":\"traditionalRegistration\"}"
}
}
},
"welcomeName" : {
"type" : "engageCookie",
"cookieName" : "welcome_info_name",
"element" : "data"
},
"socialRegistrationForm" : {
"fields" : [
"socialRegistration_emailAddress",
"socialRegistration_displayName"
],
"next" : {
"type" : "server",
"if" : {
"compare" : "emailVerified",
"to" : null,
"withOperator" : "=="
},
"then" : {
"sendMail" : {
"mail": "newVerification"
},
"render": {
"screen": "registrationNewVerification"
}
}
},
"action" : "widget/social_register.jsonp",
"hideOnSubmit" : true,
"element" : "form"
},
"socialRegistration_emailAddress" : {
"schemaId" : "email",
"value" : "",
"validation" : {
"messages" : {
"minLength" : "Must be at least 3 characters.",
"format" : "Email address is not formatted correctly.",
"required" : "Email address is required.",
"unique": "That email address is already in use.",
"maxLength" : "Must be less than 128 characters."
},
"unique" : true,
"format" : "email",
"required" : true,
"minLength" : 3,
"maxLength" : 128
},
"element" : "input",
"tip" : "Will not be shared without your permission",
"engageData" : "profile.email",
"type" : "email",
"label" : "Email Address",
"placeholder" : "Email Address"
},
"socialRegistration_displayName" : {
"schemaId" : "displayName",
"validation" : {
"messages" : {
"required" : "Display name is required.",
"unique" : "That display name is already taken."
},
"required" : true,
"unique": true
},
"element" : "input",
"tip" : "A name to use on this site",
"engageData" : "profile.displayName",
"type" : "text",
"label" : "Display Name",
"placeholder" : "Display name"
},
"signInButton" : {
"value" : "Sign In",
"type" : "submit",
"element" : "input"
},
"emailAddressData": {
"element": "data",
"type": "string",
"schemaId": "email",
"justString": true
},
"registrationForm" : {
"fields" : [
"traditionalRegistration_emailAddress",
"traditionalRegistration_password",
"traditionalRegistration_passwordConfirm",
"traditionalRegistration_displayName"
],
"next" : {
"type" : "server",
"if" : {
"compare" : "emailVerified",
"to" : null,
"withOperator" : "=="
},
"then" : {
"sendMail" : {
"mail": "newVerification"
},
"render": {
"screen": "registrationNewVerification"
}
}
},
"hideOnSubmit" : false,
"action" : "widget/traditional_register.jsonp",
"element" : "form"
},
"traditionalRegistration_emailAddress" : {
"schemaId" : "email",
"value" : "traditionalSignIn_emailAddress",
"validation" : {
"messages" : {
"required" : "Email address is required.",
"unique" : "Email address is already being used.",
"format" : "Email address is not formatted correctly.",
"minLength" : "Must be at least 3 characters.",
"maxLength" : "Must be less than 128 characters."
},
"minLength" : 3,
"required" : true,
"unique" : true,
"format" : "email",
"maxLength" : 128
},
"element" : "input",
"tip" : "Will not be shared without your permission",
"engageData" : "profile.email",
"type" : "email",
"label" : "Email Address",
"placeholder" : "Email Address",
"displaySavedValue" : true
},
"traditionalRegistration_password" : {
"schemaId" : "password",
"value" : "traditionalSignIn_password",
"validation" : {
"messages" : {
"required" : "Password is required.",
"minLength" : "Must be at least 6 characters"
},
"required" : true,
"minLength" : 6
},
"element" : "input",
"tip" : "Must be at least 6 characters",
"type" : "password",
"label" : "Password",
"placeholder": "Password",
"displaySavedValue" : true
},
"traditionalRegistration_passwordConfirm" : {
"tip" : "Re-type your password",
"schemaId" : "password",
"type" : "password",
"label" : "Password Confirm",
"placeholder": "Password confirm",
"validation" : {
"messages" : {
"match" : "Passwords do not match."
},
"match" : "traditionalRegistration_password"
},
"element" : "input"
},
"traditionalRegistration_displayName" : {
"tip" : "A name people can call you",
"engageData" : "profile.displayName",
"schemaId" : "displayName",
"label" : "Display Name",
"type" : "text",
"validation" : {
"messages" : {
"required" : "Display name is required.",
"unique": "That display name is already taken."
},
"required" : true,
"unique": true
},
"placeholder" : "Display name",
"element" : "input"
},
"createAccountButton" : {
"value" : "Create Account",
"type" : "submit",
"element" : "input"
},
"forgotPasswordForm" : {
"fields" : [
"traditionalSignIn_emailAddress"
],
"checkIdentifier": true,
"messages": {
"errors": {
"invalidIdentifier": "No account with that email address."
}
},
"action" : "widget/recover_password.jsonp",
"element" : "form",
"hideOnSubmit" : true,
"next" : {
"type" : "server",
"if" : {
"compare" : "password",
"to" : null,
"withOperator" : "=="
},
"then" : {
"error" : {
"message" : "that account is social signin only"
}
},
"else" : {
"render" : {
"screen" : "forgotPasswordSuccess"
},
"sendMail": {
"mail": "passwordRecover"
}
}
}
},
"forgotPassword_sendButton" : {
"value" : "Send",
"name" : "capture_reset_password",
"type" : "submit",
"element" : "input"
},
"mergeAccounts": {
"element": "capture",
"type": "mergeAccounts",
"traditionalMergeScreen": "traditionalAuthenticateMerge",
"engageData" : {
"current_provider": "profile.providerName",
"current_displayName": "profile.displayName",
"current_emailAddress": "profile.verifiedEmail",
"current_photo": "profile.photo"
},
"schemaId" : {
"existing_displayName": "displayName",
"existing_emailAddress": "email",
"existing_createdDate": "created",
"existing_photo": "photos",
"existing_siteName": "profiles.domain",
"existing_provider": "profiles.identifier",
"existing_provider_displayName": "profiles.profile.displayName",
"existing_provider_emailAddress": "profiles.profile.emails",
"existing_provider_photo": "profiles.profile.photos"
}
},
"tradAuthenticateMergeForm" : {
"messages" : {
"errors" : {
"invalidPassword" : "That username and password combination doesn't match our records. Try again."
}
},
"fields" : [
"traditionalSignIn_emailAddress",
"mergePassword"
],
"action" : "widget/traditional_signin.jsonp",
"element" : "form",
"hideOnSubmit" : true
},
"mergePassword" : {
"schemaId" : "password",
"type" : "password",
"label" : "",
"validation" : {
"messages" : {
"required" : "Password is required."
},
"required" : true
},
"placeholder" : "password",
"element" : "input"
},
"resetPasswordForm" : {
"fields" : [
"traditionalSignIn_emailAddress"
],
"checkIdentifier": true,
"messages": {
"errors": {
"invalidIdentifier": "No account with that email address."
}
},
"action" : "widget/recover_password.jsonp",
"element" : "form",
"hideOnSubmit" : true,
"next" : {
"type" : "server",
"if" : {
"compare" : "password",
"to" : null,
"withOperator" : "=="
},
"then" : {
"error" : {
"message" : "that account is social signin only"
}
},
"else" : {
"render" : {
"screen" : "resetPasswordRequestCodeSuccess"
},
"sendMail": {
"mail": "passwordRecover"
}
}
}
},
"newPasswordForm": {
"element": "form",
"action": "widget/profile.jsonp",
"fields": ["newpassword", "newpasswordConfirm"],
"next": {
"type": "server",
"render": {
"screen": "resetPasswordSuccess"
}
}
},
"newpassword": {
"element": "input",
"type": "password",
"value": "",
"label": "New Password",
"schemaId": "password",
"tip": "Desired Password",
"validation": {
"required": true,
"minLength": 6,
"messages": {
"required": "Password is required.",
"minLength": "Must be at least 6 characters"
}
}
},
"newpasswordConfirm": {
"element": "input",
"type": "password",
"label": "Password Confirm",
"schemaId": "password",
"tip": "Re-type your password",
"validation": {
"match": "newpassword",
"messages": {
"match": "Passwords do not match."
}
}
},
"resendVerificationForm" : {
"fields" : [
"traditionalSignIn_emailAddress"
],
"hideOnSubmit" : false,
"action" : "widget/recover_password.jsonp",
"element" : "form",
"next" : {
"type" : "server",
"if" : {
"compare" : "emailVerified",
"to" : null,
"withOperator" : "!="
},
"then" : {
"error" : {
"message": "Your email is already verified. You may sign in.",
"render": {
"screen": "verifyEmail"
}
}
},
"else":{
"sendMail": {
"mail": "resendVerification"
},
"render": {
"screen": "resendVerificationSuccess"
}
}
},
"messages": {
"errors" : {
"invalidCredentials": "We don't recognize that email address. Try again."
}
}
}
},
"controls": {
"resendVerificationEmail": {
"type": "server",
"if": {
"compare": "emailVerified",
"to": null,
"withOperator": "=="
},
"then": {
"sendMail": {
"mail": "resendVerification"
}
}
}
},
"mails": {
"newVerification": {
"type": "new_email_verification",
"success": {
"statusMessage": "Yo! You gotta verify that email before I believe you!"
},
"failure": {
"statusMessage": "Nice try! That email is totally bunk!",
"deleteUser": true
},
"subject": "CaptureWidget Demo email verification",
"htmlBody": "<span><b>Welcome to CaptureWidget Demo, {*#user*}{*displayName*}{*/user*}!</b></span><br />\nClick <a href=\"{*&email_verification_url*}\">this link email</a> to verify your email address.<br /><center>{*&email_verification_url*}</center>\n",
"textBody": "Welcome to CaptureWidget Demo, {*#user*}{*displayName*}{*/user*}! Navigate to the following URL to verify your email address.\n\n{*&email_verification_url*}\n"
},
"resendVerification": {
"type": "resend_email_verification",
"success": {
"statusMessage": "Sorry you missed us. Let's try this again..."
},
"failure": {
"statusMessage": "Still trying to verify this thing?",
"reset": true
},
"subject": "CaptureWidget Demo email verification",
"htmlBody": "<span><b>Sorry you missed the first email, {*#user*}{*displayName*}{*/user*}!</b></span><br />\nJust click <a href=\"{*&email_verification_url*}\">this link</a> to verify your email address.<br />\n<center>{*&email_verification_url*}</center>\n",
"textBody": "Sorry you missed the first email, {*#user*}{*displayName*}{*/user*}! Navigate to the following URL to verify this email address.\n\n{*&email_verification_url*}\n"
},
"changeVerification": {
"type": "resend_email_verification",
"success": {
"statusMessage": "New email, huh? We just need to be sure it's yours. You understand, right?"
},
"failure": {
"statusMessage": "Very tricksy...",
"reset": true
},
"subject": "CaptureWidget Demo email verification",
"htmlBody": "<span><b>Sorry you missed the first email, {*#user*}{*displayName*}{*/user*}!</b></span><br />\nPlease <a href=\"{*&email_verification_url*}\">verify your email</a>.<br /><center>{*&email_verification_url*}</center>\n",
"textBody": "Cool new email address, {*#user*}{*displayName*}{*/user*}! Navigate to the following URL to verify it.\n\n{*&email_verification_url*}\n"
},
"passwordRecover": {
"type": "password_recover",
"success": {
"statusMessage": "Check your email for a link to reset your password"
},
"failure" : {
"statusMessage": "Unable to send password reset email"
},
"subject": "Reset your XYZ password",
"htmlBody": "<span><b>Reset your password, {*#user*}{*displayName*}{*/user*}.</b></span><br />Click <a href=\"{*&password_recover_url*}\">this link</a> to reset your password.<br>\n<center>{*&password_recover_url*}</center>\n",
"textBody": "Reset your password, {*#user*}{*displayName*}{*/user*}! Just navigate to the following URL.\n\n{*&password_recover_url*}\n"
}
},
"version" : "00000000-0000-0000-0000-000000000000",
"defaultScreen" : "signIn",
"schema_info" : {
"paths" : {
"created" : "created",
"photo_url_sub" : "value",
"account_emails" : "profile.emails",
"account_verified_email" : "profiles.verifiedEmail",
"public_display" : "display",
"name" : "displayName",
"email" : "email",
"email_verified" : "emailVerified",
"public_profile_key" : "displayName",
"email" : "email",
"password" : "password",
"identifier" : "profiles.identifier",
"photo_plural" : "photos",
"accounts_plural" : "profiles"
}
},
"name" : "registration flow",
"authProfileData": [ "name", "verifiedEmail", "identifier" ],
"computedFields" : {
"lastLogin" : {
"when" : ["socialSignIn",
"socialRegistration",
"thinSocialRegistration",
"traditionalRegistration",
"traditionalSignin"
],
"compute" : "dateTime.now",
"schemaId" : "lastLogin"
}
},
"engageMapping" : {
"accessCredentials" : {
"plural" : "profiles",
"origin" : "accessCredentials",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin",
"engageUpdate"
]
},
"friends" : {
"plural" : "profiles",
"origin" : "friends",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"following" : {
"plural" : "profiles",
"origin" : "following",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"followers" : {
"plural" : "profiles",
"origin" : "followers",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"domain" : {
"plural" : "profiles",
"origin" : "profile.identifier",
"process" : "domainFromIdentifier",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"profile" : {
"plural" : "profiles",
"origin" : "merged_poco",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin",
"engageUpdate"
]
},
"identifier" : {
"plural" : "profiles",
"origin" : "profile.identifier",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"verifiedEmail" : {
"plural" : "profiles",
"origin" : "profile.verifiedEmail",
"when" : [
"thinSocialRegistration",
"socialRegistration",
"addSignin"
]
},
"email" : {
"origin" : "profile.verifiedEmail",
"when" : [
"thinSocialRegistration",
"socialRegistration"
]
},
"photos" : {
"origin" : "merged_poco.photos",
"process" : "normalizeProfilePhoto",
"when" : [
"thinSocialRegistration",
"socialRegistration"
]
}
},
"translations" : {
"en-US" : {}
},
"userData": [ "email", "displayName"]
}
<!DOCTYPE html>
<html>
<head>
<title>GreenMercury</title>
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/twitter-bootstrap-static/bootstrap.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/twitter-bootstrap-static/sprites.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/bootstrap_and_overrides.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/index.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/janrain.css?body=1" media="all" rel="stylesheet" />
<script data-turbolinks-track="true" src="/assets/jquery.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/jquery_ujs.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-transition.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-alert.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-modal.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-dropdown.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-scrollspy.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-tab.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-tooltip.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-popover.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-button.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-collapse.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-carousel.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-typeahead.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-affix.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/twitter/bootstrap.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/turbolinks.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/janrain.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/index.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/application.js?body=1"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="3NinbbNgx1rIposQCQWmK991Hs9C6LufrFt15AiYgm4=" name="csrf-token" />
</head>
<body>
<header>
<div class="row-fluid">
<div class="span8"></div>
<div class="span2">
</div>
<div class="span2">
<button class="btn btn-primary disabled capture_modal_open" id='startSignInButton'>Log In</button>
</div>
</div>
</header>
<div style="display:none;" id="signIn">
<h1>Sign Up / Sign In</h1>
<h2>With your existing account from...</h2>
{* loginWidget *} <br />
<h2>With a traditional account...</h2>
{* #userInformationForm *}
{* traditionalSignIn_emailAddress *}
{* traditionalSignIn_password *}
{* traditionalSignIn_signInButton *}{* traditionalSignIn_createButton *}
{* /userInformationForm *}
</div>
<div style="display:none;" id="returnSocial">
<h1>Sign In</h1>
<h2>Welcome Back, {* welcomeName *}!</h2>
{* loginWidget *}
<a href="#" data-cancelcapturereturnexperience="true">Use another account</a>
</div>
<div style="display:none;" id="returnTraditional">
<h1>Sign In</h1>
<h2>Welcome back, {* displayNameStorageData *}!</h2>
{* #userInformationForm *}
{* traditionalSignIn_emailAddress *}
{* traditionalSignIn_password *}
{* traditionalSignIn_signInButton *}
{* /userInformationForm *}
<a href="#" data-cancelcapturereturnexperience="true">Use another account</a>
</div>
<div style="display:none;" id="socialRegistration">
<h1>Almost done!</h1>
<h2>Please confirm the information below before signing in.</h2>
{* #SocialRegistrationForm *}
{* SocialRegistration_emailAddress *}
{* SocialRegistration_displayName *}
{* backButton *}
{* signinButton *}
{* /socialRegistrationForm *}
</div>
<div style="display:none;" id="registrationNewVerification">
<h1>Thank you for registering!</h1>
<p>We have sent a confirmation email to {* emailAddressData *}. Please check your email and click on the link to activate your account.</p>
<a href="#" onclick="janrain.capture.ui.modal.close()">close</a>
</div>
<div style="display:none;" id="traditionalRegistration">
<h1>Almost done!</h1>
<p>Please confirm the information below before signing in. already have an account? <a href="#" data-capturescreen="signin">sign in.</a> </p>
{* #registrationForm *}
{* traditionalRegistration_emailAddress *}
{* traditionalRegistration_password *}
{* traditionalRegistration_passwordConfirm *}
{* traditionalRegistration_displayName *}
{* backButton *}
{* createAccountButton *}
{* /registrationForm *}
</div>
<div style="display:none;" id="forgotPassword">
<h1>Create a new password</h1>
<h2>We'll send you a link to create a new password.</h2>
{* #forgotPasswordForm *}
{* traditionalSignIn_emailAddress *}
{* backButton *}
{* forgotPassword_sendButton *}
{* /forgotPasswordForm *}
</div>
<div style="display:none;" id="forgotPasswordSuccess">
<h1>Create a new password</h1>
<p>We've sent an email with instructions to create a new password. your existing password has not been changed.</p>
<a href="#" onclick="janrain.capture.ui.modal.close()">close</a>
</div>
<div style="display:none;" id="mergeAccounts">
{* mergeAccounts *}
</div>
<div style="display:none;" id="traditionalAuthenticateMerge">
<h1>Sign in to complete account merge</h1>
{* #tradAuthenticateMergeForm *}
{* traditionalSignIn_emailAddress *}
{* mergePassword *}
{* backButton *}
{* signInButton *}
{* /tradAuthenticateMergeForm *}
</div>
<article>
<div class="text-center">
<a href="/"><img alt="Codescouts" src="/assets/codescouts.png" /></a>
</div>
</article>
<div class="container">
<div class="row-fluid">
<article class="text-center">
<h1><span class="green">Green</span> <span class="mercury">Mercury</span></h1>
</article>
</div>
</div>
<script>
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {};
if (typeof window.janrain.settings.capture !== 'object') window.janrain.settings.capture = {};
janrain.settings.appUrl = 'https://codescouts-dev.rpxnow.com';
janrain.settings.capture.redirectUri = 'https://codescouts-dev.janraincapture.com';
janrain.settings.capture.appId = 'dtdggxejjsvuhvfeqy59gn5dr2';
janrain.settings.capture.clientId = 'b7ceaax84qmqch6ampjugwzscf7zyubq';
janrain.settings.capture.captureServer = 'https://codescouts-dev.janraincapture.com';
janrain.settings.capture.flowVersion = 'bfd0bf80-d426-47ab-9833-69f804b1c9d1';
janrain.settings.capture.flowName = 'signinFlow';
</script>
</body>
</html>
(function() {
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {};
if (typeof window.janrain.settings.capture !== 'object') window.janrain.settings.capture = {};
janrain.settings.capture.recaptchaPublicKey = '6LeVKb4SAAAAAGv-hg5i6gtiOV4XrLuCDsJOnYoP';
janrain.settings.capture.responseType = 'token';
janrain.settings.capture.transactionTimeout = 100;
janrain.settings.capture.stylesheets = [];
janrain.settings.capture.mobileStylesheets = [];
janrain.settings.capture.keepProfileCookieAfterLogout = true;
janrain.settings.capture.setProfileCookie = true;
janrain.settings.type = 'embed';
janrain.settings.fontFamily = 'Helvetica, Lucida Grande, Verdana, sans-serif';
janrain.settings.tokenUrl = '';
janrain.settings.tokenAction = 'event';
janrain.settings.format = 'one column';
janrain.settings.providers = ['facebook','google','twitter'];
janrain.settings.providersPerPage = 4;
janrain.settings.actionText = ' ';
janrain.settings.width = 300;
janrain.settings.borderColor = '#ffffff';
janrain.settings.backgroundColor = '#ffffff';
janrain.settings.language = 'en';
janrain.settings.capture.modalBorderOpacity = 1;
janrain.settings.capture.modalBorderWidth = 5;
janrain.settings.capture.modalBorderRadius = 5;
janrain.settings.capture.modalCloseHtml = '<span class="janrain-icon-16 janrain-icon-ex2"></span>';
janrain.settings.capture.modalBorderColor = '#7AB433';
janrain.settings.capture.noModalBorderInlineCss = true;
janrain.settings.packages = ['login', 'capture'];
var e = document.createElement('script');
e.type = 'text/javascript';
e.id = 'janrainAuthWidget';
e.src = 'http://widget-cdn.rpxnow.com/load/codescouts-dev';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(e, s);
})();
$(document).ready(function() {
janrain.ready = true;
});
function janrainCaptureWidgetOnLoad() {
janrain.capture.ui.start();
$('#startSignInButton').removeClass('disabled');
var acquireSession = function(result) {
var url = '/session.json';
$.ajax(url, {
type: "POST",
data: {access_token: result.accessToken},
success: function(data, status, jqXHR) {
window.location.reload(true);
},
error: function(jqXHR, status, errorThrown) {
alert(errorThrown);
}
});
};
janrain.events.onCaptureLoginSuccess.addHandler(acquireSession);
}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment