Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Obsolete code in snowman left sidebar tutorial #151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/sidebar_left/snowman/snowman_sidebar_left.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# "Left Sidebar": Snowman (v1.3.0)
# "Left Sidebar": Snowman (v2.0.2)

## Summary

Expand All @@ -25,18 +25,18 @@ Left Sidebar in Snowman
*/
$(document.createElement('div'))
.attr('id', 'sidebar')
.insertBefore('#passage');
.insertBefore('tw-passage');

/*
Monitor for the event that is triggered after the current Passage has been shown.
*/
$(window).on('showpassage:after', function () {
$(window).on('sm.passage.shown', function () {
$('#sidebar').html(window.story.render("Sidebar"));
});


:: UserStylesheet[stylesheet]
#passage {
tw-passage {
margin-left: 20%;
}

Expand Down
Loading