Vln_ You have some mistakes in your code. (You really should know this)
- A macro cannot have the HTML attribute "placeholder"
- A macro cannot have the HTML attribute "style"
Code as is:
HTML:
<<textbox "_testcode" "" placeholder="Cheat code here" style="background: rgb(85 85 129 / 25%);font-size: large;font-weight: 600;">>
but should be:
HTML:
<<textbox "_testcode" "Cheat code here">>
Hence the reason people get an error when clicking the "Enter" key after entering a code because the macro takes the placeholder as the third argument. The "Enter" key should only work when a third argument is used.
e.g.
HTML:
<<textbox "_testcode" "Cheat code here" "Passage-name">>
Arguments:
- receiverName: The name of the variable to modify, which must be quoted—e.g., "$foo". Object and array property references are also supported—e.g., "$foo.bar", "$foo['bar']", & "$foo[0]". In this case "_testcode"
- defaultValue: The default value of the text box. In this case "Cheat code here"
- passage: (optional) The name of the passage to go to if the return/enter key is pressed. May be called either with the passage name or with a link markup.
If you'd like to add a placeholder and/or inline styling to the
<<textbox>>
macro you may want to use the
<<attr>>
and/or
<<style>>
macro,
You must be registered to see the links
, however, the inline style is redundant since the
<<textbox>>
is already styled with CSS.
e.g.
HTML:
<<attr "placeholder" "Cheat code here">><<textbox "_testcode" "">> <</attr>>
I did post this before but you either didn't notice or you simply don't care?