User:Koanyan5028/Common.js

Revision as of 10:52, 29 October 2024 by imported>Koanyan5028 (Created page with "// https://wiki.hypixel.net/MediaWiki:DungeonCalc.js const fameCalculator=$(".fame-calculator"); if(fameCalculator){ $(".fame-calculator-button").click(()=>{ let level=Number.parseInt($(".fame-calculator.input")); let fame=Math.floor((level-1)*(level-1)*37.5); $(".fame-calculator-result").text(String(fame)); }); }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// https://wiki.hypixel.net/MediaWiki:DungeonCalc.js

const fameCalculator=$(".fame-calculator");
if(fameCalculator){
	$(".fame-calculator-button").click(()=>{
		let level=Number.parseInt($(".fame-calculator.input"));
		let fame=Math.floor((level-1)*(level-1)*37.5);
		$(".fame-calculator-result").text(String(fame));
	});
}