This is a demo of https://scp-wiki.wikidot.com/component:countdown
Styled timer
[[include :scp-wiki:component:countdown
| timestamp = t - (t % 120) + 120
| format = MM:SS
| text_when_elapsed = Timer ended.
| css =
.countdown {
font-size: 2em;
font-weight: bold;
text-align: center;
}
]]
Dark theme timer
Dark theme usage:
This timer counts down from 300 seconds starting from when you loaded this page.
[[include :scp-wiki:component:countdown
| timestamp = t + 300
| format = MM mins, SS secs
| css =
.countdown {
color: white;
font-size: 2em;
font-weight: bold;
text-align: center;
}
]]
Styled timer with custom HTML
[[include :scp-wiki:component:countdown
| timestamp = t - (t % 86400) + 86400
| format = <span class="time">HH</span>:<span class="time">MM</span>:<span class="time">SS</span>
| css =
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono');
.countdown {
font-family: 'Roboto Mono', monospace;
font-size: 2em;
font-weight: bold;
text-align: center;
animation: blink 1s infinite steps(2) alternate;
display: table;
margin-inline: auto;
background-color: grey;
background-image: linear-gradient(165deg, transparent 10%, #fff3 20%, transparent 30%, transparent, transparent 70%, #0002 80%, transparent 90% );
box-shadow:
0px 2px 5px 1px #000d,
inset 0px 5px 10px 0px #fffa,
inset 0px -2px 2px 0px #0005;
margin-block: 1rem;
border-radius: 5px;
padding: 10px;
}
.timer {
background-image: linear-gradient(to top, #8bac0f, #9bbc0f);
padding: 0px 5px;
border-radius: 5px;
box-shadow:
0px -2px 3px 0px #0005,
0px 2px 3px 0px #fff5,
inset 0px 0px 3px 0px #0008;
}
.time, .timer—elapsed, .timer-pause {
color: #0f380f !important;
}
@keyframes blink {
0%, 50% { color: #306230 }
51%, 100% { color: transparent }
}
]]
Timer that's already elapsed
[[include :scp-wiki:component:countdown
| timestamp = 0
| text_when_elapsed = Timer elapsed
]]
List of hardcoded dates
[[include :scp-wiki:component:countdown
| timestamp = 1735689600, 1767225600, 1798761600, 1830297600, 1861920000, 1893456000, 1924992000, 1956528000, 1988150400, 2019686400
| format = Just WW weeks, DD days and HH:MM:SS until New Year's Day
| text_when_elapsed = Happy new year!
]]
Activate CSS after timer elapses
Now that you are inoculated, you have been granted access to all of the secrets. Here they are:
- ██████████████████████████
- █████████████████████
- ██████████████████████████████████
- ██████████████
[[module CSS]]
.hidden-section {
display: none;
}
.countdown-wrapper:has(iframe[style*=".01px"]) + .hidden-section {
display: block;
}
[[/module]]
[[include :scp-wiki:component:countdown
| timestamp = t + 60
| format = Inoculation in progress - SSs remaining <progress>
| text_when_elapsed = Inoculation complete.
]]
[[div class="hidden-section"]]
Now that you are inoculated, you have been granted access to all of the secrets. Here they are:
* ██████████████████████████
* █████████████████████
* ██████████████████████████████████
* ██████████████
[[/div]]








