egg: egg

Description Usage Arguments Details Examples

Description

Add an eater egg to your document

Usage

1
2
egg(stroke, egg = "", imegg, fade = 500, timeout = 5000,
  elementId = NULL)

Arguments

stroke

keys that will trigger the egg.

egg

message that will appear.

imegg

image that appears.

fade

in milliseconds.

timeout

timeout animation in milliseconds.

elementId

use to override element id.

Details

You don't need to know the special Javascript key codes, as you can use plain English to define your egg (but you can use key codes if you want to). i.e.: up = up arrow on keyboard.

Examples

1
2
3
4
5
## Not run: 
egg(c("r", "s", "t", "a", "t", "s"), "MY EASTER EGG APPEARS",
  imegg = "https://upload.wikimedia.org/wikipedia/commons/5/54/Bg-easter-eggs.jpg")

## End(Not run)

JohnCoene/egg documentation built on May 9, 2019, 8:03 p.m.