Skip to content

Commit

Permalink
Fix captcha issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mann47 committed Nov 28, 2024
1 parent 3a4824c commit d92ba8e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/qsm-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -1876,12 +1876,14 @@ jQuery(document).ready(function () {
mlw_code += mlw_chars.substring(rnum, rnum + 1);
}
var mlw_captchaCTX = document.getElementById('mlw_captcha').getContext('2d');
mlw_captchaCTX.font = 'normal 24px Verdana';
mlw_captchaCTX.strokeStyle = '#000000';
mlw_captchaCTX.clearRect(0, 0, 100, 50);
mlw_captchaCTX.strokeText(mlw_code, 10, 30, 70);
mlw_captchaCTX.textBaseline = 'middle';
document.getElementById('mlw_code_captcha').value = mlw_code;
mlw_captchaCTX.direction = 'rtl';
mlw_captchaCTX.font = 'normal 24px Verdana';
mlw_captchaCTX.strokeStyle = '#000000';
mlw_captchaCTX.clearRect(0, 0, 100, 50);
mlw_captchaCTX.textAlign = 'right';
mlw_captchaCTX.textBaseline = 'middle';
mlw_captchaCTX.strokeText(mlw_code, 90, 25);
document.getElementById('mlw_code_captcha').value = mlw_code;
}
});

Expand Down

0 comments on commit d92ba8e

Please sign in to comment.