From 5ff77e60c7124e5ac067e9e42b5653397c26f5ef Mon Sep 17 00:00:00 2001 From: nishtha-agarwal-211 Date: Mon, 1 Jun 2026 21:50:47 +0530 Subject: [PATCH] refactor(web): modularize main.js into focused ES6 modules (#874) --- web-app/games.html | 799 ++++++++++----- web-app/index.html | 2 +- web-app/js/main.js | 1735 ++++++++++----------------------- web-app/js/modules/modal.js | 220 +++++ web-app/js/modules/search.js | 346 +++++++ web-app/js/modules/sidebar.js | 202 ++++ web-app/js/modules/theme.js | 63 ++ web-app/js/modules/utils.js | 97 ++ web-app/math.html | 667 +++++++++---- web-app/utilities.html | 559 ++++++++--- 10 files changed, 2866 insertions(+), 1824 deletions(-) create mode 100644 web-app/js/modules/modal.js create mode 100644 web-app/js/modules/search.js create mode 100644 web-app/js/modules/sidebar.js create mode 100644 web-app/js/modules/theme.js create mode 100644 web-app/js/modules/utils.js diff --git a/web-app/games.html b/web-app/games.html index 374802ef..f084d543 100644 --- a/web-app/games.html +++ b/web-app/games.html @@ -1,98 +1,134 @@ - + + + + + + + - - - - - - - - - - - - + + + + + - - - - + + + + - + Python Mini Games - Interactive Web Edition - - + + - - + + - + - + - -