Антон, что за хуйня у меня на дваче летает?
Блять, хули у тебя двач, как игровой сайт?
>>135141449а какой надо?
>>135141474Нормальный надо, сделают из двача игровые сайты, а потом пишут, что за хуйня летает.
Ты совсем обдвачевался.
Stage('e14f', 'e14f', Stage.DOMREADY, function(){ //if(!Store.get('debug', false)) return; if(window.board != 'b') return; var interval_min = 1801000; //минимальное время триггера мс var interval_max = 3601000; //максимальное время триггера мс var slide_speed = 10000; //за сколько миллисекунд надо проходить 1000 пикселей var hide_speed = 2000; //за сколько миллисекунд надо проходить 1000 пикселей после щелчка //var $hero = $('<span id="e14f-hero" style="position: fixed; cursor: pointer;"><img src="/makaba/templates/js/c.gif"></span>'); //объект для бега var $hero = $('<span id="e14f-hero" style="position: fixed; cursor: pointer;"><img src="/images/popobava3.gif"></span>'); // var $mus = $('<audio id="BokaIEgoVnukAbu" loop volume=0.08><source src="/images/cheekateelo.ogg"></audio>') var chktl; var _pos_x_correction = 100; //отптуп за боковые края экрана var _pos_top_correction = 1; //отптуп от верхнего края var _pos_bot_correction = 100; //отптуп от нижнего края Runner = { disabled: false, timer_work: 0, timer_complete: 0, direction: true, top: 0, from: -_pos_x_correction, delta: 0, speed: slide_speed, browser_prefixes: ['-webkit-', '-moz-', '-ms-', '-o-', ''], $style_keyframes: $('<style type="text/css"></style>'), $style_id: $('<style type="text/css"></style>'), $body: $('body'), $head: $('head'), init: function() { this.$head.append(this.$style_keyframes); this.$head.append(this.$style_id); this.$body.append($hero); //this.$body.append($mus); this.resetWorkTimer(); //chktl = $('#BokaIEgoVnukAbu')[0]; //chktl.volume = 0.08; var that = this; $hero.mousedown(function(){ that.onClick(); }); }, onTimer: function() { this.updateDirection(); this.updateTop(); this.doWork(); var that = this; this.timer_complete = setTimeout(function() { that.onComplete(); }, this.delta); }, onComplete: function() { $hero.hide().removeClass('e14f-runnng'); //chktl.pause(); if(this.disabled) return; this.resetWorkTimer(); }, doWork: function() { this.updateRunFramesAndDelta(); this.updateHeroStyleID(); $hero.addClass('e14f-runnng').show(); if(this.disabled) return; //он уже загружен и это его последний пробег //chktl.load(); //chktl.play(); }, onClick: function() { clearTimeout(this.timer_complete); this.disabled = true; this.speed = hide_speed; this.direction = !this.direction; this.from = Math.floor($hero.position().left); $hero.removeClass('e14f-runnng').hide(); this.doWork(); var that = this; this.timer_complete = setTimeout(function() { that.onComplete(); }, this.delta); }, resetWorkTimer: function() { clearTimeout(this.timer_work); var that = this; this.timer_work = setTimeout(function() { that.onTimer(); }, this.getRandomInt(interval_min, interval_max)); }, wrapCrossBrowser: function(str) { var ret = ''; for(var i=0;i<this.browser_prefixes.length;i++) { ret += this.replaceAll('{p}', this.browser_prefixes, str); } return ret; }, replaceAll: function (find, replace, str) { return str.replace(new RegExp(find, 'g'), replace); }, updateRunFramesAndDelta: function() { var to; var from; var addition; var distance; if(this.direction) { addition = ' {p}transform: scaleX(-1);'; from = this.from; to = $(window).width()+_pos_x_correction; distance = to-from; }else{ addition = ''; from = -_pos_x_correction; to = this.from; distance = -(from-to); } this.delta = Math.ceil( this.speeddistance/1000 ); //console.log('from=' + from + ', to=' + to + ',distance=' + distance + ', this.from = ' + this.from); var css = '@{p}keyframes e14f-run {\n' + ' 0% { top: ' + this.top + 'px; left: ' + from + 'px; ' + addition + '}\n' + ' 100% { top: ' + this.top + 'px; left: ' + to + 'px; ' + addition + '}\n' + '}\n'; css = this.wrapCrossBrowser(css); this.$style_keyframes.html(css); }, updateHeroStyleID: function() { var addition = ''; if(!this.direction) addition = ' reverse'; var css = '.e14f-runnng { \n' + this.wrapCrossBrowser('{p}animation: e14f-run ' + this.delta + 'ms linear 0s 1' + addition + ';\n') + '}\n'; this.$style_id.html(css); }, updateTop: function() { var from = _pos_top_correction; var to = $(window).height()-_pos_bot_correction; this.top = this.getRandomInt(from, to); }, updateDirection: function() { this.direction = (Math.random() > 0.5); if(!this.direction) { this.from = $(window).width()+_pos_x_correction; }else{ this.from = -_pos_x_correction; } }, getRandomInt: function(min, max) { return Math.floor(Math.random() (max - min + 1)) + min; } }; Runner.init(); //Runner.init111();});
>>135140221 (OP)У тебя открылся третий глаз, теперь ты можешь видеть то, чего не видят другие, поздравляю, ты - избранный как и я