Update content of files

This commit is contained in:
GitHub Action 2022-12-08 12:36:35 +00:00
parent 2240bd2859
commit a977b26088
3 changed files with 32 additions and 6 deletions

View file

@ -15,7 +15,7 @@
<link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css">
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/auction.css?41" rel="stylesheet">
<link href="/css/auction.css?42" rel="stylesheet">
</head>
<body class="emoji_image no-transition">
@ -38,9 +38,9 @@
<script src="/js/main-aj.js?67"></script>
<script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?47"></script>
<script src="/js/auction.js?48"></script>
<script>ajInit({"version":409,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":411,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj._useScrollHack=true;
Main.init();
</script>

View file

@ -1133,11 +1133,14 @@ a.tm-menu-link:focus {
.icon-ton:empty:before {
display: none;
}
.icon-ton-text {
white-space: nowrap;
}
.icon-ton-text:before {
--icon-height: var(--line-height, 20px);
width: calc(0.8 * var(--icon-height));
height: var(--icon-height);
margin-right: calc(0.15 * var(--icon-height));
margin-right: calc(0.05 * var(--icon-height));
background-image: var(--image-url-ton-text-icon);
}
.btn .icon-ton:before,
@ -1451,6 +1454,13 @@ a.tm-menu-link:focus {
border-radius: 4px;
white-space: nowrap;
}
.tm-table .table-cell-desc-cols {
display: flex;
}
.tm-table .table-cell-desc-cols .table-cell-desc-col + .table-cell-desc-col:before {
content: '\2022';
margin: 0 5px;
}
.tm-table .table-cell-value {
color: #fff;
}
@ -2045,6 +2055,16 @@ a.tm-table-action-link:hover {
.tm-number-code-button {
margin-top: 24px;
}
.tm-number-code-button-desc {
--line-height: 19px;
font-size: 13px;
line-height: var(--line-height);
padding: 12px 5px 0;
text-align: center;
}
.tm-number-code-button-desc:empty {
display: none;
}
.tm-number-code-spoiler b.point {
position: absolute;
display: inline-block;

View file

@ -63,6 +63,9 @@ var Main = {
var date = new Date(datetime);
var cur_date = new Date();
var time_left = Math.floor((date - cur_date) / 1000);
if (mode == 'ago-text') {
time_left = -time_left;
}
var ended = time_left < 0;
if (time_left < 0) time_left = 0;
var days = Math.floor(time_left / 86400);
@ -98,8 +101,11 @@ var Main = {
if (!days && !hours && (mode == 'text' || !minutes)) {
arr.push(l('{n:# seconds|# second|# seconds}', {n: seconds}));
}
arr = arr.slice(0, mode == 'text' ? 3 : 2);
$time.html(arr.join(' '));
arr = arr.slice(0, mode == 'short-text' ? 2 : (mode == 'ago-text' ? 1 : 3));
var text = arr.join(' ');
if (text != $time.text()) {
$time.text(text);
}
}
$(this).closest('.js-timer-wrap').toggleClass('ended', ended);
} else {