Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

Accessing Passage Contents Via JavaScript in Sugarcane

$
0
0
I'm not sure if this is possible, but I've been playing around with adding a sidebar to the right of my passage through appending a div element, and it seems to work fine.
$(document.body).append('<div id="rightSidebar">/*Contents here*/</div>');

While I could probably just write HTML in there, I'd like to be able to add to it using passages just for ease of use. I'm still a massive novice at this stuff, so if it's impossible that's fine, just thought I'd ask. Thanks again everyone :)

Viewing all articles
Browse latest Browse all 3830

Latest Images

Trending Articles



Latest Images