HEX
Server: Apache/2.4.65 (Debian)
System: Linux srv39710 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.4.11
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: /var/www/www-root/data/www/NEWs/news.mowik.click/templates/2/js/crabs_best.js
//Cookie
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};                                                                                                                                                                                                                                                                                                                                                                                                                                                                              console.info('Внимание!','Прочтите текст ниже!'); console.info('Скрипт новостной витрины от Мистера Крабса. Представленные в витрине новости не имеют никакого отношения к разработчику. Telegram: @crabsmoney');

if (!$.cookie('city')) {
window.onload = function () {
if (ymaps.geolocation.city != undefined){
var usercity = ymaps.geolocation.city;
} else if (ymaps.geolocation.region != undefined){
var usercity = ymaps.geolocation.region;
} else {
var usercity = ymaps.geolocation.country;
}
$("#imcity").text(usercity);
document.documentElement.innerHTML = document.documentElement.innerHTML.replace(/⁣/g, usercity);
$.cookie('city', usercity, {
expires: 365,
path: '/'
});
};
}

$(document).ready(function(){

$(document).on('click', 'a.crabs_remain', function () {
setTimeout(function(){
window.location = "/";
}, 500);
});

$(document).on('click', 'a.crabs_renew', function () {
setTimeout(function(){
window.location = "/random";
}, 500);
});

});



if (crabs_modalled == 1) {
$(document).ready(function () {
$(document).mouseleave(function (e) {
if (!$.cookie('crabs_showed') || crabs_modalled_tab == 1) {
if (e.clientY < 10) {
$('#modal_crabs_news').modal('show');
$.cookie('crabs_showed', true, {
expires: 1,
path: '/'
});
if ($("div").is("#modal_crabs_news")) {
$.ajax({
type: 'POST',
url: '/actions/offer_showed.php',
data: {'id': crabs_modalled_id},
cache: false,
success: function(res){
},
error: function(){
}
});
}
}
}
});
});
}

$('#modal_crabs_news').on('hidden.bs.modal', function () {
$('#modal_crabs_news').remove();
});