https://perchance.org/isjmalthro#edit
good job you are very close
i just put one line in the html and it works :)
grats on getting in to code!
This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.
Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)
This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.
See this post for the Complete Guide to Posting Here on the Community!
1. Please follow the Lemmy.World instance rules.
2. Be kind and friendly.
3. Be thankful to those who try to help you.
4. Only post about stuff related to perchance.
5. Refrain from requesting Prompts for the AI Tools.
text-to-image-plugin
and ai-text-plugin
) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"6. Search through the Community Before Posting.
https://perchance.org/isjmalthro#edit
good job you are very close
i just put one line in the html and it works :)
grats on getting in to code!
THANK YOU SO MUCH! ❤️ ❤️ ❤️
Okay, so you don't need to put the code into the HTML as well; you can remove that.
The error box tells you there's an error with [output]. Which you don't need at all, so you can remove that from the HTML panel and that error will go away.
The wheelOptions object in the perchance panel ends immediately (with no items or properties or settings)... because the next line lineWidth=10
is not indented. So it just starts its own new list called lineWidth=10
. That's not what you want.
Indent it, and now that is a property of wheelOptions, and the rest of the items below it will be as well. So when wheelOptions is sent into that makeWheel() function it will use those settings to build the wheel.
perchance.org I am new to making code so how do I indent?
You can use Tab
or keyboard shortcut Ctrl+]
to indent a line without having to move the cursor to the first few characters. Also Shift+Tab
or Ctrl+[
to unindent the line in the same way.
Is it possible to add like a You spun option?
What do you mean? Can you please describe in more detail?
Well I was kinda stuck and when I saw what you edited then I did that so thank you
https://perchance.org/dwo1fuphwv#edit
saw your thing has errors so here it is with indentIng fixed on "wheeloptions" and "direction"
did you mean what i said before?
"Is it possible to add like a You spun option?"
ok so like on the wheel after you spin it is says you spun"prize 1!"