remove small comments

This commit is contained in:
Kfir Dayan 2023-12-18 17:09:24 +02:00
parent ea18637892
commit d676466875

View file

@ -23,7 +23,6 @@ function displayResult(result) {
if (result.hasOwnProperty('error')) {
resultContainer.append('<p class="error">' + result.error + '</p>');
} else {
// Update the text area with the modified URL
$('#url').val(result.after.replace(/&amp;/g, '&'));
}
}
@ -34,19 +33,17 @@ function displayError(error) {
resultContainer.append('<p class="error">Error: ' + error + '</p>');
}
// Function to reset the session
function resetSession() {
var resultContainer = $('#result-container');
var textArea = $('#url');
$.ajax({
type: 'POST',
url: '../server/reset_session.php', // Adjust the path accordingly
url: '../server/reset_session.php',
success: function () {
alert('Session has been reset.');
resultContainer.empty(); // Clear the error display
textArea.val(''); // Clear the text area
// You can perform additional actions after resetting the session if needed
resultContainer.empty();
textArea.val('');
},
error: function (xhr, status, error) {
console.error('Error resetting session:', error);