mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-06-01 18:22:17 +00:00
Avoid having to embed confetti in the final step
This commit is contained in:
@@ -31,7 +31,15 @@ text: longer description of the tour
|
||||
\end
|
||||
|
||||
\function tour-is-not-first-step()
|
||||
[all[shadows+tiddlers]tag[$:/tags/Tour/IntroductionToTiddlyWiki]before{$:/state/tour/step}count[]compare:number:gt[0]]
|
||||
[all[shadows+tiddlers]tag<tour-current-tag>before{$:/state/tour/step}count[]compare:number:gt[0]]
|
||||
\end
|
||||
|
||||
\function tour-is-last-step()
|
||||
[all[shadows+tiddlers]tag<tour-current-tag>after{$:/state/tour/step}count[]compare:number:eq[0]]
|
||||
\end
|
||||
|
||||
\function tour-is-not-last-step()
|
||||
[all[shadows+tiddlers]tag<tour-current-tag>after{$:/state/tour/step}count[]compare:number:gt[0]]
|
||||
\end
|
||||
|
||||
\procedure tour-initialise-current-tour-step()
|
||||
|
||||
@@ -6,16 +6,26 @@ tags: $:/tags/PageTemplate
|
||||
\procedure tour-buttons()
|
||||
\procedure tv-action-refresh-policy() always
|
||||
<div class="tc-tour-panel-navigation">
|
||||
<$list filter="[function[tour-is-not-first-step]]" variable="ignore">
|
||||
<$button class="tc-btn-big-green" style="background-color: red;">
|
||||
<<tour-previous-step>>
|
||||
back
|
||||
</$button>
|
||||
</$list>
|
||||
<$button class="tc-btn-big-green" style="background-color: purple;">
|
||||
<<tour-next-step>>
|
||||
next
|
||||
</$button>
|
||||
<$list filter="[function[tour-is-not-first-step]]" variable="ignore">
|
||||
<$button class="tc-btn-big-green" style="background-color: red;">
|
||||
<<tour-previous-step>>
|
||||
back
|
||||
</$button>
|
||||
</$list>
|
||||
<$list filter="[function[tour-is-not-last-step]]" variable="ignore">
|
||||
<$button class="tc-btn-big-green" style="background-color: purple;">
|
||||
<<tour-next-step>>
|
||||
next
|
||||
</$button>
|
||||
</$list>
|
||||
<$list filter="[function[tour-is-last-step]]" variable="ignore">
|
||||
<$confetti/>
|
||||
<$confetti delay=100/>
|
||||
<$confetti delay=200/>
|
||||
<$confetti delay=300/>
|
||||
<$confetti delay=400/>
|
||||
<$confetti delay=500/>
|
||||
</$list>
|
||||
</div>
|
||||
\end
|
||||
|
||||
|
||||
@@ -3,13 +3,6 @@ tags: $:/tags/Tour/IntroductionToTiddlyWiki
|
||||
|
||||
! Congratulations
|
||||
|
||||
<$confetti/>
|
||||
<$confetti delay=100/>
|
||||
<$confetti delay=200/>
|
||||
<$confetti delay=300/>
|
||||
<$confetti delay=400/>
|
||||
<$confetti delay=500/>
|
||||
|
||||
You have completed the tour.
|
||||
|
||||
You can choose to take another tour:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/tour/using-tags/finished
|
||||
tags: $:/tags/Tour/UsingTags
|
||||
|
||||
! Congratulations
|
||||
@@ -1,2 +1,2 @@
|
||||
title: $:/tags/Tour/UsingTags
|
||||
list: $:/plugins/tiddlywiki/tour/using-tags/welcome
|
||||
list: $:/plugins/tiddlywiki/tour/using-tags/welcome $:/plugins/tiddlywiki/tour/using-tags/finished
|
||||
|
||||
Reference in New Issue
Block a user