Курсоры, обновление документации

This commit is contained in:
2023-03-29 00:36:23 +04:00
parent 0ca319ae0f
commit 1ec33d6a80
20 changed files with 1118 additions and 106 deletions
+130
View File
@@ -0,0 +1,130 @@
window.AprilJokes.disableAll();
window.AprilJokes.jokes.cursor.disableAll();
window.AprilJokes.settings = {
shake: {
enabled: true,
chance: 1,
directions: ['top', 'left', 'bottom', 'left'],
force: 0.5,
selector: '[id^=pun]',
interval: 100,
},
mirror: {
enabled: false,
chance: 30,
},
carnival: {
enabled: true,
chance: 30,
selector: 'img[src*="/avatars/"]',
variant_chance: 20,
variants: {
'sepia({0}%)': 100,
'saturate({0}%)': 100,
'hue-rotate({0}deg)': 360,
'invert({0}%)': 100,
},
},
humanitarian_hell: {
enabled: true,
chance: 20,
selector: '.post-content',
},
crazy_letters: {
enabled: true,
chance: 20,
selector: '.pa-author a'
},
letter_chaos: {
enabled: true,
chance: 20,
selector: '.post-content',
shuffle_chance: 50,
},
cursor: {
enabled: true,
chance: 100,
effects: {
rainbow: {
enabled: true,
weight: 50,
length: 20,
size: 3,
colors: [
"#9400D3",
"#4B0082",
"#0000FF",
"#00FF00",
"#FFFF00",
"#FF7F00",
"#FF0000"
],
},
springy_emoji: {
enabled: true,
weight: 50,
emoji: "🤪",
},
emoji: {
enabled: true,
weight: 50,
emoji: ["🔥", "🐬", "🦆"],
},
fairy_dust: {
enabled: true,
weight: 50,
colors: ["#ff0000", "#00ff00", "#0000ff"],
},
ghost: {
enabled: true,
weight: 50,
},
trailing: {
enabled: true,
weight: 50,
particles: 15,
rate: 0.4,
baseImageSrc: null,
},
text_flag: {
enabled: true,
weight: 50,
text: "С днём смеха!",
color: "#000000",
font: "monospace",
textSize: 12,
gap: 14,
},
following_dot: {
enabled: true,
weight: 50,
color: "#323232a6",
},
bubbles: {
enabled: true,
weight: 50,
},
snowflake: {
enabled: false,
weight: 50,
},
clock: {
enabled: true,
weight: 50,
dateColor: string = "blue",
faceColor: string = "black",
secondsColor: string = "red",
minutesColor: string = "black",
hoursColor: string = "black",
},
},
},
}