You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This packages makes it nice and easy to add Easter Egg triggers to your Vue site.
8
8
@@ -26,10 +26,10 @@ Vue.use(EasterEggTrigger);
26
26
27
27
Name | Type | Default | Description
28
28
:----- | :------ | :----- | :-----
29
-
delay | Integer | 500 | Determins the timeout before the event lister resets
30
-
keys | Array | ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'] | The keys a user needs to enter to trigger the easter egg. The default combination is the konami code.
31
-
pattern | Array | [38, 38, 40, 40, 37, 39, 37, 39, 66, 65] | The keyCode a user enters to trigger the easter egg. This is a fallback for the keys option as it is depreciated.
32
-
type | String | keydown | The type of action the trigger will be listening for
29
+
delay | Integer | 500 | Determines the timeout before the event lister resets.
30
+
keys | Array | ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'] | The key/click combination a user does to trigger easter egg. The default combination is the konami code.
31
+
pattern | Array | [38, 38, 40, 40, 37, 39, 37, 39, 66, 65] | The key combination a user does to trigger easter egg. (fallback for keys)
32
+
type | String | keydown | The type of action the trigger will be listening for.
33
33
34
34
##### Overriding the plugin default options
35
35
@@ -177,6 +177,10 @@ this.$easterEgg({
177
177
178
178
You can find more examples in the [EasterEgg.vue](https://github.com/webdevnerdstuff/vue-easter-egg-trigger/blob/main/src/components/EasterEgg.vue) file.
0 commit comments