Skip to content

Commit

Permalink
fixed merge conflicts due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TurnerRiley committed Jul 19, 2021
1 parent 7c20a9e commit 5b34032
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ $(document).ready(() => {
setUserType('student');
});
// Keep if sign-up user type experiment favors variant (end)
// Keep if sign-up user type experiment favors original (start)
// Keep if sign-up user type experiment favors original (just the below function))
$('#user_user_type').change(function() {
var value = $(this).val();
setUserType(value);
});
// Keep if sign-up user type experiment favors original (end)

function getUserType() {
return $('#user_user_type').val();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,20 @@
:javascript
const teacherButton = document.getElementById('select-user-type-teacher');
const studentButton = document.getElementById('select-user-type-student');

// Selects 'Teacher' as the user type
function selectUserTypeTeacher() {
selectUserType('selectUserTypeTeacher');
// Style the selected button
teacherButton.classList.add('select-user-type-button-selected');
studentButton.classList.remove('select-user-type-button-selected');
}

// Selects 'Student' as the user type
function selectUserTypeStudent() {
selectUserType('selectUserTypeStudent');
// Style the selected button
studentButton.classList.add('select-user-type-button-selected');
teacherButton.classList.remove('select-user-type-button-selected');
}

// Selects user type by creating and dispatching an event with the given name.
// (Listener for these events is located in _finish_sign_up.js)
function selectUserType(selectUserEventName) {
Expand Down

0 comments on commit 5b34032

Please sign in to comment.