Widget talk:Event timer

From Guild Wars 2 Wiki
Jump to navigationJump to search

Is it possible to add Dry Top events on this timer? Same way it was done to World Bosses?

Here's a helpful link, if needed. Zarek (talk) 00:41, 30 November 2015 (UTC)

There isn't enough room for individual events. You'd need to expand into 12 segments and the 5 minute intervals aren't wide enough for even annotated events and waypoint chat links. You can see the issue in the Tangled Depths timeline.--Relyk ~ talk < 01:21, 30 November 2015 (UTC)

Broken over HTTPS[edit]

It looks like there was a rewrite. The new code uses AJAX call to http://wiki.guildwars.com/. This is broken when viewing the page from HTTPS. --Voidvector (talk) 05:58, 26 December 2015 (UTC)

Yeah sorry about that, 2AM rewrite on Boxing Day wasn't a good idea huh. Dropping the domain bit from the start of the call has remedied this as far as I can see. -Chieftain AlexUser Chieftain Alex sig.png 12:53, 26 December 2015 (UTC)

Domain of Istan Events[edit]

moved to Template talk:Event timer

Separate timelines and specific groups[edit]

== Test ==
{{event timer|wb}}

== Test ==

{{event timer|wb}}

== Test ==
{{event timer|wb}}

Completely messes up the layout.

{{event timer|dt, wb}}

{{event timer|wb}}

or 

{{event timer}}

{{event timer|dt, wb}}

The last entry clobbers the requested timelines in the first. Probably the downside of using global variables. On a side note, this is really scary code to read.--Relyk ~ talk < 09:43, 4 February 2018 (UTC)

^____^--Relyk ~ talk < 11:42, 4 February 2018 (UTC)
Yeah, it was an easy fix for those I'm afraid... the widget should only be called once per page.
It probably is the most scary widget on the wiki bar none. It might be slightly awkward that it uses 10 subfunctions, but each subfunction isn't too complicated. If you start by reading function mainEventTimer at the bottom, you'll see that it:
  1. Determines which metas to display
  2. Initialises the current metas based on the time. To do this:
    • It first it takes the 25 hours of metas and filters it once to get events that either start or end within the 135 minute period.
    • It then does a more accurate truncation of the events to make sure they start/end at the 0,120,135 window boundaries.
    • Draws event segments within meta bars of the correct length, and adds chatlinks, times, names and links.
  3. Positions the current time pointer for the first time.
  4. Sets a recurring 10 second task to move to the pointer
    • If the pointer has gone all the way to the right, and then reset and moved to the far left again, then it also redraws the background.
Everything else is just embellishment. -Chieftain AlexUser Chieftain Alex sig.png 12:00, 4 February 2018 (UTC)
Would be nice if the code read more that way. My main gripe is the obfuscated/minified code, the hardcoded lookup tables, and identifying the portions of the code using CSS for animation and drawing. You're the only one maintaining it and I can't do anything but post feedback, so I won't complain too much ^_^ --Relyk ~ talk < 21:18, 11 February 2018 (UTC)

Thunderkeep metas[edit]

moved to Template talk:Event timer#Thunderkeep metas

A request to improve a function[edit]

moved to Template talk:Event timer#A request to improve a function

Dragon Bash has ended[edit]

moved from Widget talk:Event timer/script.js

Dragon Bash ended a few days ago, but is still showing. Could someone with edit permissions please change the line that currently says

var excludeSequence = ['lc'];

to

var excludeSequence = ['db', 'lc'];

Thanks. - Kirbman talk 19:25, 18 July 2020 (UTC)

Thanks Kirbman. -Chieftain AlexUser Chieftain Alex sig.png 20:50, 18 July 2020 (UTC)

Festival of the Four Winds[edit]

moved from Widget talk:Event timer/script.js

The festival has ended. Please don't forget to set it to be hidden again by default. Nightsky (talk) 02:20, 3 September 2020 (UTC)

Thanks for pointing this out, Nightsky. Tanetris has taken care of it. Greener (talk) 23:27, 3 September 2020 (UTC)

wizard's tower adventures[edit]

In wizard's tower there are two adventures that are only available during specific tyrian times: Skyscale Target Practice in the Wizard's Tower and Wizard's Tower: Fly by Night so they should be added here (would need to double check that the times are accurate). There is a third adventure (Wizard's Trial) but I think the timer on that one is per-instance. --ItVictor (talk) 10:29, 8 September 2023 (UTC)