Update content of files

This commit is contained in:
GitHub Action 2023-09-21 23:32:22 +00:00
parent b425155414
commit bdf1c76ce9
7 changed files with 25 additions and 13 deletions

View file

@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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

@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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

@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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

@ -224,14 +224,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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

@ -250,14 +250,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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.initDevPageNav&&initDevPageNav(); window.initDevPageNav&&initDevPageNav();
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)}); window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});

View file

@ -1099,6 +1099,17 @@ var NewAd = {
}); });
return $previewPopup; return $previewPopup;
}, },
isAudienceTargetOnly: function(len) {
if (!len.locations &&
!len.countries &&
!len.user_langs &&
!len.user_topics &&
!len.exclude_user_topics &&
len.audiences > 0) {
return true;
}
return false;
},
updateAdTargetOverview: function() { updateAdTargetOverview: function() {
var len = {}, lang_params = {}, need_outside_cb = false; var len = {}, lang_params = {}, need_outside_cb = false;
var target_type = Aj.state.$form.field('target_type').value(); var target_type = Aj.state.$form.field('target_type').value();
@ -1163,7 +1174,8 @@ var NewAd = {
} }
$('.js-exclude-outside').toggleClass('hide', !need_outside_cb); $('.js-exclude-outside').toggleClass('hide', !need_outside_cb);
} else if (target_type == 'users') { } else if (target_type == 'users') {
if (!len.locations && !len.countries) { if (!len.locations && !len.countries && !(NewAd.isAudienceTargetOnly(len) &&
Aj.state.audienceTargetOnlyAvailable)) {
overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_NOTHING') + '</div>'; overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_NOTHING') + '</div>';
} else { } else {
var user_targets = []; var user_targets = [];

View file

@ -157,14 +157,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script> <script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script> <script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script> <script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?67"></script> <script src="/js/promote.js?68"></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?15"></script> <script src="/js/jquery-ex.js?15"></script>
<script src="/js/tchart.min.js?18"></script> <script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script> <script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script> <script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":957,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":958,"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();