mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
69a0c46447
Now the story macro manages the story element sequence, while the navigator macro listens for the navigation events, and modifies the story tiddler as required. Also introduces a history tiddler that retains the history stack so that we can animate navigation properly (as distinct from animating the addition and removal of story elements). Note that the zoomin storyview isn't quite finished, but this is a stable point to commit these changes.
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
title: $:/templates/PageTemplate
|
|
|
|
<<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
|
|
|
|
{{navigation-panel{
|
|
<<chooser><
|
|
<<list all>>
|
|
>>
|
|
}}}
|
|
<<zoomer>>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
{{nav{
|
|
|
|
* HelloThere
|
|
* [[Introduction]]
|
|
* [[Docs]]
|
|
*{{divider-vertical}}
|
|
|
|
{{btn btn-danger{
|
|
<<button popup:ViewDropDownState><View <span class="caret"></span>>>
|
|
}}}
|
|
|
|
}}}
|
|
|
|
<<linkcatcher store:[[$:/CurrentView]]><
|
|
<<reveal state:ViewDropDownState type:popup position:below><
|
|
<div class="open">
|
|
{{dropdown-menu tw-suppress-missing-tiddlylink{
|
|
* <<link to:classic>< <<hide tiddler:[[$:/CurrentView]] notequal:classic>< <span class="tw-ticked-menu-item"></span> >> Classic>>
|
|
* <<link to:sideways>< <<hide tiddler:[[$:/CurrentView]] notequal:sideways>< <span class="tw-ticked-menu-item"></span> >> Sideways>>
|
|
* <<link to:zoomin>< <<hide tiddler:[[$:/CurrentView]] notequal:zoomin>< <span class="tw-ticked-menu-item"></span> >> Zoomin>>
|
|
}}}
|
|
</div>
|
|
>>
|
|
>>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<<story story:"$:/StoryTiddlers" history:"$:/History" storyviewTiddler:[[$:/CurrentView]] storyview:classic >>
|
|
</div>
|
|
|
|
>>
|
|
|