forro

Forro is a end-to-end encrypted contract form based on PGP.
git clone git://git.defalsify.org/forro.git
Log | Files | Refs | LICENSE

commit 3901faa81b9dfb8928d1b8537ebe527fdef1ffa9
parent 7baeb05ee0c1dd805e949e0454a523794ba5243b
Author: lash <dev@holbrook.no>
Date:   Tue, 20 Sep 2022 13:57:47 +0000

Separate help buffer from help display buffer

Diffstat:
Mindex.html | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/index.html b/index.html @@ -477,6 +477,7 @@ div#helpdiv .old { x-show="USE_HELP" > <template x-data="{ + help_display_count: 3, help_contents: [], help_lastcount: 0, help_cap: 8, @@ -502,12 +503,12 @@ div#helpdiv .old { return []; } let contents = []; - let c = (this.help_crsr - this.help_count + 1); + let c = (this.help_crsr - this.help_display_count + 1); if (c < 0) { - c = this.help_count + c; + c = this.help_display_count + c; } - new_threshold = this.help_count - this.help_lastcount; - for (let i = 0; i < this.help_count; i++) { + new_threshold = this.help_display_count - this.help_lastcount; + for (let i = 0; i < this.help_display_count; i++) { c %= this.help_cap; console.log('contents ', this.help_contents, contents, this.help_crsr, c); is_old = i < new_threshold;