from js import console, document
import datetime
def process_application(full_name, email, phone, position, department, cover_letter):
# In a real application, you would save to a database or file
# Here we'll just log and show a success message
timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
console.log(f"New Application Received at {timestamp}:")
console.log(f"Name: {full_name}")
console.log(f"Email: {email}")
console.log(f"Phone: {phone}")
console.log(f"Position: {position}")
console.log(f"Department: {department}")
console.log(f"Cover Letter: {cover_letter[:50]}...") # Log first 50 chars
# Show success message
document.getElementById("successMessage").style.display = "block"
document.getElementById("jobForm").style.display = "none"
return True
0 Comments