Skip to content

Commit

Permalink
🐛 v1.1.10 Minor Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Axton committed Jun 24, 2022
1 parent ff72347 commit 4dfdb6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Axtonprice, QuickBlaze
Copyright (c) 2022 axtonprice, QuickBlaze

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 5 additions & 12 deletions Public/assets/js/formContentUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ function updateFormDisplay() {
document.getElementById('submissiontextbox').innerHTML = `${window.location}view?key=${data.response}`; // Set text box to view message URL
log(`Updated 'submissiontextbox.innerHTML'`);
});
setTimeout(function () {
$('#form_submission').fadeIn('fast'); log(`Now showing 'form_submission' element`); // fade in new content
setTimeout(() => {
$('#form_submission').fadeIn('fast'); // fade in new content
log(`Now showing 'form_submission' element`);
}, 200);
}

Expand All @@ -28,11 +29,8 @@ function updateViewDisplay() {
let key = new URL(window.location).searchParams.get('key'); // Get key variable from URL; replacing PHP usage
log(`Got key variable from url -> ${key}`);

function updateViewDisplay() {
$('#form_confirmation').fadeOut('fast'); log(`No longer showing 'form_confirmation' element`); // fade out previous content
var key = new URL(window.location).searchParams.get("key"); log(`Got key variable from url -> ${key}`); // Get key variable from URL; replacing PHP usage
fetch(`dataProcessing?action=decrypt&key=${key}`).then(response => response.json()).then(data => {
if (data.response == "") {
if (!data.response) {
showSnackBar('snackbarError');
$('#form_error').fadeIn('fast'); // fade in new content
log(`Now showing 'form_error' element`);
Expand All @@ -50,11 +48,6 @@ function updateViewDisplay() {
log(`Now showing 'form_content' element`);
}, 200);
log(`Server responded with '${data.response}'`);
document.getElementById("valuetextbox").value = data.response; log(`Updated 'valuetextbox.value'`); // Set text box to decrypted message
document.getElementById("valuetextbox").innerHTML = data.response; log(`Updated 'valuetextbox.innerHTML'`); // Set text box to decrypted message
setTimeout(function () {
$('#form_content').fadeIn('fast'); log(`Now showing 'form_content' element`); // fade in new content
}, 200);
}
};
});
}

0 comments on commit 4dfdb6c

Please sign in to comment.