$('#Fish & Chips').on('change', function () {
if ($('#Fish & Chips').is(':checked')) {
$('.Fish & Chips').css('background-color', '#3a606e;');
$('.Fish & Chips').css('color', '#fff;');
} else {
$('.Fish & Chips').css('background-color', '#fff');
$('.Fish & Chips').css('color', '#3a606e;');
}
});I have a good feeling this is more of copy-pasta code from either Copilot or ChatGPT or StackOverflow. That also explains why they handled encryption the way described in the article.
Dev: "Hey LLM, how do I pass data around in a secure way ?"
Bot: "You can encrypt the data before you send it, so that only users who have the relevant keys can read them"
Dev: "Hey LLM, it is not possible to access the data I have encrypted on the frontend"
Bot: "Here is the javascript code to decrypt the data you have passed then"