Update content of files

This commit is contained in:
GitHub Action 2022-10-08 23:50:09 +00:00
parent b7054c3daf
commit b29030e67e
41 changed files with 143 additions and 90 deletions

View file

@ -220,7 +220,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -320,7 +320,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-radius="' + escapeHTML(radius_value) + '"';
}
if (widget_update) {
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
$('#widget_container').html(code);
}
var post_link = $('#post_link').val() || 'https://t.me/telegram/83',
@ -333,7 +333,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-onauth="onTelegramAuth(user)"';
html += "\n<script type=\"text/javascript\">\n function onTelegramAuth(user) {\n alert('Logged in as ' + user.first_name + ' ' + user.last_name + ' (' + user.id + (user.username ? ', @' + user.username : '') + ')');\n }\n<\/script>";
}
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -234,7 +234,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -234,7 +234,7 @@ function telegramForwardButton($url, $text = &#39;&#39;) {
var button_size = form.button_size.value;
var button_text = form.button_text.value;
tfi.removeClass('is-invalid');
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -198,12 +198,12 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></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>ajInit({"version":633,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":634,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj._useScrollHack=true;
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -220,7 +220,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -320,7 +320,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-radius="' + escapeHTML(radius_value) + '"';
}
if (widget_update) {
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
$('#widget_container').html(code);
}
var post_link = $('#post_link').val() || 'https://t.me/telegram/83',
@ -333,7 +333,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-onauth="onTelegramAuth(user)"';
html += "\n<script type=\"text/javascript\">\n function onTelegramAuth(user) {\n alert('Logged in as ' + user.first_name + ' ' + user.last_name + ' (' + user.id + (user.username ? ', @' + user.username : '') + ')');\n }\n<\/script>";
}
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -234,7 +234,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -234,7 +234,7 @@ function telegramForwardButton($url, $text = &#39;&#39;) {
var button_size = form.button_size.value;
var button_text = form.button_text.value;
tfi.removeClass('is-invalid');
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -220,7 +220,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>DiscussionWidget.init({"default_link":"https:\/\/t.me\/contest\/198","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -320,7 +320,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-radius="' + escapeHTML(radius_value) + '"';
}
if (widget_update) {
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="samplebot" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + ' data-onauth="onTelegramAuth(user)"' + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>';
$('#widget_container').html(code);
}
var post_link = $('#post_link').val() || 'https://t.me/telegram/83',
@ -333,7 +333,7 @@ function updateWidget(widget_update, init) {
attrs += ' data-onauth="onTelegramAuth(user)"';
html += "\n<script type=\"text/javascript\">\n function onTelegramAuth(user) {\n alert('Logged in as ' + user.first_name + ' ' + user.last_name + ' (' + user.id + (user.username ? ', @' + user.username : '') + ')');\n }\n<\/script>";
}
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-login="' + escapeHTML(bot_username || 'samplebot') + '" data-size="' + escapeHTML(size) + '"' + (!userpic ? ' data-userpic="false"' : '') + attrs + (form.request_write.checked ? ' data-request-access="write"' : '') + '><\/script>' + html;
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -234,7 +234,7 @@
<script src="/js/bootstrap.min.js?1"></script>
<script src="/js/core-widgets.js?1"></script>
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?19"});
<script>PostWidget.init({"default_link":"https:\/\/t.me\/telegram\/83","link_error":"Invalid post link","widget_script":"https:\/\/telegram.org\/js\/telegram-widget.js?20"});
backToTopInit("Go up");
removePreloadInit();
</script>

View file

@ -234,7 +234,7 @@ function telegramForwardButton($url, $text = &#39;&#39;) {
var button_size = form.button_size.value;
var button_text = form.button_text.value;
tfi.removeClass('is-invalid');
var code = '<script async src="https://telegram.org/js/telegram-widget.js?19" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
var code = '<script async src="https://telegram.org/js/telegram-widget.js?20" data-telegram-share-url="' + escapeHTML(share_url) + '"' + (share_comment ? ' data-comment="' + escapeHTML(share_comment) + '"' : '') + (button_size ? ' data-size="' + escapeHTML(button_size) + '"' : '') + (button_text ? ' data-text="' + escapeHTML(button_text) + '"' : '') + '><\/script>';
$('#embed_code').val(code);
$('#embed_code').height(0);
$('#embed_code').height($('#embed_code').get(0).scrollHeight);

View file

@ -124,11 +124,18 @@
};
$.fn.fitText = function() {
return this.map(function(){
var init_size = $(this).data('init-size');
if (!init_size) {
init_size = parseInt($(this).css('font-size'));
$(this).data('init-size', init_size);
}
var size = parseInt($(this).css('font-size'));
size = parseInt(size);
while (this.scrollWidth > this.offsetWidth) {
var size = $(this).css('font-size');
size = parseInt(size) - 0.5;
$(this).css('font-size', size + 'px');
if (size <= 9) {
size -= 0.5;
if (size >= init_size * 0.75) {
$(this).css('font-size', size + 'px');
} else {
break;
}
}

View file

@ -1107,7 +1107,7 @@
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/instantview.js?72"></script>
<script>App={"baseUrl":"\/api\/templates?hash=telegram-crawler","frameOrigin":"https:\/\/ivwebcontent.telegram.org","lang":{"delete_url_confirmation":"Are you sure you want to stop tracking this URL?","delete_url_confirm_button":"Delete","not_ready_for_contest_alert":"Sorry, this template covers too few article URLs that generate <b>valid Instant View pages<\/b> to enter the contest.<br\/><br\/>Please add at least <b>10 different URLs<\/b> from this website to your template and press <b>Track Changes<\/b> on each of them to make sure they are <a href=\"https:\/\/instantview.telegram.org\/checklist\">processed correctly<\/a> and generate valid pages.","submit_for_contest_confirmation":"Are you sure you want to submit this template for the contest?<br\/><br\/><b>NEW&#33;<\/b> Check out the <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/contest\/\/links\">list of potentially problematic links<\/a> for <b><\/b> and make sure that your template satisfies all the criteria for a <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/checklist\">perfect template<\/a>.<br\/><br\/>You can resubmit a fixed version later, but it will lose its place at the top of the list. All resubmissions will be considered new templates for the purposes of determining the winner.","submit_for_contest_confirm_button":"Confirm","submit_template_confirmation":"Are you sure you want to submit this template? <br\/>Make sure that your template satisfies all the criteria for a <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/checklist\">perfect template<\/a>.<br\/><br\/>Note that it will <b>not<\/b> participate in contest.","submit_template_confirm_button":"Confirm","revoke_from_contest_confirmation":"Are you sure you want to revoke this template from the contest? You can resubmit a new version later, but your template will lose its place at the top of the list.","revoke_from_contest_confirm_button":"Revoke","revoke_template_confirmation":"Are you sure you want to revoke this template?<br\/><br\/>Note that it does <b>not<\/b> participate in contest.","revoke_template_confirm_button":"Revoke","resubmit_for_contest_confirmation":"Are you sure you want to resubmit this template for the contest? Your previous template will lose its place at the top of the list. <br\/><br\/><b>NEW&#33;<\/b> Check out the <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/contest\/\/links\">list of potentially problematic links<\/a> for <b><\/b> and make sure that your new version satisfies all the criteria for a <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/checklist\">perfect template<\/a>.","resubmit_for_contest_confirm_button":"Confirm","resubmit_template_confirmation":"Are you sure you want to resubmit this template? <br\/>Make sure that your template satisfies all the criteria for a <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/instantview.telegram.org\/checklist\">perfect template<\/a>.<br\/><br\/>Note that it will <b>not<\/b> participate in contest.","resubmit_template_confirm_button":"Confirm"}};

View file

@ -104,15 +104,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -104,15 +104,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
openPopup('#login-popup-container');
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});

View file

@ -104,15 +104,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -220,15 +220,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -214,15 +214,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -124,11 +124,18 @@
};
$.fn.fitText = function() {
return this.map(function(){
var init_size = $(this).data('init-size');
if (!init_size) {
init_size = parseInt($(this).css('font-size'));
$(this).data('init-size', init_size);
}
var size = parseInt($(this).css('font-size'));
size = parseInt(size);
while (this.scrollWidth > this.offsetWidth) {
var size = $(this).css('font-size');
size = parseInt(size) - 0.5;
$(this).css('font-size', size + 'px');
if (size <= 9) {
size -= 0.5;
if (size >= init_size * 0.75) {
$(this).css('font-size', size + 'px');
} else {
break;
}
}

View file

@ -17,8 +17,8 @@ function ajInit(options) {
}
var $progress = $('#aj_progress'),
progressBoxShadow = 'inset 0 2px 0 #39ade7',
progressNoBoxShadow = 'inset 0 0 0 #39ade7',
progressBoxShadow = 'inset 0 2px 0 var(--accent-color, #39ade7)',
progressNoBoxShadow = 'inset 0 0 0 var(--accent-color, #39ade7)',
progressTransition = 'width .3s linear, box-shadow .2s ease',
progressTo,
progressVal = 0;

View file

@ -2592,7 +2592,7 @@ function checkFrameSize() {
};
var TWidgetLogin = {
init: function(id, bot_id, params, init_auth, lang) {
init: function(id, bot_id, params, init_auth) {
initWidgetFrame({
auto_height: true,
auto_width: true
@ -2600,7 +2600,7 @@ function checkFrameSize() {
TWidgetLogin.widgetEl = document.getElementById(id);
TWidgetLogin.botId = bot_id;
TWidgetLogin.params = params;
TWidgetLogin.lang = lang;
TWidgetLogin.lang = (params || {}).lang;
var params_encoded = '', params_arr = [];
for (var k in params) {
params_arr.push(encodeURIComponent(k) + '=' + encodeURIComponent(params[k]));

View file

@ -152,15 +152,15 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/widget-frame.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?50"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?11"></script>
<script src="/js/jquery-ex.js?12"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script>ajInit({"version":818,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":821,"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."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -79,6 +79,18 @@
return false;
};
function isTgAuthFinished() {
var locationHash = '', re = /[#\?\&]tgAuthFinished=1$/;
try {
locationHash = location.hash.toString();
} catch (e) {}
if (re.test(locationHash)) {
location.hash = locationHash.replace(re, '');
return true;
}
return false;
}
function getXHR() {
if (navigator.appName == "Microsoft Internet Explorer"){
return new ActiveXObject("Microsoft.XMLHTTP");
@ -163,7 +175,10 @@
widgetId = widgetEl.getAttribute('data-telegram-login');
widgetsOrigin = getWidgetsOrigin('https://oauth.telegram.org', 'https://oauth.tg.dev');
widgetElId = 'telegram-login-' + widgetId.replace(/[^a-z0-9_]/ig, '-');
src = widgetsOrigin + '/embed/' + widgetId + '?origin=' + encodeURIComponent(location.origin || location.protocol + '//' + location.hostname);
src = widgetsOrigin + '/embed/' + widgetId + '?origin=' + encodeURIComponent(location.origin || location.protocol + '//' + location.hostname) + '&return_to=' + encodeURIComponent(location.href);
if (isTgAuthFinished()) {
widgetEl.setAttribute('data-init-auth', '1');
}
allowedAttrs = ['size', 'userpic', 'init_auth', 'request_access', 'radius', 'min_width', 'max_width', 'lang'];
defWidth = 186;
defHeight = 28;
@ -431,7 +446,29 @@
var TelegramLogin = {
popups: {},
auth: function(options, callback) {
options: null,
auth_callback: null,
_init: function(options, auth_callback) {
TelegramLogin.options = options;
TelegramLogin.auth_callback = auth_callback;
if (auth_callback &&
isTgAuthFinished()) {
TelegramLogin.getAuthData(options, function(origin, authData) {
auth_callback(authData);
});
}
},
_open: function(callback) {
TelegramLogin._auth(TelegramLogin.options, function(authData) {
if (TelegramLogin.auth_callback) {
TelegramLogin.auth_callback(authData);
}
if (callback) {
callback(authData);
}
});
},
_auth: function(options, callback) {
var bot_id = parseInt(options.bot_id);
if (!bot_id) {
throw new Error('Bot id required');
@ -469,7 +506,7 @@
}
setTimeout(checkClose, 100, bot_id);
}
var popup_url = Telegram.Login.widgetsOrigin + '/auth?bot_id=' + encodeURIComponent(options.bot_id) + '&origin=' + encodeURIComponent(location.origin || location.protocol + '//' + location.hostname) + (options.request_access ? '&request_access=' + encodeURIComponent(options.request_access) : '') + (options.lang ? '&lang=' + encodeURIComponent(options.lang) : '');
var popup_url = Telegram.Login.widgetsOrigin + '/auth?bot_id=' + encodeURIComponent(options.bot_id) + '&origin=' + encodeURIComponent(location.origin || location.protocol + '//' + location.hostname) + (options.request_access ? '&request_access=' + encodeURIComponent(options.request_access) : '') + (options.lang ? '&lang=' + encodeURIComponent(options.lang) : '') + '&return_to=' + encodeURIComponent(location.href);
var popup = window.open(popup_url, 'telegram_oauth_bot' + bot_id, 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',status=0,location=0,menubar=0,toolbar=0');
TelegramLogin.popups[bot_id] = {
window: popup,
@ -520,7 +557,9 @@
window.Telegram.getWidgetInfo = getWidgetInfo;
window.Telegram.setWidgetOptions = setWidgetOptions;
window.Telegram.Login = {
auth: TelegramLogin.auth,
init: TelegramLogin._init,
open: TelegramLogin._open,
auth: TelegramLogin._auth,
widgetsOrigin: getWidgetsOrigin('https://oauth.telegram.org', 'https://oauth.tg.dev')
};

View file

@ -68,11 +68,11 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/themes.js?6"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script>ajInit({"version":544,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":545,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -68,11 +68,11 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/themes.js?6"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script>ajInit({"version":544,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":545,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">openPopup('#login-popup-container');
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -17,8 +17,8 @@ function ajInit(options) {
}
var $progress = $('#aj_progress'),
progressBoxShadow = 'inset 0 2px 0 #39ade7',
progressNoBoxShadow = 'inset 0 0 0 #39ade7',
progressBoxShadow = 'inset 0 2px 0 var(--accent-color, #39ade7)',
progressNoBoxShadow = 'inset 0 0 0 var(--accent-color, #39ade7)',
progressTransition = 'width .3s linear, box-shadow .2s ease',
progressTo,
progressVal = 0;

View file

@ -142,7 +142,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -150,7 +150,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -142,7 +142,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -150,7 +150,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">openPopup('#login-popup-container');
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -17,8 +17,8 @@ function ajInit(options) {
}
var $progress = $('#aj_progress'),
progressBoxShadow = 'inset 0 2px 0 #39ade7',
progressNoBoxShadow = 'inset 0 0 0 #39ade7',
progressBoxShadow = 'inset 0 2px 0 var(--accent-color, #39ade7)',
progressNoBoxShadow = 'inset 0 0 0 var(--accent-color, #39ade7)',
progressTransition = 'width .3s linear, box-shadow .2s ease',
progressTo,
progressVal = 0;

View file

@ -126,7 +126,7 @@ Telegram Support BIOS…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -134,7 +134,7 @@ Telegram Support BIOS…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -167,7 +167,7 @@ This was intended for volunteers of the Telegram…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -175,7 +175,7 @@ This was intended for volunteers of the Telegram…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -232,7 +232,7 @@ It will only be of interest to TSF members.…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -240,7 +240,7 @@ It will only be of interest to TSF members.…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">window.initDevPageNav&&initDevPageNav();
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -235,7 +235,7 @@ There&#39;s plenty of more urgent…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -243,7 +243,7 @@ There&#39;s plenty of more urgent…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">window.initDevPageNav&&initDevPageNav();
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -171,7 +171,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -179,7 +179,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">window.initDevPageNav&&initDevPageNav();
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -361,7 +361,7 @@ Every now and then users…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -369,7 +369,7 @@ Every now and then users…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">window.initDevPageNav&&initDevPageNav();
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -131,7 +131,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -139,7 +139,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -185,7 +185,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -193,7 +193,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">window.initDevPageNav&&initDevPageNav();
Aj.onLoad(function(state) {
function requestConfirmation(event) {

View file

@ -104,7 +104,7 @@
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -112,7 +112,7 @@
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();

View file

@ -165,7 +165,7 @@ There&#39;s a million things…">
</div></div>
<script src="/js/jquery.min.js?1"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?59"></script>
<script src="/js/main-aj.js?60"></script>
<script src="/js/main.js?46"></script>
<script src="/js/tsf.js?3"></script>
<script src="/js/jquery-ui.min.js?1"></script>
@ -173,7 +173,7 @@ There&#39;s a million things…">
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
<script>ajInit({"version":787,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":788,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();