From 7fc2040d8026e49dcb905a729b84bdfa5a8d82aa Mon Sep 17 00:00:00 2001 From: Christoph Massmann Date: Thu, 23 Mar 2023 18:34:10 +0100 Subject: [PATCH] remove Prototype dependency --- js/hackathon/HoneySpam/honeyspam.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/hackathon/HoneySpam/honeyspam.js b/js/hackathon/HoneySpam/honeyspam.js index 15f43d5..3900f5b 100644 --- a/js/hackathon/HoneySpam/honeyspam.js +++ b/js/hackathon/HoneySpam/honeyspam.js @@ -23,9 +23,6 @@ * @link http://www.magento-hackathon.de/ */ -document.observe('dom:loaded', function () { - var mhhsInput = $$('.mhhs-input'); - if (mhhsInput.length > 0) { - mhhsInput.each(Element.hide); - } +document.addEventListener('DOMContentLoaded', function(event) { + document.querySelectorAll('.mhhs-input').forEach(e => e.style.display = 'none'); });