mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-08 10:24:43 +01:00
Update content of files
This commit is contained in:
parent
7abfdd35ff
commit
2176677f7b
9 changed files with 98 additions and 19 deletions
|
@ -24,7 +24,7 @@
|
|||
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="//telegram.org/css/telegram.css?240" rel="stylesheet">
|
||||
<link href="//telegram.org/css/widget-frame.css?67" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?95" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?96" rel="stylesheet">
|
||||
<link href="//telegram.org/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="//telegram.org/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -129,14 +129,14 @@
|
|||
<script src="//telegram.org/js/main-aj.js?70"></script>
|
||||
<script src="//telegram.org/js/main.js?47"></script>
|
||||
<script src="//telegram.org/js/widget-frame.js?62"></script>
|
||||
<script src="//telegram.org/js/promote.js?92"></script>
|
||||
<script src="//telegram.org/js/promote.js?93"></script>
|
||||
<script src="//telegram.org/js/jquery-ui.min.js?1"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?18"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?19"></script>
|
||||
<script src="//telegram.org/js/tchart.min.js?18"></script>
|
||||
<script src="//telegram.org/js/health.js?20"></script>
|
||||
<script src="//telegram.org/js/tgsticker.js?31"></script>
|
||||
|
||||
<script>ajInit({"version":1018,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":1021,"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 <b>ads.telegram.org<\/b> as an exception to manage your promoted messages."});
|
||||
Ads.init();
|
||||
Aj.onLoad(function(state) {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="//telegram.org/css/telegram.css?240" rel="stylesheet">
|
||||
<link href="//telegram.org/css/widget-frame.css?67" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?95" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?96" rel="stylesheet">
|
||||
<link href="//telegram.org/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="//telegram.org/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -129,14 +129,14 @@
|
|||
<script src="//telegram.org/js/main-aj.js?70"></script>
|
||||
<script src="//telegram.org/js/main.js?47"></script>
|
||||
<script src="//telegram.org/js/widget-frame.js?62"></script>
|
||||
<script src="//telegram.org/js/promote.js?92"></script>
|
||||
<script src="//telegram.org/js/promote.js?93"></script>
|
||||
<script src="//telegram.org/js/jquery-ui.min.js?1"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?18"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?19"></script>
|
||||
<script src="//telegram.org/js/tchart.min.js?18"></script>
|
||||
<script src="//telegram.org/js/health.js?20"></script>
|
||||
<script src="//telegram.org/js/tgsticker.js?31"></script>
|
||||
|
||||
<script>ajInit({"version":1018,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":1021,"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 <b>ads.telegram.org<\/b> as an exception to manage your promoted messages."});
|
||||
openPopup('#login-popup-container');
|
||||
Ads.init();
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="//telegram.org/css/telegram.css?240" rel="stylesheet">
|
||||
<link href="//telegram.org/css/widget-frame.css?67" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?95" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?96" rel="stylesheet">
|
||||
<link href="//telegram.org/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="//telegram.org/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -255,14 +255,14 @@
|
|||
<script src="//telegram.org/js/main-aj.js?70"></script>
|
||||
<script src="//telegram.org/js/main.js?47"></script>
|
||||
<script src="//telegram.org/js/widget-frame.js?62"></script>
|
||||
<script src="//telegram.org/js/promote.js?92"></script>
|
||||
<script src="//telegram.org/js/promote.js?93"></script>
|
||||
<script src="//telegram.org/js/jquery-ui.min.js?1"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?18"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?19"></script>
|
||||
<script src="//telegram.org/js/tchart.min.js?18"></script>
|
||||
<script src="//telegram.org/js/health.js?20"></script>
|
||||
<script src="//telegram.org/js/tgsticker.js?31"></script>
|
||||
|
||||
<script>ajInit({"version":1018,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":1021,"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 <b>ads.telegram.org<\/b> as an exception to manage your promoted messages."});
|
||||
window.initDevPageNav&&initDevPageNav();
|
||||
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="//telegram.org/css/telegram.css?240" rel="stylesheet">
|
||||
<link href="//telegram.org/css/widget-frame.css?67" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?95" rel="stylesheet">
|
||||
<link href="//telegram.org/css/promote.css?96" rel="stylesheet">
|
||||
<link href="//telegram.org/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="//telegram.org/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -174,14 +174,14 @@
|
|||
<script src="//telegram.org/js/main-aj.js?70"></script>
|
||||
<script src="//telegram.org/js/main.js?47"></script>
|
||||
<script src="//telegram.org/js/widget-frame.js?62"></script>
|
||||
<script src="//telegram.org/js/promote.js?92"></script>
|
||||
<script src="//telegram.org/js/promote.js?93"></script>
|
||||
<script src="//telegram.org/js/jquery-ui.min.js?1"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?18"></script>
|
||||
<script src="//telegram.org/js/jquery-ex.js?19"></script>
|
||||
<script src="//telegram.org/js/tchart.min.js?18"></script>
|
||||
<script src="//telegram.org/js/health.js?20"></script>
|
||||
<script src="//telegram.org/js/tgsticker.js?31"></script>
|
||||
|
||||
<script>ajInit({"version":1018,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":1021,"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 <b>ads.telegram.org<\/b> as an exception to manage your promoted messages."});
|
||||
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
|
||||
Ads.init();
|
||||
|
|
|
@ -903,7 +903,12 @@
|
|||
});
|
||||
$field.trigger('datachange');
|
||||
});
|
||||
$select.on('datachange', function(e) {
|
||||
$select.on('contentchange.select', function(e) {
|
||||
if (e.target === this) {
|
||||
$field.trigger('contentchange');
|
||||
}
|
||||
});
|
||||
$select.on('datachange.select', function(e) {
|
||||
if (e.target === this) {
|
||||
$field.trigger('datachange');
|
||||
}
|
||||
|
|
|
@ -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?18"></script>
|
||||
<script src="/js/jquery-ex.js?19"></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!<\/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!<\/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"}};
|
||||
|
|
|
@ -548,6 +548,7 @@ a:hover img.emoji {
|
|||
opacity: 0;
|
||||
}
|
||||
.select-list-item,
|
||||
.select-list-loading,
|
||||
.select-list-no-results {
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
|
@ -567,6 +568,7 @@ a:hover img.emoji {
|
|||
font-size: 12px;
|
||||
color: #a8a8a8;
|
||||
}
|
||||
.select-list-loading,
|
||||
.select-list-no-results {
|
||||
color: #a8a8a8;
|
||||
cursor: auto;
|
||||
|
|
7
data/web/telegram.org/js/jquery-ex.js
vendored
7
data/web/telegram.org/js/jquery-ex.js
vendored
|
@ -903,7 +903,12 @@
|
|||
});
|
||||
$field.trigger('datachange');
|
||||
});
|
||||
$select.on('datachange', function(e) {
|
||||
$select.on('contentchange.select', function(e) {
|
||||
if (e.target === this) {
|
||||
$field.trigger('contentchange');
|
||||
}
|
||||
});
|
||||
$select.on('datachange.select', function(e) {
|
||||
if (e.target === this) {
|
||||
$field.trigger('datachange');
|
||||
}
|
||||
|
|
|
@ -444,6 +444,7 @@ var Ads = {
|
|||
return $.trim(str).toLowerCase();
|
||||
},
|
||||
renderItem: options.renderItem,
|
||||
appendToItems: options.appendToItems,
|
||||
renderSelectedItem: options.renderSelectedItem,
|
||||
renderNoItems: function(q) {
|
||||
return q && options.l_no_items_found ? '<div class="select-list-no-results">' + options.l_no_items_found + '</div>' : '';
|
||||
|
@ -3926,6 +3927,15 @@ var TransferFunds = {
|
|||
renderSelectedItem: function(val, item) {
|
||||
return '<div class="selected-item' + (item.photo ? ' has-photo' : '') + '" data-val="' + cleanHTML(val.toString()) + '">' + (item.photo ? '<div class="selected-item-photo">' + item.photo + '</div>' : '') + '<span class="close"></span><div class="label">' + item.name + '</div></div>';
|
||||
},
|
||||
appendToItems: function(query, result_count) {
|
||||
if (Aj.state.accountItemsLoading) {
|
||||
return '<div class="select-list-item select-list-loading dots-animated">' + l('WEB_SELECT_LOADING', 'Loading') + '</div>';
|
||||
}
|
||||
return '';
|
||||
},
|
||||
getData: function(query, items) {
|
||||
return TransferFunds.getAccountsData(items);
|
||||
},
|
||||
onEnter: TransferFunds.onAccountSearch,
|
||||
onChange: TransferFunds.onAccountChange
|
||||
});
|
||||
|
@ -3937,6 +3947,63 @@ var TransferFunds = {
|
|||
clearTimeout(Aj.state.transferTo);
|
||||
});
|
||||
},
|
||||
getAccountsData: function(items) {
|
||||
if (Aj.state.accountItemsNextOffset === false) {
|
||||
return items;
|
||||
}
|
||||
Aj.state.accountItemsLoading = true;
|
||||
var owner_id = Aj.state.ownerId;
|
||||
var $fieldEl = Aj.state.$form.field('account');
|
||||
var next_offset = Aj.state.accountItemsNextOffset || 0;
|
||||
Aj.state.accountItemsNextOffset = false;
|
||||
TransferFunds.loadAccountsData({
|
||||
owner_id: owner_id,
|
||||
offset: next_offset
|
||||
}, {items: items}, function() {
|
||||
$fieldEl.trigger('contentchange');
|
||||
}, function() {
|
||||
Aj.state.accountItemsLoading = false;
|
||||
$fieldEl.trigger('dataready').trigger('datachange');
|
||||
});
|
||||
return items;
|
||||
},
|
||||
loadAccountsData: function(params, opts, onUpdate, onReady) {
|
||||
Aj.apiRequest('getAccountsForTransfer', params, function(result) {
|
||||
if (result.error) {
|
||||
if (result.field) {
|
||||
onReady && onReady();
|
||||
var $field = Aj.state.$form.field(result.field);
|
||||
if ($field.size()) {
|
||||
Ads.showFieldError($field, result.error, true);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!opts.retry) opts.retry = 1;
|
||||
else opts.retry++;
|
||||
setTimeout(function(){ TransferFunds.loadAccountsData(params, opts, onUpdate, onReady); }, opts.retry * 1000);
|
||||
}
|
||||
} else {
|
||||
if (opts.retry) {
|
||||
opts.retry = 0;
|
||||
}
|
||||
if (result.items) {
|
||||
var items = result.items;
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
var item = items[i];
|
||||
item._values = [item.name.toLowerCase()];
|
||||
opts.items.push(item);
|
||||
}
|
||||
onUpdate && onUpdate();
|
||||
}
|
||||
if (result.next_offset) {
|
||||
params.offset = result.next_offset;
|
||||
TransferFunds.loadAccountsData(params, opts, onUpdate, onReady);
|
||||
} else {
|
||||
onReady && onReady();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
onToggleAmountSign: function(e) {
|
||||
e.preventDefault();
|
||||
Aj.state.$form.toggleClass('decr');
|
||||
|
|
Loading…
Add table
Reference in a new issue