Skip to content

Commit

Permalink
Remove image with background functionality (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankuenzer authored Feb 13, 2024
1 parent 740897a commit 91efb3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions src/taskpane/taskpane.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ <h3>Sticker</h3>
<button class="ms-Button" id="yellow-sticker">Yellow</button>
<button class="ms-Button" id="cyan-sticker">Cyan</button><br/><br/>

<h3>Image with Background</h3>
<div class="content">
<div>
<input type="color" id="image-background-color" name="head" value="#FFFFFF" />
<label for="image-background-color">Background color</label>
</div>
<input type='file' accept='image/*' id="load-image"><br>
<button class="ms-Button" id="insert-image">Insert Image</button>
</div>

<h3>Background Options</h3>
<div class="content">
<div>
Expand Down
5 changes: 0 additions & 5 deletions src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ Office.onReady((info) => {
addBackground(selectedColor);
};
document.getElementById("remove-background").onclick = () => removeBackground();
document.getElementById("insert-image").onclick = () => {
const colorPicker = <HTMLInputElement>document.getElementById("image-background-color");
const selectedColor = colorPicker.value;
insertImageWithBackground(selectedColor);
};
document.getElementById("load-image").onchange = (event) => {
loadImageIntoLocalStorage(event.target as HTMLInputElement);
};
Expand Down

0 comments on commit 91efb3d

Please sign in to comment.