Skip to content

Commit 830910f

Browse files
committed
Expand Mode
1 parent de38ef9 commit 830910f

File tree

12 files changed

+466
-211
lines changed

12 files changed

+466
-211
lines changed

bundle.js

Lines changed: 220 additions & 103 deletions
Large diffs are not rendered by default.

help/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1>KJS</h1>
55
<p>ALL the power belongs to My King! The glory is all His.</p>
66
<p>"Heaven and earth shall pass away, but my words shall not pass away."</p>
77
<h1>Version</h1>
8-
<p>2022.04.14</p>
8+
<p>2022.08.07</p>
99
<h1>Contact</h1>
1010
<p>Questions or comments?</p>
1111
<a href="mailto:github.1john419@gmail.com?subject=KJS%20Feedback" target="_blank">Send email</a>

help/bookmark.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ <h3>Sorting</h3>
3131
</svg>
3232
</div>
3333
</div>
34+
<h3>Expand Mode</h3>
35+
<p>This toggle button in the lower toolbar sets the Expand Mode:</p>
36+
<div class="entry entry--icon">
37+
<div class="icon-description">Expand Mode</div>
38+
<div class="icon-holder">
39+
<svg class="icon-svg">
40+
<title>Expand Mode</title>
41+
<use class="icon-holder__use icon-holder__use--strong-mode" xlink:href="icons.svg#expand-mode"></use>
42+
</svg>
43+
</div>
44+
</div>
45+
<br>
46+
<p>When Expand Mode is on, verse text for each bookmark is displayed</p>
3447
<h3>Strong Mode</h3>
3548
<p>This toggle button in the lower toolbar sets the Strong Mode:</p>
3649
<div class="entry entry--icon">

icons.svg

Lines changed: 3 additions & 0 deletions
Loading

js/Controller/BookmarkController.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class BookmarkController {
3030
}
3131
}
3232

33+
expandModeToggle() {
34+
queue.publish('bookmark.expand-mode.toggle', null);
35+
}
36+
3337
exportPane() {
3438
queue.publish('bookmark.task.change', 'bookmark-export');
3539
}
@@ -136,10 +140,6 @@ class BookmarkController {
136140
queue.publish('bookmark.up', verseIdx);
137141
}
138142

139-
modeToggle() {
140-
queue.publish('bookmark.strong-mode.toggle', null);
141-
}
142-
143143
moveCopyCopy(copyPkg) {
144144
queue.publish('bookmark.copy', copyPkg);
145145
}
@@ -169,6 +169,10 @@ class BookmarkController {
169169
this.sidebar = sidebar;
170170
}
171171

172+
strongModeToggle() {
173+
queue.publish('bookmark.strong-mode.toggle', null);
174+
}
175+
172176
strongSelect(verseIdx) {
173177
this.strongSelectPending = true;
174178
queue.publish('strong.verse.change', verseIdx);
@@ -236,6 +240,9 @@ class BookmarkController {
236240
queue.subscribe('bookmark-list.down', (verseIdx) => {
237241
this.listDown(verseIdx);
238242
});
243+
queue.subscribe('bookmark-list.expand-mode.click', () => {
244+
this.expandModeToggle();
245+
});
239246
queue.subscribe('bookmark-list.move-copy', (verseIdx) => {
240247
this.moveCopyPane(verseIdx);
241248
});
@@ -249,7 +256,7 @@ class BookmarkController {
249256
this.listSortInvert();
250257
});
251258
queue.subscribe('bookmark-list.strong-mode.click', () => {
252-
this.modeToggle();
259+
this.strongModeToggle();
253260
});
254261
queue.subscribe('bookmark-list.strong-select', (verseIdx) => {
255262
this.strongSelect(verseIdx);

0 commit comments

Comments
 (0)