From Dark and Darker Wiki

No edit summary
(Fixing var passed to clear interval)
Line 19: Line 19:


     if (distance < 0) {
     if (distance < 0) {
         clearInterval(x);
         clearInterval(<!--{$uniqueId|default:'timer'|escape:'html'}-->);
         document.getElementById(id).innerHTML = "LIVE NOW";
         document.getElementById(id).innerHTML = "LIVE NOW";
     }
     }

Revision as of 01:30, 26 August 2024

Parameters

uniqueId
  • Determines element id name
  • Name needs to be unique if multiple widgets are to be displayed on the same page.
  • Default: timer
date
  • String of text indicating a date and time.
    • Example:2024-12-31 23:59:59


Example 1

{{#widget:Countdown|uniqueId=A|date=2024-08-26 23:59:59}}

Example 2

{{#widget:Countdown|uniqueId=B|date=2024-08-25 23:59:59}}

Example 3

{{#widget:Countdown|uniqueId=C|date=2024-08-24 23:59:59}}