Update content of files

This commit is contained in:
GitHub Action 2022-10-30 09:13:27 +00:00
parent 1f4c939cae
commit 835caabfd1
13 changed files with 177 additions and 88 deletions

View file

@ -15,7 +15,7 @@
<link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css"> <link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css">
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.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/auction.css?24" rel="stylesheet"> <link href="/css/auction.css?26" rel="stylesheet">
</head> </head>
<body class="emoji_image no-transition"> <body class="emoji_image no-transition">
@ -36,11 +36,11 @@
<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?64"></script> <script src="/js/main-aj.js?64"></script>
<script src="/js/jquery-ex.js?13"></script> <script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script> <script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?23"></script> <script src="/js/auction.js?26"></script>
<script>ajInit({"version":363,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":369,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Main.init(); <script id="aj_script">Main.init();
</script> </script>
<script>Aj.pageLoaded();</script> <script>Aj.pageLoaded();</script>

View file

@ -110,6 +110,32 @@ var Main = {
$el.attr('data-prev-val', cur_value); $el.attr('data-prev-val', cur_value);
} }
}, },
fitUsername: function($el) {
$el.each(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) {
size -= 0.5;
if (size >= init_size * 0.75) {
$(this).css('font-size', size + 'px');
} else {
break;
}
}
var text = $(this).attr('title') || $(this).text();
var prefix_len = text.length - 3;
while (this.scrollWidth > this.offsetWidth &&
prefix_len > 3) {
prefix_len--;
$(this).text(text.substr(0, prefix_len) + '…' + text.substr(-3));
}
});
},
initViewport: function() { initViewport: function() {
if (!window.$viewportHelper) { if (!window.$viewportHelper) {
window.$viewportHelper = $('<div>').css({position: 'absolute', left: '-100px', top: '0', height: '100vh'}).appendTo('body'); window.$viewportHelper = $('<div>').css({position: 'absolute', left: '-100px', top: '0', height: '100vh'}).appendTo('body');
@ -406,6 +432,7 @@ var Auction = {
state.needUpdate = true; state.needUpdate = true;
state.updStateTo = setTimeout(Auction.updateState, Auction.UPDATE_PERIOD); state.updStateTo = setTimeout(Auction.updateState, Auction.UPDATE_PERIOD);
Assets.init(); Assets.init();
Account.init();
}); });
Aj.onUnload(function(state) { Aj.onUnload(function(state) {
Main.destroyForm(state.$bidForm); Main.destroyForm(state.$bidForm);
@ -415,7 +442,7 @@ var Auction = {
}, },
updateState: function() { updateState: function() {
Aj.apiRequest('updateAuction', { Aj.apiRequest('updateAuction', {
address: Aj.state.auctionAddress, username: Aj.state.username,
lt: Aj.state.auctionLastLt lt: Aj.state.auctionLastLt
}, function(result) { }, function(result) {
if (result.html) { if (result.html) {
@ -767,6 +794,108 @@ var Assets = {
} }
}; };
var Account = {
init: function() {
Aj.onLoad(function(state) {
$(document).on('click.curPage', '.js-blockchain-transfer-btn', Account.eBlockchainTransfer);
$(document).on('click.curPage', '.js-do-transfer-btn', Account.eBlockchainTranswerInit);
state.$transferInitPopup = $('.js-transfer-init-popup');
state.$transferCheckPopup = $('.js-transfer-check-popup');
});
Aj.onUnload(function(state) {
clearTimeout(state.transferTimeout);
});
},
eBlockchainTransfer: function(e) {
e.stopImmediatePropagation();
e.preventDefault();
var $actions = $(this).closest('.js-actions');
var username = $actions.attr('data-username');
var $popup = Aj.state.$transferInitPopup;
$('.js-username', $popup).html('@' + username);
$popup.data('username', username);
openPopup($popup);
},
eBlockchainTranswerInit: function(e) {
e.preventDefault();
var $btn = $(this);
if ($btn.data('loading')) {
return false;
}
var $popup = Aj.state.$transferInitPopup;
var username = $popup.data('username');
$btn.data('loading', true);
Aj.apiRequest('initBlockchainTransfer', {
username: username
}, function(result) {
$btn.data('loading', false);
closePopup($popup);
if (result.error) {
return showAlert(result.error);
}
if (result.confirmed) {
return Account.blockchainTranswerStart($popup, result);
}
Aj.state.$transferCheckPopup.data('username', username);
openPopup(Aj.state.$transferCheckPopup, {
onOpen: function() {
Account.blockchainTranswerCheck(result.req_id);
},
onClose: function() {
clearTimeout(Aj.state.transferTimeout);
}
});
});
},
blockchainTranswerCheck: function(req_id) {
if (Aj.state.$transferCheckPopup.hasClass('hide')) {
return false;
}
clearTimeout(Aj.state.transferTimeout);
var $popup = Aj.state.$transferCheckPopup;
Aj.state.transferTimeout = setTimeout(function() {
Aj.apiRequest('checkBlockchainTransfer', {
id: req_id
}, function(result) {
if (result.error) {
if (result.declined) {
closePopup($popup);
}
return showAlert(result.error);
}
if (result.confirmed) {
Account.blockchainTranswerStart($popup, result);
} else {
Account.blockchainTranswerCheck(req_id);
}
});
}, 700);
},
blockchainTranswerStart: function($popup, data) {
var username = $popup.data('username');
var amount = $('.js-amount', Aj.state.$transferInitPopup).html();
closePopup($popup);
QR.showPopup({
data: data,
title: l('WEB_POPUP_QR_BLOCKCHAIN_TRANSFER_HEADER'),
description: l('WEB_POPUP_QR_BLOCKCHAIN_TRANSFER_TEXT', {
amount: '<span class="icon-before icon-ton-text">' + amount + '</span>'
}),
qr_label: '@' + username,
tk_label: l('WEB_POPUP_QR_BLOCKCHAIN_TRANSFER_TK_BUTTON'),
terms_label: l('WEB_POPUP_QR_PROCEED_TERMS'),
onConfirm: function(by_server) {
if (by_server) {
$(Aj.ajContainer).one('page:load', function() {
showAlert(l('WEB_BLOCKCHAIN_TRANSFER_SENT'));
});
}
Aj.location('/username/' + username);
}
});
}
};
var MyBids = { var MyBids = {
init: function() { init: function() {
Aj.onLoad(function(state) { Aj.onLoad(function(state) {
@ -800,7 +929,8 @@ var QR = {
terms_label: null, terms_label: null,
data: null, data: null,
request: null, request: null,
onConfirm: null onConfirm: null,
onExpire: null
}, options); }, options);
var ua = (navigator.userAgent || '').toLowerCase(), var ua = (navigator.userAgent || '').toLowerCase(),
is_ios = ua.indexOf('iphone') >= 0 || is_ios = ua.indexOf('iphone') >= 0 ||
@ -837,10 +967,10 @@ var QR = {
} }
}; };
var onExpire = function() { var onExpire = function() {
options.onExpire && options.onExpire();
closePopup($popup); closePopup($popup);
showAlert('QR code expired');
}; };
var setData = function(data) { var setData = function(data, req) {
QR.getUrl(data.qr_link, function(url) { QR.getUrl(data.qr_link, function(url) {
var urlObj = $popup.data('qrCodeUrlObj'); var urlObj = $popup.data('qrCodeUrlObj');
if (urlObj) { if (urlObj) {
@ -851,6 +981,21 @@ var QR = {
$tonkeeperBtn.attr('data-href', data.link); $tonkeeperBtn.attr('data-href', data.link);
$popup.removeClass('qr-inactive'); $popup.removeClass('qr-inactive');
}); });
if (expTimeout = $popup.data('expTimeout')) {
clearTimeout(expTimeout);
}
if (data.expire_after) {
expTimeout = setTimeout(onExpire, data.expire_after * 1000);
$popup.data('expTimeout', expTimeout);
var retry_after = data.expire_after - 10;
if (retry_after > 0 && data.can_retry) {
var retryTimeout = setTimeout(loadData, retry_after * 1000, req);
$popup.data('retryTimeout', retryTimeout);
}
}
if (data.check_method) {
checkAction(data.check_method, data.check_params);
}
}; };
var loadData = function(req) { var loadData = function(req) {
var retryTimeout, expTimeout; var retryTimeout, expTimeout;
@ -864,23 +1009,7 @@ var QR = {
} }
return showAlert(result.error); return showAlert(result.error);
} }
setData(result); setData(result, req);
if (expTimeout = $popup.data('expTimeout')) {
clearTimeout(expTimeout);
}
if (result.expire_after) {
expTimeout = setTimeout(onExpire, result.expire_after * 1000);
$popup.data('expTimeout', expTimeout);
var retry_after = result.expire_after - 10;
if (retry_after > 0) {
var retryTimeout = setTimeout(loadData, retry_after * 1000, req);
$popup.data('retryTimeout', retryTimeout);
}
}
if (result.check_method) {
checkAction(result.check_method, result.check_params);
}
}); });
}; };
var checkAction = function(method, params) { var checkAction = function(method, params) {
@ -906,7 +1035,7 @@ var QR = {
$popup.data('checkTimeout', checkTimeout); $popup.data('checkTimeout', checkTimeout);
}; };
if (options.data) { if (options.data) {
setData(options.data); setData(options.data, options.request);
} else if (options.request) { } else if (options.request) {
loadData(options.request); loadData(options.request);
} }
@ -914,7 +1043,7 @@ var QR = {
$confirmedBtn.on('click', onConfirmedPress); $confirmedBtn.on('click', onConfirmedPress);
$(document).on('keydown', onEnterPress); $(document).on('keydown', onEnterPress);
$popup.one('popup:open', function() { $popup.one('popup:open', function() {
$('.fit-text', $popup).fitText(); Main.fitUsername($('.fit-text', $popup));
}); });
$popup.one('popup:close', function() { $popup.one('popup:close', function() {
$tonkeeperBtn.off('click', tkOpen); $tonkeeperBtn.off('click', tkOpen);

View file

@ -15,7 +15,7 @@
<link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css"> <link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css">
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.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/auction.css?24" rel="stylesheet"> <link href="/css/auction.css?26" rel="stylesheet">
</head> </head>
<body class="emoji_image no-transition"> <body class="emoji_image no-transition">
@ -36,11 +36,11 @@
<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?64"></script> <script src="/js/main-aj.js?64"></script>
<script src="/js/jquery-ex.js?13"></script> <script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script> <script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?23"></script> <script src="/js/auction.js?26"></script>
<script>ajInit({"version":363,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":369,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Main.init(); <script id="aj_script">Main.init();
</script> </script>
<script>Aj.pageLoaded();</script> <script>Aj.pageLoaded();</script>

View file

@ -15,7 +15,7 @@
<link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css"> <link href="/css/font-roboto.css?1" rel="stylesheet" type="text/css">
<link href="/css/bootstrap.min.css?3" rel="stylesheet"> <link href="/css/bootstrap.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/auction.css?24" rel="stylesheet"> <link href="/css/auction.css?26" rel="stylesheet">
</head> </head>
<body class="emoji_image no-transition"> <body class="emoji_image no-transition">
@ -36,11 +36,11 @@
<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?64"></script> <script src="/js/main-aj.js?64"></script>
<script src="/js/jquery-ex.js?13"></script> <script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script> <script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?23"></script> <script src="/js/auction.js?26"></script>
<script>ajInit({"version":363,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":369,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Main.init(); <script id="aj_script">Main.init();
</script> </script>
<script>Aj.pageLoaded();</script> <script>Aj.pageLoaded();</script>

View file

@ -127,26 +127,6 @@
} }
return this.prepareSlideY(callback).toggleClass('shide', state); return this.prepareSlideY(callback).toggleClass('shide', state);
}; };
$.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) {
size -= 0.5;
if (size >= init_size * 0.75) {
$(this).css('font-size', size + 'px');
} else {
break;
}
}
return this;
});
};
$.fn.highlight = function(delay) { $.fn.highlight = function(delay) {
var $this = this; var $this = this;
$this.addClass('highlight'); $this.addClass('highlight');

View file

@ -1107,7 +1107,7 @@
<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/jquery-ex.js?13"></script> <script src="/js/jquery-ex.js?14"></script>
<script src="/js/instantview.js?72"></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"}}; <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

@ -108,11 +108,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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

@ -108,11 +108,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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

@ -108,11 +108,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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,11 +224,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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

@ -219,11 +219,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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

@ -127,26 +127,6 @@
} }
return this.prepareSlideY(callback).toggleClass('shide', state); return this.prepareSlideY(callback).toggleClass('shide', state);
}; };
$.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) {
size -= 0.5;
if (size >= init_size * 0.75) {
$(this).css('font-size', size + 'px');
} else {
break;
}
}
return this;
});
};
$.fn.highlight = function(delay) { $.fn.highlight = function(delay) {
var $this = this; var $this = this;
$this.addClass('highlight'); $this.addClass('highlight');

View file

@ -156,11 +156,11 @@
<script src="/js/widget-frame.js?60"></script> <script src="/js/widget-frame.js?60"></script>
<script src="/js/promote.js?51"></script> <script src="/js/promote.js?51"></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?13"></script> <script src="/js/jquery-ex.js?14"></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>ajInit({"version":829,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script> <script>ajInit({"version":830,"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();