This JavaScript library allows you to create a "Desktop Environment" in your browser using one simple line of code.
Creates a JQDE environment.
Parameters:
name
: The name of the JQDE desktop.
Sets the background to the given color.
Parameters:
color
: The color to set as the background.
Adds an application to JQDE.
Parameters:
icon
: The path to the icon image.name
: The name of the application.content
: The HTML content to be displayed in the application.
Removes an application by its name.
Parameters:
name
: The name of the application to be removed.
Performs an exit action based on the specified type:
0
: Refreshes the page.1
: Goes back to the previous page in the browser history.2
: Closes the browser tab.
Parameters:
type
: The exit type (0, 1, or 2).