A comprehensive guide to the functions, scripts, and logic of this website ( WIP )23:26 17/05/2026 ------------------------------------------------------------------------------- 1. SYSTEM & CORE ------------------------------------------------------------------------------- [ App/Module: Window & Taskbar Management | File: js/main/taskbar.js ] +-------------------------------+-------------------------------------------+-------------------+ | Function | Description | Parameters | +-------------------------------+-------------------------------------------+-------------------+ | openWindow | Displays a window, brings it to front, | (id, icon, title) | | | and adds a taskbar button. | | +-------------------------------+-------------------------------------------+-------------------+ | closeWindow | Hides a window and removes its | (id) | | | corresponding taskbar button. | | +-------------------------------+-------------------------------------------+-------------------+ | makeWindowFocusable | Adds listeners so clicking a window | (id) | | | brings it to the foreground. | | +-------------------------------+-------------------------------------------+-------------------+ | addTaskbarButton | Dynamically creates and appends a button | (id, icon, title) | | | to the taskbar. | | +-------------------------------+-------------------------------------------+-------------------+ | removeTaskbarButton | Removes a specific button from the | (id) | | | taskbar. | | +-------------------------------+-------------------------------------------+-------------------+ | activateTaskButtonByWindow | Visually highlights the active button in | (id) | | | the taskbar. | | +-------------------------------+-------------------------------------------+-------------------+ | toggleStartMenu | Toggles the visibility of the Start Menu | None | | | with animation. | | +-------------------------------+-------------------------------------------+-------------------+ | updateClock | Updates the taskbar clock (UTC+5) every | None | | | minute. | | +-------------------------------+-------------------------------------------+-------------------+ [ App/Module: Drag and Drop | File: js/main/drag.js ] +-------------------------------+-------------------------------------------+-------------------+ | Function | Description | Parameters | +-------------------------------+-------------------------------------------+-------------------+ | drag | Initializes dragging for a window via its | (win, bar, | | | title bar. Supports touch. | canRaise) | +-------------------------------+-------------------------------------------+-------------------+ | bringToFront | Increments zIndex to bring a specific | (win) | | | element to the top. | | +-------------------------------+-------------------------------------------+-------------------+ ------------------------------------------------------------------------------- 2. APPLICATIONS ------------------------------------------------------------------------------- [ System Utilities ] +-----------------------+---------------------+-----------------------------------------------------+ | Feature/Function | File | Description | +-----------------------+---------------------+-----------------------------------------------------+ | Terminal (CMD) | js/main/cmd.js | A command-line emulator with commands like help, | | | | whoami, neofetch, and matrix mode. | +-----------------------+---------------------+-----------------------------------------------------+ | Weather Widget | js/main/weather.js | Fetches real-time weather data from weather.json | | | | and updates the UI every minute. | +-----------------------+---------------------+-----------------------------------------------------+ | System Status | js/main/status.js | Fetches PC stats (CPU, GPU, RAM, Disks) from | | | | status.json to show online/offline status. | +-----------------------+---------------------+-----------------------------------------------------+ | Moon Phase | js/main/moon.js | Uses SunCalc to calculate and display the current | | | | lunar phase and illumination. | +-----------------------+---------------------+-----------------------------------------------------+ | Media Player | js/main/player.js | Custom music player with playlist support, volume | | | | control, and seek functionality. | +-----------------------+---------------------+-----------------------------------------------------+ [ Content & Interactive Apps ] +-----------------------+---------------------+-----------------------------------------------------+ | Feature/Function | File | Description | +-----------------------+---------------------+-----------------------------------------------------+ | Microblog | js/blog/blog.js | Renders blog posts dynamically | | | | into the blog window. | +-----------------------+---------------------+-----------------------------------------------------+ | Photo Gallery | js/gallery/photos.js| Implements a popup lightbox for viewing images from | | | | the gallery. | +-----------------------+---------------------+-----------------------------------------------------+ | Guestbook | js/main/guestbook.js| Simple logic to show/hide the guestbook iframe. | +-----------------------+---------------------+-----------------------------------------------------+ | External Link Guard | js/main/error.js | Thing that intercepts external links | | | | and shows a warning window first. | +-----------------------+---------------------+-----------------------------------------------------+ ------------------------------------------------------------------------------- 3. VISUAL EFFECTS & ADVANCED FEATURES ------------------------------------------------------------------------------- [ Visual Effects ] +-------------------+-------------------+-----------------------------------------------------------+ | Feature | File | Technical Implementation | +-------------------+-------------------+-----------------------------------------------------------+ | CRT Filter | js/main/crt.js | Adds a .crt-active class and injects a dynamic | | | | .scanline element. | +-------------------+-------------------+-----------------------------------------------------------+ [ Desktop Customization ] +-------------------+-------------------+-----------------------------------------------------------+ | Function | File | Description | +-------------------+-------------------+-----------------------------------------------------------+ | setBackground | js/main/ | Changes the body background and saves the choice to | | | wallpaper.js | localStorage. | +-------------------+-------------------+-----------------------------------------------------------+ | setCursor | js/main/ | Changes the mouse cursor style and saves it to | | | wallpaper.js | localStorage. | +-------------------+-------------------+-----------------------------------------------------------+ =============================================================================== © 2026 jaryq. ===============================================================================