Skip to content

Commit

Permalink
Adding a Clear Page button to the VN Hook Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Garethp committed Jul 26, 2020
1 parent bb4af41 commit 1e995e7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### Version 1.3.2
* Adding a Clear Page button in the VN Hook Page

### Version 1.3.1
* Fixing broken Sanseido Mode

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"author": "Gareth Parker",
"name": "RikaiRebuilt",
"version": "1.3.1",
"version": "1.3.2",

"applications": {
"gecko": {
Expand Down
5 changes: 5 additions & 0 deletions options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,11 @@ <h4><b>Keymap</b></h4>
</ul>
</div>
<div class="tab-pane fade" id="changelog" role="tabpanel" aria-labelledby="changelog-tab">
<h4>Version 1.3.2</h4>
<ul>
<li>Adding a "Clear Page" button in the VN Hook section</li>
</ul>

<h4>Version 1.3.1</h4>
<ul>
<li>Fixing broken Sanseido Mode. Sorry for the long wait on this</li>
Expand Down
4 changes: 4 additions & 0 deletions src/vn-hook/clipboardCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,9 @@ const addItem = (text: string) => {

export default () => {
updateTimer(defaultConfig.vnHookClipboardFrequency);

$("#clear-page").on('click', () => {
document.getElementById('vn-content').innerHTML = '';
})
}

6 changes: 6 additions & 0 deletions vn-hook/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
Options
</a>
</li>

<li class="nav-item">
<a id="clear-page" href="#">
Clear Page
</a>
</li>
</ul>

<div class="tab-content card card-body" id="myTabContent">
Expand Down
5 changes: 5 additions & 0 deletions vn-hook/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ pre {
#vn-content > div {
margin-bottom: 15px;
}

#clear-page {
padding: .5rem 1rem;
display: block;
}

0 comments on commit 1e995e7

Please sign in to comment.