add popup.js and background

This commit is contained in:
VillanCh
2024-03-20 09:35:46 +08:00
parent 76972971a4
commit ac483f9eb7
3 changed files with 74 additions and 4 deletions
+6 -3
View File
@@ -1,10 +1,13 @@
<!-- popup.html -->
<!DOCTYPE html>
<html>
<head>
<title>Popup</title>
<title>WebSocket Connector</title>
</head>
<body>
<h1>My Chrome Extension</h1>
<p>This is a sample popup.</p>
<p id="wsStatus"></p>
<input type="text" id="wsUrl" placeholder="Enter WebSocket URL">
<button id="connectBtn">Connect WebSocket</button>
<script src="popup.js"></script>
</body>
</html>