Skip to content

Commit

Permalink
Expand Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
claytoncarney committed Aug 7, 2022
1 parent de38ef9 commit 830910f
Show file tree
Hide file tree
Showing 12 changed files with 466 additions and 211 deletions.
323 changes: 220 additions & 103 deletions bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion help/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1>KJS</h1>
<p>ALL the power belongs to My King! The glory is all His.</p>
<p>"Heaven and earth shall pass away, but my words shall not pass away."</p>
<h1>Version</h1>
<p>2022.04.14</p>
<p>2022.08.07</p>
<h1>Contact</h1>
<p>Questions or comments?</p>
<a href="mailto:github.1john419@gmail.com?subject=KJS%20Feedback" target="_blank">Send email</a>
Expand Down
13 changes: 13 additions & 0 deletions help/bookmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ <h3>Sorting</h3>
</svg>
</div>
</div>
<h3>Expand Mode</h3>
<p>This toggle button in the lower toolbar sets the Expand Mode:</p>
<div class="entry entry--icon">
<div class="icon-description">Expand Mode</div>
<div class="icon-holder">
<svg class="icon-svg">
<title>Expand Mode</title>
<use class="icon-holder__use icon-holder__use--strong-mode" xlink:href="icons.svg#expand-mode"></use>
</svg>
</div>
</div>
<br>
<p>When Expand Mode is on, verse text for each bookmark is displayed</p>
<h3>Strong Mode</h3>
<p>This toggle button in the lower toolbar sets the Strong Mode:</p>
<div class="entry entry--icon">
Expand Down
3 changes: 3 additions & 0 deletions icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions js/Controller/BookmarkController.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class BookmarkController {
}
}

expandModeToggle() {
queue.publish('bookmark.expand-mode.toggle', null);
}

exportPane() {
queue.publish('bookmark.task.change', 'bookmark-export');
}
Expand Down Expand Up @@ -136,10 +140,6 @@ class BookmarkController {
queue.publish('bookmark.up', verseIdx);
}

modeToggle() {
queue.publish('bookmark.strong-mode.toggle', null);
}

moveCopyCopy(copyPkg) {
queue.publish('bookmark.copy', copyPkg);
}
Expand Down Expand Up @@ -169,6 +169,10 @@ class BookmarkController {
this.sidebar = sidebar;
}

strongModeToggle() {
queue.publish('bookmark.strong-mode.toggle', null);
}

strongSelect(verseIdx) {
this.strongSelectPending = true;
queue.publish('strong.verse.change', verseIdx);
Expand Down Expand Up @@ -236,6 +240,9 @@ class BookmarkController {
queue.subscribe('bookmark-list.down', (verseIdx) => {
this.listDown(verseIdx);
});
queue.subscribe('bookmark-list.expand-mode.click', () => {
this.expandModeToggle();
});
queue.subscribe('bookmark-list.move-copy', (verseIdx) => {
this.moveCopyPane(verseIdx);
});
Expand All @@ -249,7 +256,7 @@ class BookmarkController {
this.listSortInvert();
});
queue.subscribe('bookmark-list.strong-mode.click', () => {
this.modeToggle();
this.strongModeToggle();
});
queue.subscribe('bookmark-list.strong-select', (verseIdx) => {
this.strongSelect(verseIdx);
Expand Down
Loading

0 comments on commit 830910f

Please sign in to comment.