From c5c3505cbeaae832c0bc42c0583d77fc2bff8b37 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 23 Nov 2024 09:37:00 +0200 Subject: Refactored menu with ak-generator, fixed mobile view --- src/js/arching-kaos-generator.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/js/arching-kaos-generator.js') diff --git a/src/js/arching-kaos-generator.js b/src/js/arching-kaos-generator.js index 67ab351..9c80954 100644 --- a/src/js/arching-kaos-generator.js +++ b/src/js/arching-kaos-generator.js @@ -30,6 +30,7 @@ function makeElement(obj, attachTo) if ( obj.src !== undefined ) temp.src = obj.src; if ( obj.as !== undefined ) temp.as = obj.as; if ( obj.target !== undefined ) temp.target = obj.target; + if ( obj.onclick !== undefined ) temp.setAttribute("onclick", obj.onclick); if ( obj.alt !== undefined ) temp.alt = obj.alt; if ( obj.charset !== undefined ) temp.charset = obj.charset; if ( obj.value !== undefined ) temp.value = obj.value; -- cgit v1.2.3