Description Usage Arguments Details
Countdown minutes
then do something.
1 2 3 4 5 6 7 | workTimer(
minutes = 25,
outcome = "lock",
con = "",
timerMessage = "time until explosion: ",
finalMessage = "IT'S OVER!"
)
|
minutes |
numeric |
outcome |
character naming one of "lock", "alarm", or "nothing" |
con |
character naming output text file |
timerMessage |
character display before countdown timer |
finalMessage |
character display when countdown expired |
What happens when to the time expires is specified by the outcome
argument.
“lock” locks the screen
“alarm” plays an alarm sound
“nothing” nothing happens
If con
is set to an empty character string the output is printed
to the console. If a file is named the output is printing to a file,
replacing the contents.
The outcome
value “alarm” requires that VLC be installed at
C:\Program Files\VideoLAN\VLC\vlc.exe
on
Windows. On Linux it requires vlc
to be on the PATH. On Macos it
expects VLC to be installed at /Applications/VLC.app
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.