This is a simple chat forum web application built using HTML, CSS, and JavaScript. The purpose of this application is to provide users with a platform to exchange messages in a chat-like interface. The interface is designed to be user-friendly and visually appealing.
-
Chat Interface: The main chat interface is displayed in the
#chat-container
div. Messages are displayed in a vertical layout with the sender's name and message content. -
Message Input: Users can type their messages in the input field provided under the
#message-input
div. The input field has been styled for a better user experience. -
Send Message: Users can send messages by clicking the "Send" button. The
sendMessage()
function handles sending messages and appending them to the chat container. -
Blockchain Integration: This application also includes a basic implementation of a blockchain using JavaScript. Each message sent through the chat is added as a block to the blockchain. The blockchain logic ensures the integrity of the messages by validating the chain.
The CSS included in the <style>
section of the HTML document provides styling to enhance the visual appeal of the chat forum. It includes font styles, colors, spacing, and box shadows to make the interface more attractive.
- CryptoJS: This application utilizes the CryptoJS library to perform cryptographic operations for hashing data within the blockchain.
- jQuery: The jQuery library is included for DOM manipulation and event handling.
To use the chat forum, simply open the HTML file in a web browser. You can type your message in the input field and click the "Send" button to send messages. The chat interface will display the messages in real-time.
Note: This application is a basic prototype and may require further development for additional features and security enhancements.