Update content of files

This commit is contained in:
GitHub Action 2023-03-22 17:55:48 +00:00
parent b19b307b5c
commit 293c61386a
30 changed files with 209 additions and 73 deletions

View file

@ -214,9 +214,9 @@
<script src="/js/main-aj.js?67"></script>
<script src="/js/contest.js?25"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>ajInit({"version":649,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":650,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj._useScrollHack=true;
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -525,6 +525,13 @@ i.icon {
background-image: var(--image-url-logo-icon-animated, var(--image-url-logo-icon));
animation-name: logo-play;
}
.tm-logo-progress .tm-logo-icon {
--image-url-logo-icon-animated: url('/img/TelemintLogoSprite2.svg');
animation-iteration-count: infinite;
animation-duration: 2s;
width: 78px;
height: 78px;
}
@-webkit-keyframes logo-play {
0% { background-position: 0% 0; }
@ -548,7 +555,7 @@ i.icon {
.tm-header-actions {
margin: 10px 16px;
}
.tm-header-actions.thin-only {
.tm-header-actions-thin {
margin-right: 0;
}
.tm-header-action + .tm-header-action {
@ -941,6 +948,19 @@ a.tm-menu-link:focus {
background-image: var(--image-url-menu-terms);
}
@media (max-width: 992px) {
.tm-header-actions-wide {
display: none !important;
}
}
@media (min-width: 992px) {
.tm-header-actions-thin,
.tm-header-menu-button,
.tm-header-menu {
display: none !important;
}
}
.tm-footer {
background-color: var(--footer-bg-color);
}
@ -1163,11 +1183,16 @@ a.tm-menu-link:focus {
width: 8px;
height: 18px;
}
.tm-main-intro-auth {
.tm-main-intro-buttons {
text-align: center;
}
.tm-main-intro-auth-btn {
max-width: 348px;
margin: 0 auto;
}
.tm-main-intro-buttons .tm-main-intro-link-wrap {
font-size: 14px;
line-height: 20px;
margin-top: 24px;
text-align: center;
}
.tm-main-intro-auth-desc {
font-size: 13px;
@ -2345,12 +2370,6 @@ a.tm-table-action-link:hover {
text-align: center;
margin: 8px 0 0;
}
.tm-number-code-link {
font-size: 14px;
line-height: 20px;
margin-top: 24px;
text-align: center;
}
.tm-number-code-button {
margin-top: 24px;
}
@ -2769,15 +2788,19 @@ a.tm-table-action-link:hover {
border-radius: 16px;
background-color: var(--field-bg-color);
}
.preview-sender-shown,
.gift-premium-popup-container.iam-sender .tm-form-checkbox-item,
.gift-premium-popup-container.show-sender .preview-sender-hidden,
.gift-premium-popup-container.show-sender.iam-sender .preview-sender-shown {
.gift-premium-popup-container.iam-sender .tm-form-checkbox-item {
display: none;
}
.gift-premium-popup-container.show-sender .preview-sender-shown,
.preview-sender-shown,
.gift-premium-popup-container.show-sender .preview-sender-hidden,
.gift-premium-popup-container.show-sender.iam-sender .preview-sender-shown {
transform: rotateX(180deg);
}
.gift-premium-popup-container.show-sender .preview-sender-shown {
transform: rotateX(360deg);
}
.gift-premium-popup-container.show-sender.iam-sender .preview-sender-hidden {
display: block;
transform: rotateX(0deg);
}
.tm-gift-premium-preview .preview-sender-name,
.tm-gift-premium-preview .preview-sender-text {
@ -2789,22 +2812,31 @@ a.tm-table-action-link:hover {
font-size: 14px;
line-height: 19px;
font-weight: bold;
transition: transform var(--def-transition);
backface-visibility: hidden;
}
.tm-gift-premium-preview .preview-sender-name.preview-sender-shown {
margin-top: -19px;
}
.tm-gift-premium-preview .preview-sender-text {
font-size: 13px;
line-height: 19px;
color: var(--text-color);
}
.tm-gift-premium-preview .preview-sticker {
.tm-gift-premium-preview .preview-sticker,
.tm-gift-premium-preview-sent .preview-sticker {
display: inline-block;
vertical-align: top;
position: relative;
width: 144px;
height: 144px;
margin: 1px 0 10px;
cursor: pointer;
}
.tm-gift-premium-preview .preview-sticker canvas,
.tm-gift-premium-preview .preview-sticker img {
.tm-gift-premium-preview .preview-sticker img,
.tm-gift-premium-preview-sent .preview-sticker canvas,
.tm-gift-premium-preview-sent .preview-sticker img {
position: absolute;
width: 100%;
left: 0;
@ -2819,6 +2851,69 @@ a.tm-table-action-link:hover {
font-size: 13px;
line-height: 20px;
}
.tm-gift-premium-preview-sent {
width: 348px;
max-width: 100%;
margin: 0 auto 24px;
padding: 22px 30px;
border-radius: 16px;
background-color: var(--field-bg-color);
color: var(--field-color);
text-align: center;
}
.tm-gift-premium-preview-sent .preview-sticker {
width: 164px;
height: 164px;
margin: -17px 0 12px;
}
.tm-gift-premium-preview-sent .preview-gift-text {
font-size: 16px;
line-height: 23px;
font-weight: bold;
}
.tm-gift-premium-preview-sent .preview-gift-desc {
font-size: 14px;
line-height: 23px;
margin: 3px 0 0;
}
.tm-main-box-processing {
width: 348px;
max-width: 100%;
border-radius: 16px;
background-color: var(--field-bg-color);
padding: 30px 50px;
margin: 10px auto 0;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.tm-main-box-processing .tm-logo-progress {
padding: 0 0 20px;
}
.tm-main-box-icon-error {
margin: 0 auto 20px;
}
.tm-main-box-processing-error .icon-error:before {
width: 50px;
height: 50px;
background-image: var(--image-url-main-search-error);
}
.tm-main-box-processing-error .tm-main-box-processing-head {
color: var(--unavail-color);
}
.tm-main-box-processing-head {
font-size: 17px;
line-height: 24px;
font-weight: bold;
color: var(--field-color);
}
.tm-main-box-processing-text {
font-size: 14px;
line-height: 20px;
margin-top: 10px;
}
.toast-container {
position: fixed;
@ -2992,6 +3087,9 @@ a.tm-table-action-link:hover {
.tm-header-tab {
padding: 19px 0;
}
.tm-header-menu-button {
padding: 19px;
}
.tm-dropdown .dropdown-toggle.btn {
padding: 9px 14px;
@ -3425,6 +3523,10 @@ a.tm-table-action-link:hover {
padding: 0 8px;
}
.tm-main-box-processing {
margin: 50px auto 0;
}
.tm-form-radio-label .tm-value {
width: 90px;
}

View file

@ -7,8 +7,8 @@ var Main = {
Aj.onLoad(function(state) {
var cont = Aj.ajContainer;
$(window).on('resize', Main.onResize);
$('.js-logo-hoverable').on('mouseover', Main.playLogo);
$('.js-logo-clickable').on('click', Main.playLogo);
$('.js-logo-hoverable').on('mouseover', Main.ePlayLogo);
$('.js-logo-clickable').on('click', Main.ePlayLogo);
$('.js-logo-icon').on('animationend', Main.eLogoAnimEnd);
$(cont).on('click.curPage', '.js-header-menu-button', Main.eHeaderMenu);
$(cont).on('click.curPage', '.js-header-menu-close-button', Main.eHeaderMenuClose);
@ -37,8 +37,8 @@ var Main = {
Aj.onUnload(function(state) {
clearTimeout(Aj.state.searchTimeout);
$(window).off('resize', Main.onResize);
$('.js-logo-hoverable').off('mouseover', Main.playLogo);
$('.js-logo-clickable').off('click', Main.playLogo);
$('.js-logo-hoverable').off('mouseover', Main.ePlayLogo);
$('.js-logo-clickable').off('click', Main.ePlayLogo);
$('.js-logo-icon').off('animationend', Main.eLogoAnimEnd);
state.$mainSearchForm.off('submit', Main.eMainSearchSubmit);
state.$mainSearchForm.field('query').off('input', Main.eMainSearchInput);
@ -181,7 +181,9 @@ var Main = {
var mainLogo = new Image();
mainLogo.onload = function() {
Aj.globalState.logoImageMain = main_url;
Main.playLogo(true);
$('.js-header-logo').each(function() {
Main.playLogo(this, true);
});
};
mainLogo.src = main_url;
var url2 = '/img/TelemintLogoSprite2.svg';
@ -198,10 +200,14 @@ var Main = {
logo3.src = url3;
}
},
playLogo: function(main) {
if (!$('.js-logo').hasClass('play')) {
ePlayLogo: function(e) {
Main.playLogo(this);
},
playLogo: function(el, init_logo) {
var $el = $(el);
if (!$el.hasClass('play')) {
var url = Aj.globalState.logoImageMain;
if (!main) {
if (!init_logo && $el.hasClass('js-random-logo')) {
var rnd = Math.random();
if (rnd > 0.9 && Aj.globalState.logoImage3) {
url = Aj.globalState.logoImage3;
@ -209,14 +215,14 @@ var Main = {
url = Aj.globalState.logoImage2;
}
}
$('.js-logo').each(function() {
$el.each(function() {
this.style.setProperty('--image-url-logo-icon-animated', 'url(\'' + url + '\')');
});
$('.js-logo').addClass('play');
$el.addClass('play');
}
},
eLogoAnimEnd: function(e) {
$('.js-logo').removeClass('play');
$(this).parents('.js-logo').removeClass('play');
},
eHeaderMenu: function(e) {
e.preventDefault();
@ -1162,8 +1168,7 @@ var Random = {
if (result.done && Aj.state.$sentPopup) {
closePopup(Aj.state.$sentPopup);
}
if (Aj.state.needUpdate &&
result.need_update) {
if (Aj.state.needUpdate && result.need_update) {
Aj.state.updStateTo = setTimeout(Random.updateState, Main.UPDATE_PERIOD);
}
});
@ -1517,6 +1522,7 @@ var Premium = {
Aj.onLoad(function(state) {
var cont = Aj.ajContainer;
$(cont).on('click.curPage', '.js-myself-link', Premium.eAcquireForMyself);
$(cont).on('click.curPage', '.js-another-gift-btn', Premium.eGiftMorePremium);
$(cont).on('click.curPage', '.js-gift-premium-btn', Premium.eGiftPremium);
state.$giftPremiumPopup = $('.js-gift-premium-popup');
$(cont).on('submit.curPage', '.js-gift-premium-form', Premium.eGiftPremiumSubmit);
@ -1534,6 +1540,13 @@ var Premium = {
if (state.needUpdate) {
state.updStateTo = setTimeout(Premium.updateState, Main.UPDATE_PERIOD);
}
$(cont).on('click.curPage', '.js-preview-sticker', function() {
RLottie.playUntilEnd(this);
});
$('.js-preview-sticker').each(function() {
RLottie.init(this, {playUntilEnd: true});
});
RLottie.init();
});
Aj.onUnload(function(state) {
clearTimeout(state.updStateTo);
@ -1544,6 +1557,9 @@ var Premium = {
$('.js-form-clear', state.$premiumSearchForm).off('click', Premium.eSearchClear);
state.$premiumSearchForm.off('change', '.js-premium-options input.radio', Premium.eRadioChanged);
state.$giftPremiumForm.off('change', 'input.checkbox', Premium.eCheckboxChanged);
$('.js-preview-sticker').each(function() {
RLottie.destroy(this);
});
});
},
updateState: function() {
@ -1552,14 +1568,22 @@ var Premium = {
Aj.state.updLastReq && (now - Aj.state.updLastReq) > Main.FORCE_UPDATE_PERIOD) {
Aj.state.updLastReq = now;
Aj.apiRequest('updatePremiumState', {
mode: Aj.state.mode,
lv: Aj.state.lastVer,
dh: Aj.state.lastDh,
}, function(result) {
if (result.history_html) {
Premium.updateHistory(result.history_html);
if (result.mode) {
Aj.state.mode = result.mode;
}
if (result.options_html) {
Premium.updateOptions(result.options_html);
if (result.html) {
Premium.updateContent(result.html);
} else {
if (result.history_html) {
Premium.updateHistory(result.history_html);
}
if (result.options_html) {
Premium.updateOptions(result.options_html);
}
}
if (result.lv) {
Aj.state.lastVer = result.lv;
@ -1570,7 +1594,7 @@ var Premium = {
if (result.dh) {
Aj.state.lastDh = result.dh;
}
if (Aj.state.needUpdate) {
if (Aj.state.needUpdate && result.need_update) {
Aj.state.updStateTo = setTimeout(Premium.updateState, Main.UPDATE_PERIOD);
}
});
@ -1694,6 +1718,11 @@ var Premium = {
updateHistory: function(html) {
$('.js-premium-history').replaceWith(html);
},
updateContent: function(html) {
$('.js-main-content').html(html).find('.js-preview-sticker').each(function() {
RLottie.init(this, {playUntilEnd: true});
});
},
eGiftPremium: function(e) {
e.stopImmediatePropagation();
e.preventDefault();
@ -1749,14 +1778,19 @@ var Premium = {
}),
qr_label: item_title,
tk_label: l('WEB_POPUP_QR_PREMIUM_TK_BUTTON'),
terms_label: l('WEB_POPUP_QR_PROCEED_TERMS'),
onConfirm: function(by_server) {
if (by_server) {
Aj.state.$sentPopup = showAlert(l('WEB_GIFT_PREMIUM_SENT'));
}
}
terms_label: l('WEB_POPUP_QR_PROCEED_TERMS')
});
Aj.state.needUpdate = true;
},
eGiftMorePremium: function(e) {
e.preventDefault();
e.stopImmediatePropagation();
Aj.apiRequest('repeatPremium', {}, function(result) {
if (result.error) {
return showAlert(result.error);
}
Aj.reload();
});
}
};

View file

@ -270,7 +270,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>mainInitRetinaVideos();
mainInitLogo("\/img\/t_logo_sprite.svg");

View file

@ -270,7 +270,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>mainInitRetinaVideos();
mainInitLogo("\/img\/t_logo_sprite.svg");

View file

@ -401,7 +401,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -289,7 +289,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -286,7 +286,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -301,7 +301,7 @@ Telegram's expressive **animated emoji** can now be included in the text of mess
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -299,7 +299,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -248,7 +248,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -288,7 +288,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -271,7 +271,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -336,7 +336,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -306,7 +306,7 @@ you can also download our Android app directly from [telegram.org](https://teleg
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -269,7 +269,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -287,7 +287,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -313,7 +313,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -286,7 +286,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -341,7 +341,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -221,7 +221,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -260,7 +260,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -262,7 +262,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -298,7 +298,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>initScrollVideos(true);
mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});

View file

@ -2016,7 +2016,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js?1"></script>

View file

@ -376,7 +376,7 @@ var RLottie = (function () {
return false;
}
initApi(function() {
initPlayer(el, options);
el && initPlayer(el, options);
});
}

View file

@ -213,7 +213,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>mainInitTgStickers({"maxDeviceRatio":2,"cachingModulo":4});
backToTopInit("Go up");

View file

@ -270,7 +270,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>mainInitRetinaVideos();
mainInitLogo("\/img\/t_logo_sprite.svg");

View file

@ -270,7 +270,7 @@
</div>
</div>
<script src="/js/main.js?47"></script>
<script src="/js/tgsticker.js?29"></script>
<script src="/js/tgsticker.js?30"></script>
<script>mainInitRetinaVideos();
mainInitLogo("\/img\/t_logo_sprite.svg");

View file

@ -93,7 +93,7 @@
</picture>
</div>
<div class="cafe-item-label">
<span class="cafe-item-title">Tako</span>
<span class="cafe-item-title">Taco</span>
<span class="cafe-item-price">$3.99</span>
</div>
<div class="cafe-item-buttons">
@ -326,7 +326,7 @@
</picture>
</div>
<div class="cafe-order-item-label">
<div class="cafe-order-item-title">Tako <span class="cafe-order-item-counter"><span class="js-order-item-counter">1</span>x</span></div>
<div class="cafe-order-item-title">Taco <span class="cafe-order-item-counter"><span class="js-order-item-counter">1</span>x</span></div>
<div class="cafe-order-item-description">Mucho más</div>
</div>
<div class="cafe-order-item-price js-order-item-price">$3.99</div>
@ -440,7 +440,7 @@
<div class="cafe-status js-status"></div>
</div>
<script src="https://tg.dev/js/jquery.min.js"></script>
<script src="https://tg.dev/js/tgsticker.js?29"></script>
<script src="https://tg.dev/js/tgsticker.js?30"></script>
<script src="/js/cafe.js?27"></script>
<script>Cafe.init({"apiUrl":"\/cafe\/api","mode":null,"userId":0,"userHash":null});</script>
</body>