Skip to content

Commit

Permalink
change description, add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mjiang108 committed Dec 11, 2020
1 parent 016a945 commit f7842cb
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
Binary file added icons/icons8-wind-brightblue-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "ZoomCloser",
"version": "1.0",
"description": "Close those pesky Zoom tabs!",
"name": "Poof",
"version": "1.0.0",
"description": "Make your unnecessary tabs go POOF!",
"background": {
"scripts": [
"src/background.js"
Expand All @@ -15,7 +15,11 @@
{
"matches": ["<all_urls>"],
"js": ["src/content.js"],
"css": ["src/styles.css"]
"css": ["src/options.css"]
}
]
],
"icons": {
"96": "icons/icons8-wind-brightblue-96.png"
},
"options_page": "src/options.html"
}
9 changes: 9 additions & 0 deletions src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head><title>My Test Extension Options</title></head>
<body>

<h1>HELLO</h1>
Favorite color:
<select id="color">
<option value="red">red</option>
Expand All @@ -16,6 +17,14 @@
I like colors.
</label>

<form>
<label>Enter the URL you want to poof</label>
<input type ='text' name='url' id='url'/>
<input type = 'submit' name='btn' value='Add' id='add-btn'/>
</form>



<div id="status"></div>
<button id="save">Save</button>

Expand Down
24 changes: 24 additions & 0 deletions src/options.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// SAVE OPTIONS
function save_options(e) {
console.log('omg hello');
console.log(e);

// var color = document.getElementById('color').value;
// var likesColor = document.getElementById('like').checked;
// // grab value of text field


// chrome.storage.sync.set({
// favoriteColor: color,
// likesColor: likesColor
// }, function() {
// // Update status to let user know options were saved.
// var status = document.getElementById('status');
// status.textContent = 'Options saved.';
// setTimeout(function() {
// status.textContent = '';
// }, 750);
// });
}

document.getElementById('add-btn').addEventListener('click', save_options);

0 comments on commit f7842cb

Please sign in to comment.