Twine Forum
Discussions
Home
›
Search
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
use functions from javascript story
by
beafus
·
May 2015
/>onclick="responsiveVoice.speak($('
#text
').val(),'US English Female');"<br />type="button"<br />value="Play"<br />/><br /><b>But whe
<<textinput>> in the sidebar (SugarCane)
by
greyelf
·
February 2015
/><<run $("
#text
box-entry").val("")>><br />/% Display the updated journal %/<br /><<replace "#jou
Text Input Cursor Automatically Placed? (Sugarcube)
by
TheMadExile
·
November 2014
FIND: <br />var input = document.querySelector("
#text
input-prompt");<br />
Text Input Cursor Automatically Placed? (Sugarcube)
by
TheMadExile
·
November 2014
Your best bet will probably be to wrap the &lt;History&gt;.display() method. For example: (goes in a script tagged passage) <br />History.prototype.realdisplay = History.prototy
Text Input Cursor Automatically Placed? (Sugarcube)
by
flipLyric
·
November 2014
input = document.querySelector("
#text
input-prompt");<br />if (input !== null) {<br />input.focus();<br />}<br /><</script>>\<b
Text Input Cursor Automatically Placed? (Sugarcube)
by
TheMadExile
·
November 2014
The created selectors for the input elements would be "
#text
box-pcname" and "
#text
box-dogname", respectively.
Previous
Next
Forum Software Powered by Vanilla