[Ответить в тред] Ответить в тред

16/08/16 - Запущен Двач Трекер
01/08/16 - Вернули возможность создавать юзердоски
09/07/16 - Новое API для капчи - внимание разработчикам приложений


Новые доски: /obr/ - Offline Battle Rap • /hv/ - Халява в интернете • /2d/ - Аниме/Беседка • /char/ - Сетевые персонажи • /wwe/ - WorldWide Wrestling Universe • Создай свою

[Назад][Обновить тред][Вниз][Каталог] [ Автообновление ] 6 | 3 | 5
Назад Вниз Каталог Обновить

Аноним 30/08/16 Втр 00:08:02  135140221  
14725048822310.png (83Кб, 504x238)
Антон, что за хуйня у меня на дваче летает?
Аноним 30/08/16 Втр 00:27:55  135141449
Блять, хули у тебя двач, как игровой сайт?
Аноним 30/08/16 Втр 00:28:29  135141474
>>135141449
а какой надо?
Аноним 30/08/16 Втр 00:29:04  135141504
>>135141474
Нормальный надо, сделают из двача игровые сайты, а потом пишут, что за хуйня летает.
Аноним 30/08/16 Втр 00:31:08  135141613
14725062690110.png (394Кб, 971x665)
Ты совсем обдвачевался.
Аноним 30/08/16 Втр 00:48:56  135142504
Stage('e14f', 'e14f', Stage.DOMREADY, function(){
//if(!Store.get('debug', false)) return;
if(window.board != 'b') return;

var interval_min = 1801000; //минимальное время триггера мс
var interval_max = 360
1000; //максимальное время триггера мс
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();

});
Аноним 30/08/16 Втр 00:50:15  135142571
14725074153310.jpg (39Кб, 604x547)
>>135140221 (OP)
У тебя открылся третий глаз, теперь ты можешь видеть то, чего не видят другие, поздравляю, ты - избранный как и я

[Назад][Обновить тред][Вверх][Каталог] [Реквест разбана] [Подписаться на тред] [ ] 6 | 3 | 5
Назад Вверх Каталог Обновить

Топ тредов
Избранное