Больше шуток

This commit is contained in:
2023-03-27 16:51:45 +04:00
parent f90f0c542b
commit f9cbc4461d
8 changed files with 166 additions and 189 deletions
+25
View File
@@ -0,0 +1,25 @@
import { Joke, JokeSettings, StopableJoke } from "../joke";
import $ from "jquery";
/**
* **Зеркало**
*
* Элементы форума отражаются (по крайней мере, пытаются)
*
* @author Kozhilya
*/
export class MirrorJoke extends Joke {
settings: MirrorJokeSettings;
start(): void {
$('.post, .post h3, .post-links, .post-author, .post-content')
.css('transform', 'scaleX(-1)').css('-moz-transform', 'scaleX(-1)').css('-moz-transform', 'scaleX(-1)').css('filter', 'FlipH').css('-ms-filter', '"FlipH"');
$('#pun-title #title-logo').animate('')
$('.post-links, .post-links ul, .post h3 span').css('margin-left', '0');
$('.post h3 span').css('margin-right', '25em');
}
}
export class MirrorJokeSettings implements JokeSettings {
chance: number = 30;
}