fix: update copy and add spacing
This commit is contained in:
committed by
mrugesh mohapatra
parent
8e79a48b29
commit
ab682e08ec
@@ -11,7 +11,9 @@ block content
|
|||||||
#accept-privacy-terms
|
#accept-privacy-terms
|
||||||
.row
|
.row
|
||||||
.text-center
|
.text-center
|
||||||
h3 Please review our privacy policy and the terms of service.
|
br
|
||||||
|
br
|
||||||
|
h3 Please review our updated privacy policy and the terms of service.
|
||||||
br
|
br
|
||||||
.row
|
.row
|
||||||
.col-sm-6.col-sm-offset-3
|
.col-sm-6.col-sm-offset-3
|
||||||
@@ -22,7 +24,7 @@ block content
|
|||||||
input(id='terms', name='privacy', type='checkbox')
|
input(id='terms', name='privacy', type='checkbox')
|
||||||
span.cr
|
span.cr
|
||||||
i.cr-icon.fa.fa-check
|
i.cr-icon.fa.fa-check
|
||||||
| I accept the
|
| I accept the
|
||||||
a(href='https://www.freecodecamp.org/terms' target='_blank') terms of service
|
a(href='https://www.freecodecamp.org/terms' target='_blank') terms of service
|
||||||
| (required).
|
| (required).
|
||||||
.checkbox
|
.checkbox
|
||||||
@@ -30,7 +32,7 @@ block content
|
|||||||
input(id='privacy', name='privacy', type='checkbox')
|
input(id='privacy', name='privacy', type='checkbox')
|
||||||
span.cr
|
span.cr
|
||||||
i.cr-icon.fa.fa-check
|
i.cr-icon.fa.fa-check
|
||||||
| I accept the
|
| I accept the
|
||||||
a(href='https://www.freecodecamp.org/privacy' target='_blank') privacy policy
|
a(href='https://www.freecodecamp.org/privacy' target='_blank') privacy policy
|
||||||
| (required).
|
| (required).
|
||||||
.checkbox
|
.checkbox
|
||||||
@@ -38,7 +40,7 @@ block content
|
|||||||
input(id='quincyemails', name='quincyemails', type='checkbox')
|
input(id='quincyemails', name='quincyemails', type='checkbox')
|
||||||
span.cr
|
span.cr
|
||||||
i.cr-icon.fa.fa-check
|
i.cr-icon.fa.fa-check
|
||||||
| I want weekly emails from Quincy (freeCodeCamp.org's founder)
|
| I want weekly emails from Quincy (freeCodeCamp.org's founder).
|
||||||
.button-spacer
|
.button-spacer
|
||||||
button.btn.btn-primary.btn-lg.btn-block(id='submit-button', type='submit')
|
button.btn.btn-primary.btn-lg.btn-block(id='submit-button', type='submit')
|
||||||
.row
|
.row
|
||||||
@@ -46,10 +48,10 @@ block content
|
|||||||
a.btn.btn-primary.btn-lg.btn-block(id='continue-button', href='/', style='display: none;')
|
a.btn.btn-primary.btn-lg.btn-block(id='continue-button', href='/', style='display: none;')
|
||||||
| Continue to freeCodeCamp
|
| Continue to freeCodeCamp
|
||||||
|
|
||||||
include ../homePartials/scripts
|
include ../homePartials/scripts
|
||||||
script.
|
script.
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var checkedBoxCount = 0;
|
var checkedBoxCount = 0;
|
||||||
function disableContinueButtonForAgreement(isLaunched) {
|
function disableContinueButtonForAgreement(isLaunched) {
|
||||||
if (isLaunched) {
|
if (isLaunched) {
|
||||||
@@ -57,7 +59,7 @@ block content
|
|||||||
'<span style="color:#E0E0E0;">Submit<\/span>');
|
'<span style="color:#E0E0E0;">Submit<\/span>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isLaunched && checkedBoxCount === 2){
|
if (!isLaunched && checkedBoxCount === 2){
|
||||||
$('#submit-button').prop('disabled', false).html(
|
$('#submit-button').prop('disabled', false).html(
|
||||||
'<span>Submit<\/span>');
|
'<span>Submit<\/span>');
|
||||||
@@ -84,7 +86,7 @@ block content
|
|||||||
disableContinueButtonForAgreement(true);
|
disableContinueButtonForAgreement(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('form').submit(function(event){
|
$('form').submit(function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$('#flash-board').hide();
|
$('#flash-board').hide();
|
||||||
@@ -115,8 +117,8 @@ block content
|
|||||||
.removeClass('alert-info')
|
.removeClass('alert-info')
|
||||||
.addClass('alert-success')
|
.addClass('alert-success')
|
||||||
.fadeIn();
|
.fadeIn();
|
||||||
|
|
||||||
$('#accept-privacy-terms').hide();
|
$('#accept-privacy-terms').hide();
|
||||||
$('#continue-button').show();
|
$('#continue-button').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user