This program is a chaotic interpretation of a weather display. Instead of a conventional layout, where weather information is neatly organized, this program embraces chaos by animating text boxes that display the current time and temperature.
-
Dynamic Animation: Text boxes representing weather information jump from the corner of the page and then slide across the bottom in a chaotic manner.
-
Real-Time Weather: Each text box displays the current time and temperature in Celsius.
The program is built using HTML, CSS, and JavaScript. Here's how it operates:
-
HTML Structure: The main container holds multiple text boxes, each representing a weather display.
-
CSS Styling: Text boxes are styled to have a fixed size and background color.
-
JavaScript Animation: Upon loading, the program initializes velocities for each text box and continuously updates their positions based on simulated gravity and friction. The text boxes bounce off the edges of the window to create chaotic movement.
To run the program:
- Ensure you have a modern web browser installed.
- Save the provided HTML, CSS, and JavaScript code into separate files (
index.html
,styles.css
, andscript.js
respectively). - Open
index.html
in your web browser.
This program should work in most modern web browsers that support HTML5, CSS3, and JavaScript.
This project is intended for demonstration and entertainment purposes only. It does not provide accurate weather information and is purely a chaotic representation of weather display.
Feel free to experiment with the code and customize it to your liking. Embrace the chaos!
We also experimented with a more structured approach using TypeScript, React, and Node.js to create a dynamic website with chaotic features.
-
Weather Display: The weather is displayed in fixed boxes using React components.
-
Chaotic Mouse Trail: Whenever the mouse hovers over the page, it leaves a trail of animated circles, adding a chaotic element to the interface.
-
TypeScript: To add static typing to JavaScript and enhance code quality.
-
React: A JavaScript library for building user interfaces, used for creating dynamic components.
-
Node.js: A JavaScript runtime used for server-side scripting and managing dependencies.
- Ensure you have Node.js installed on your system.
- Clone the repository containing the project files.
- Navigate to the project directory in your terminal.
- Install dependencies using
npm install
. - Start the development server using
npm start
. - Open your web browser and navigate to the provided localhost address.
This prototype should work across modern web browsers and platforms, leveraging the capabilities of React and Node.js for a seamless user experience.
This prototype is a work in progress and may require further development and refinement. Feel free to contribute and explore different chaotic features!