Skip to content

Commit 28fa772

Browse files
committed
Add initial Chrome Extension files with working popup
1 parent 0f622c5 commit 28fa772

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

icon.png

3.21 KB
Loading

manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "LeetCode Helper",
4+
"version": "1.0",
5+
"description": "Get AI-powered help while solving LeetCode problems.",
6+
"permissions": [],
7+
"action": {
8+
"default_popup": "popup.html",
9+
"default_icon": {
10+
"128": "icon.png"
11+
}
12+
}
13+
}

popup.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>LeetCode Helper</title>
5+
<style>
6+
body {
7+
font-family: Arial, sans-serif;
8+
padding: 10px;
9+
width: 250px;
10+
}
11+
#getHelp {
12+
padding: 10px;
13+
background: #4CAF50;
14+
color: white;
15+
border: none;
16+
width: 100%;
17+
border-radius: 5px;
18+
cursor: pointer;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
<h3>Need Help with LeetCode?</h3>
24+
<button id="getHelp">Get Step-by-Step Help</button>
25+
26+
<script src="popup.js"></script>
27+
</body>
28+
</html>

popup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
document.getElementById("getHelp").addEventListener("click", () => {
2+
alert("This will soon talk to your Django backend!");
3+
});

0 commit comments

Comments
 (0)