<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script>
<script>
window.html2canvas = html2canvas
function genPDF() {
var pdf = new jsPDF()
pdf.html(document.querySelector('body'), {
'width': 1920,
'height': 1080,
callback: function (pdf) {
pdf.save('cv-a4.pdf');
}
})
}
</script>
$('form').on('submit', function (e) {
e.preventDefault();
if($('#modalResetEmail').hasClass('valid')) {
$.ajax({
url: "/Handler.ashx?func=restrore-password",
type: "POST",
dataType: "html",
async: false,
data: { email: $('#modalResetEmail').val() },
success: function (response) {
var json = $.parseJSON(response);
if (json['success'] === 'true') {
showNotice(json['message']);
event.preventDefault();
} else {
event.preventDefault();
}
},
error: function (response) {
alert('error');
}
});
}
})
let newFinalScore,finalScore
const settingFinalScore = () => {
newFinalScore = prompt("Please set new Final Score", 100)
finalScore = newFinalScore
alert(finalScore)
}
settingFinalScore()