callicoder / spring-boot-websocket-chat-demo

Spring Boot WebSocket Chat Demo with SockJS fallback and STOMP protocol
https://www.callicoder.com/spring-boot-websocket-chat-example/
1.05k stars 640 forks source link

now can identify hyperlinks #17

Open Alokg252 opened 2 months ago

Alokg252 commented 2 months ago

javascript

-- used regular expressions to identify hyperlinks -- used regular expression to check if url has http or https, and if not then prepended it -- url wil open in new tab so that no need to reload index.html and chats will be preserved
-- added message content (sent url) inside anchor tag in textElement to make hyperlinks visible as usual messages

styles

-- added linkify class to style hyperlinks -- added hover and visited for

html

-- added autofocus to Username input