mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Fix terminal carousel on landing page of docs
This isn't perfect, but it is a step in the right direction. This fixes the prev button not working at all and the next button having some undesirable behavior. This seems to work for the most part, but I noticed that if I leave this open and go to a different tab in my browser, there's some strange behavior when I come back to the landing page: there are multiple outputs playing at once. This is similar to the current behavior, where clicking the next button multiple times does the same thing.
This commit is contained in:
parent
b1398dc9b2
commit
30728df2d7
2 changed files with 36 additions and 19 deletions
4
docs/_themes/jrnl/index.html
vendored
4
docs/_themes/jrnl/index.html
vendored
|
@ -24,9 +24,9 @@
|
|||
<h1>Collect your thoughts and notes <br />without leaving the command line</h1>
|
||||
</div>
|
||||
<div id="prompt">
|
||||
<div class="pleft" onlick="next(); return false;"><i class="icon left"></i></div>
|
||||
<div class="pleft" onclick="reset(); prev(); return false;"><i class="icon left"></i></div>
|
||||
<div class="terminal">$ jrnl <span id="args"></span><span id="input">today: Started writing my memoirs. On the command line. Like a boss.</span><div id="output"></div></div>
|
||||
<div class="pright" onclick="next(); return false;"><i class="icon right"></i></div>
|
||||
<div class="pright" onclick="reset(); next(); return false;"><i class="icon right"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="nav">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue