User:ViolStar/global.js

!function( $ ) { var i = Math.floor( ( Math.random * 25 ) ); var anim = {}; var categories = mw.config.get("wgCategories"); for (var c = 0; c < categories.length; c++) { anim = { // Джастис '1': [                   'https://static.wikia.nocookie.net/helltaker/images/1/1d/Justice_finalModel.gif/revision/latest?cb=20200616100828&path-prefix=ru', 'bottom: 0px; right: -240px;', {right: "0px"}, {right: "-240px"}, 'style = "width: 240px; height: 341px;"', 2000               ],                // Модеус '2': [                   'https://static.wikia.nocookie.net/helltaker/images/a/ab/Modeus_finalModel.gif/revision/latest?cb=20200616101012&path-prefix=ru', 'bottom: 0px; right: -240px;', {right: "0px"}, {right: "-240px"}, 'style = "width: 240px; height: 341px;"', 2000               ],                // ПАНДЕМОНИКА '3': [                   'https://static.wikia.nocookie.net/helltaker/images/b/b7/Pandemonica_finalModel.gif/revision/latest?cb=20200616101050&path-prefix=ru', 'bottom: 0px; right: -240px;', {right: "0px"}, {right: "-240px"}, 'style = "width: 240px; height: 341px;"', 2000               ]            }            break; }   }    if ( typeof anim[ i ] === 'undefined') return; var data = anim[ i ]; $( 'body' ).append(       '' +            '' +        ' '    ); $( '#MarFNAF' ).animate( data[2], data[5], function {       setTimeout(function{ $( '#MarFNAF' ).animate( data[3], 2000, function {               $( '#MarFNAF' ).remove; // Чистим за собой            }); }, 2000);   }); }( this.jQuery );