4 Commits
0.1.1 ... 1.2.2

3 changed files with 80 additions and 4 deletions

View File

@@ -1 +1,15 @@
# site-repression
# How I was kidnapped by PMC Wagner
In the morning i was kidnapped **with a bag over my head and in handcuffs**, in the afternoon there was a **fake trial** with my acquittal, and in the evening i was already **drinking my coffee at home** 🥲
## Description
This is an educational and entertaining article about **real events** that happened to me in **2023**. Initially, i planned to structure the story in order to **request political asylum in Estonia**, but the situation became such that I was forced to **abandon this idea** *(to my regret)*, and remade the site into a more humorous one.
Reading the article you may be impressed by these incredible incidents, but in reality these are **trifles** and **commonplace**. I was not surprised when this happened. This is a harsh reality, but it is not as harsh as in the movies.
*In life, even the most terrible tragedies happen in a boring, ordinary way.*
## Afterword
My psychological state is **absolutely normal** *(2024.01.04)*, however, i am **still scared** of cars stopping next to me at night, and i also do not feel safe *(more than before)*.
*This is not my most interesting story in life and not the most memorable. It just so happened that i shared it with you about it. **I hope you will enjoy*** 😼⏎

View File

@@ -200,8 +200,11 @@ class views extends core
// Инициализация буфера обработанных последних просмотров
$buffer = [];
// Универсализация
if ($response instanceof _document) $response = [$response];
// Обработка последних просмотров
foreach ($response as $view) $buffer[] = $view->getAll()[0];
foreach ($response ?? [] as $view) $buffer[] = $view->getAll()[0];
return $buffer;
} else throw new exception('Не удалось инициализировать коллекцию');

View File

@@ -80,9 +80,12 @@
<p>
<span title="{{ view.country_name }}" class="unselectable">{{ view.country_flag.emoji }}</span>
<span title="{{ view.region }}">{{ view.region }}</span>
{% if view.referer is not null %}<samp>(<small title="{{ view.referer }}&lrm;">{{ view.referer }}&lrm;</small>)</samp>{% endif %}
{% if view.referer is not null %}<samp>(<small title="{{ view.referer }}&lrm;">{{ view.referer
}}&lrm;</small>)</samp>{% endif %}
<span title="{{ view.useragent }}">{{ view['x-forwarded-for'] ?? view.ip }}</span>
<span title="{{ view.created|date('Y.m.d H:i:s') }}"><b>{{ view.created|date('H:i:s') }}</b></span>
<span title="{{ view.created }}" data-date-convert="title" data-date-convert-format="year.month.day hour:minute:second">
<b data-date-convert="value">{{ view.created }}</b>
</span>
</p>
{% endfor %}
</section>
@@ -146,6 +149,62 @@
{{ block('header_js_init') }}
{{ block('troller_js_init') }}
<script>
// Generate dates with user timezone
for (const element of document.body.querySelectorAll('[data-date-convert]')) {
// Enumerating elements to convert
// Initializing a format of convertation
const format = element.getAttribute('data-date-convert-format') ?? 'hour:minute:second';
if (element.getAttribute('data-date-convert') === 'title') {
// Title
// Initializing a date with timezone
const date = new Date(element.getAttribute('title') * 1000);
// Initializing parts of the date
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDay();
let hour = date.getHours();
let minute = date.getMinutes();
let second = date.getSeconds();
// Convertation parts of the date to double symbols
month = (month < 10 ? "0" : '') + month;
day = (day < 10 ? "0" : '') + day;
hour = (hour < 10 ? "0" : '') + hour;
minute = (minute < 10 ? "0" : '') + minute;
second = (second < 10 ? "0" : '') + second;
if (format === 'hour:minute:second') element.setAttribute('title', `${hour}:${minute}:${second}`);
else if (format === 'year.month.day hour:minute:second') element.setAttribute('title', `${year}.${month}.${day} ${hour}:${minute}:${second}`);
} else {
// Value (implied)
// Initializin a date with timezone
const date = new Date(element.innerText * 1000);
// Initializing parts of the date
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDay();
let hour = date.getHours();
let minute = date.getMinutes();
let second = date.getSeconds();
// Convertation parts of the date to double symbols
month = (month < 10 ? "0" : '') + month;
day = (day < 10 ? "0" : '') + day;
hour = (hour < 10 ? "0" : '') + hour;
minute = (minute < 10 ? "0" : '') + minute;
second = (second < 10 ? "0" : '') + second;
if (format === 'hour:minute:second') element.innerText = `${hour}:${minute}:${second}`;
else if (format === 'year.month.day hour:minute:second') element.innerText = `${year}.${month}.${day} ${hour}:${minute}:${second}`;
}
}
document.addEventListener('bloodchaos.loaded', function(e) {
const bloodchaos = e.detail.bloodchaos;