Forum:Page specific Javascript help.

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