Update content of files

This commit is contained in:
GitHub Action 2021-12-23 02:12:12 +00:00
parent 64f428a16d
commit c525f11bbf
8 changed files with 33 additions and 27 deletions

View file

@ -18,7 +18,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -102,14 +102,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init(); Ads.init();

View file

@ -18,7 +18,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -102,14 +102,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
openPopup('#login-popup-container'); openPopup('#login-popup-container');
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});

View file

@ -18,7 +18,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -102,14 +102,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init(); Ads.init();

View file

@ -79,6 +79,8 @@ span.tg-spoiler {
} }
.spoilers_hidden span.tg-spoiler { .spoilers_hidden span.tg-spoiler {
background: #e3e5e8; background: #e3e5e8;
}
.spoilers_hidden.spoilers_active span.tg-spoiler {
cursor: pointer; cursor: pointer;
} }
.spoilers_hidden span.tg-spoiler-text { .spoilers_hidden span.tg-spoiler-text {

View file

@ -19,7 +19,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -218,14 +218,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init(); Ads.init();

View file

@ -18,7 +18,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -210,14 +210,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init(); Ads.init();

View file

@ -1287,6 +1287,9 @@ function checkFrameSize() {
} }
}, postEl); }, postEl);
gec('.js-message_text', function() { gec('.js-message_text', function() {
TPost.initSpoilers(this, !gpeByClass(this, 'service_message'));
}, postEl);
gec('.js-message_reply_text', function() {
TPost.initSpoilers(this); TPost.initSpoilers(this);
}, postEl); }, postEl);
gec('.js-message_footer.compact', function() { gec('.js-message_footer.compact', function() {
@ -1363,14 +1366,14 @@ function checkFrameSize() {
xhr.send(null); xhr.send(null);
} }
}, },
initSpoilers: function(text_el) { initSpoilers: function(text_el, active) {
var spoilers = ge('span.tg-spoiler', text_el); var spoilers = ge('span.tg-spoiler', text_el);
if (spoilers.length) { if (spoilers.length) {
TPost.wrapSpoilers(spoilers); TPost.wrapSpoilers(spoilers);
TPost.wrapTextNodes(text_el); TPost.wrapTextNodes(text_el);
addClass(text_el, 'decorated-text'); addClass(text_el, 'decorated-text');
} }
TPost.hideSpoilers(text_el, spoilers); TPost.hideSpoilers(text_el, active);
}, },
wrapSpoilers: function(spoilers) { wrapSpoilers: function(spoilers) {
gec(spoilers, function() { gec(spoilers, function() {
@ -1391,17 +1394,18 @@ function checkFrameSize() {
} }
}); });
}, },
hideSpoilers: function(text_el, spoilers) { hideSpoilers: function(text_el, active) {
if (!spoilers) { var spoilers = ge('span.tg-spoiler', text_el);
spoilers = ge('span.tg-spoiler', text_el);
}
if (spoilers.length) { if (spoilers.length) {
addEvent(spoilers, 'click', TPost.eSpoilerShow); if (active) {
addClass(text_el, 'spoilers_active');
addEvent(spoilers, 'click', TPost.eSpoilerShow);
}
addClass(text_el, 'spoilers_hidden'); addClass(text_el, 'spoilers_hidden');
} }
}, },
eSpoilerShow: function(e) { eSpoilerShow: function(e) {
var text_el = gpeByClass(this, 'js-message_text'); var text_el = gpeByClass(this, 'spoilers_hidden');
if (!text_el) return false; if (!text_el) return false;
e.preventDefault(); e.preventDefault();
e.stopImmediatePropagation(); e.stopImmediatePropagation();
@ -1415,7 +1419,7 @@ function checkFrameSize() {
if (delay < 4000) delay = 4000; if (delay < 4000) delay = 4000;
if (delay > 45000) delay = 45000; if (delay > 45000) delay = 45000;
setTimeout(function() { setTimeout(function() {
TPost.hideSpoilers(text_el); TPost.hideSpoilers(text_el, true);
}, delay); }, delay);
} }
}; };

View file

@ -19,7 +19,7 @@
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.min.css?3" rel="stylesheet">
<link href="/css/bootstrap-extra.css?2" rel="stylesheet"> <link href="/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?215" rel="stylesheet"> <link href="/css/telegram.css?215" rel="stylesheet">
<link href="/css/widget-frame.css?52" rel="stylesheet"> <link href="/css/widget-frame.css?53" rel="stylesheet">
<link href="/css/promote.css?54" rel="stylesheet"> <link href="/css/promote.css?54" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet"> <link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet"> <link href="/css/tchart.min.css?10" rel="stylesheet">
@ -150,14 +150,14 @@
<script src="/js/jquery.min.js?1"></script> <script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script> <script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?55"></script> <script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script> <script src="/js/promote.js?47"></script>
<script src="/js/jquery-ui.min.js?1"></script> <script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script> <script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?15"></script> <script src="/js/health.js?15"></script>
<script>ajInit({"version":536,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":538,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."}); <script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init(); Ads.init();