Community Central
Community Central
(Created page with "{{Forumheader|General Discussion}} <!-- Please put your content under this line. Be sure to sign your edits with four tildes: ~~~~ If you require staff help, please...")
Tag: Source edit
 
(Re)
Line 18: Line 18:
   
 
[[User:Bill Doe|Bill Doe]] ([[User talk:Bill Doe|talk]]) 22:32, 31 July 2021 (UTC)
 
[[User:Bill Doe|Bill Doe]] ([[User talk:Bill Doe|talk]]) 22:32, 31 July 2021 (UTC)
  +
  +
: Hello!
  +
:# This question would better fit on [[w:c:dev|Fandom Developers Wiki]]'s Discussions board.
  +
:# The main problem is that you cannot use the <input> tag on a Wikitext page - you can see that it just shows up as normal text. Instead, you can make it a <nowiki><div></nowiki> and add the slider with <code>document.createElement('input')</code>.
  +
: {{User:HumansCanWinElves/Signature}} 22:48, 31 July 2021 (UTC)

Revision as of 22:48, 31 July 2021

Forums: Index General Discussion Page specific Javascript help.
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 992 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


I'm having a hard time adding a simple Javascript tool to certain pages on my fandom. It basically calculates 3 * sqrt("user supplied number") + 10. I want that "user supplied number" to be submitted with a slider bar.

Here is a JSFiddle of the tool: https://jsfiddle.net/anon6h/eo5msxv6/6/

I"ll give my wikia links but I haven't submitted it for review so I don't think others can see it. I haven't submitted because I should be able to verify it works with test mode beforehand. https://wurm.fandom.com/wiki/MediaWiki:Common.js

https://wurm.fandom.com/wiki/MediaWiki:Fence_Slope_Calculator.js

https://wurm.fandom.com/wiki/Template:Fence_slope_calc

https://wurm.fandom.com/wiki/Wooden_fence

Bill Doe (talk) 22:32, 31 July 2021 (UTC)

Hello!
  1. This question would better fit on Fandom Developers Wiki's Discussions board.
  2. The main problem is that you cannot use the <input> tag on a Wikitext page - you can see that it just shows up as normal text. Instead, you can make it a <div> and add the slider with document.createElement('input').
Nam 22:48, 31 July 2021 (UTC)