Talk:The Sagittarian
From A KoL Wiki
The "throbtext" class javascript:
jQuery(function ($) { $(document).ready(function() { throb_out(); }); }); function throb_out() { jQuery(function ($) { $('.throbtext').fadeTo(Math.random()*400,.5); }) setTimeout(throb_in,400+Math.random()*200); } function throb_in() { jQuery(function ($) { $('.throbtext').fadeTo(Math.random()*400,Math.min(.95,Math.random()+.5)); setTimeout(throb_out,400+Math.random()*200); //setTimeout(throb_out,1200); }) }
Do we want to try to duplicate this on the wiki? --Club (#66669) (Talk) 17:48, 22 October 2013 (UTC)
- I would love to see it the same way in the wiki as it looks in the actual game, but are we allowed to mess about with JavaScript? --Yatsufusa (talk) 18:37, 22 October 2013 (UTC)
- I believe an admin could add this. I doubt very much regular editors can. --Club (#66669) (Talk) 19:23, 22 October 2013 (UTC)
- How would I, as a wiki admin, go about adding this? I'll shoot an e-mail off I suppose.--Cannonfire40 (talk) 01:10, 23 October 2013 (UTC)
- I believe an admin could add this. I doubt very much regular editors can. --Club (#66669) (Talk) 19:23, 22 October 2013 (UTC)
For historic accuracy: In the combat messages like "IT IS PARTY TIME." only the IT IS PARTY TIME part is blinking, same with "FEVER FEVER FEVER FEVER FEVER.": The quotation marks and the period remain unformatted. In his initial dialogue, the period and comma blink. (Sadly, I didn't get BE COOL and didn't check for DANCE, but I suspect all combat messages are formatted the same way.) --Yatsufusa (talk) 20:05, 22 October 2013 (UTC)
- As I noticed it, all text spoken in ALL CAPS and the two sentences before the antennae adjustment throbbed. To add the javascript to the wiki, I think an admin would add it to MediaWiki:Common.js, which is where the table sorting stuff is. Then <span class=throbtext>IT IS PARTY TIME</span> should activate it. --Club (#66669) (Talk) 05:15, 23 October 2013 (UTC)
- This is probably quibbling, but if it was me, I'd modify the script like this:
if (wgPageName == "The_Sagittarian") { jQuery(function ($) { $(document).ready(function() { throb_out(); }); }); } function throb_out() { jQuery(function ($) { $('.throbtext').fadeTo(Math.random()*400,.5); }) setTimeout(throb_in,400+Math.random()*200); } function throb_in() { jQuery(function ($) { $('.throbtext').fadeTo(Math.random()*400,Math.min(.95,Math.random()+.5)); setTimeout(throb_out,400+Math.random()*200); }) }
- So that it doesn't run constantly in the background on every single page. --Vorzer (talk) 06:06, 23 October 2013 (UTC)
- i made the change. i think. could someone who knows anything about this stuff test it? --Evilkolbot (talk) 11:59, 23 October 2013 (UTC)
- Doesn't seem to be working for me, bringing up wgPageName in the console says it is set to "Main_Page", which makes no sense. Perhaps the start could look like:
- i made the change. i think. could someone who knows anything about this stuff test it? --Evilkolbot (talk) 11:59, 23 October 2013 (UTC)
jQuery(function ($) { if ($(".throbtext").length > 0) { $(document).ready(function() { throb_out(); }); } });
Knob Goblin Organ Grinders don't regard The Sagittarian as a boss.My organ grinder provided the generic monster bits message. --Noskilz (talk) 00:04, 23 October 2013 (UTC)