mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 07:20:31 +01:00
Update content of files
This commit is contained in:
parent
5bcde71413
commit
7de5e1649c
8 changed files with 53 additions and 20 deletions
|
@ -22,7 +22,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -106,13 +106,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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();
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -106,13 +106,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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)});
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -106,13 +106,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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();
|
||||
|
|
|
@ -1863,10 +1863,13 @@ fieldset.pr-form-control-wrap .checkbox-item-block {
|
|||
.pr-form-column .pr-btn.btn-block {
|
||||
padding: 14px 22px;
|
||||
}
|
||||
.pr-form-info-block {
|
||||
.pr-form-info-block,
|
||||
.pr-form-info-checkbox {
|
||||
position: relative;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.pr-form-info-block {
|
||||
padding: 5px 0 5px 30px;
|
||||
}
|
||||
.pr-form-info-block b,
|
||||
|
@ -1891,6 +1894,13 @@ fieldset.pr-form-control-wrap .checkbox-item-block {
|
|||
.pr-form-info-block.minus:before {
|
||||
background-image: url('data:image/svg+xml,%3Csvg%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20width%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m10%200c5.52%200%2010%204.48%2010%2010s-4.48%2010-10%2010-10-4.48-10-10%204.48-10%2010-10zm4%209h-8c-.55%200-1%20.45-1%201s.45%201%201%201h8c.55%200%201-.45%201-1s-.45-1-1-1z%22%20fill%3D%22%23d75959%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
|
||||
}
|
||||
.pr-form-info-checkbox .checkbox-item-block {
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
.pr-form-info-checkbox .checkbox-item-block > .checkbox-label {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.pr-draft-btn-wrap {
|
||||
position: relative;
|
||||
opacity: 0;
|
||||
|
@ -1989,6 +1999,12 @@ fieldset.pr-form-control-wrap .checkbox-item-block {
|
|||
.pr-form-info-block {
|
||||
padding-left: 40px;
|
||||
}
|
||||
.pr-form-info-checkbox .checkbox-item-block {
|
||||
padding-left: 9px;
|
||||
}
|
||||
.pr-form-info-checkbox .checkbox-item-block > .checkbox-label {
|
||||
margin-left: 11px;
|
||||
}
|
||||
.pr-form-info-block:before {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -222,13 +222,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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();
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -214,13 +214,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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();
|
||||
|
|
|
@ -557,6 +557,9 @@ var NewAd = {
|
|||
photo: result.channel.photo,
|
||||
username: result.channel.username
|
||||
};
|
||||
if (result.channel.ask_outside) {
|
||||
item.ask_outside = result.channel.ask_outside;
|
||||
}
|
||||
$fieldEl.trigger('selectval', [item, true]);
|
||||
$fieldEl.data('prevval', '');
|
||||
}
|
||||
|
@ -715,7 +718,7 @@ var NewAd = {
|
|||
return $previewPopup;
|
||||
},
|
||||
updateAdTargetOverview: function() {
|
||||
var len = {}, lang_params = {};
|
||||
var len = {}, lang_params = {}, need_outside_cb = false;
|
||||
for (var i = 0; i < Aj.state.selectList.length; i++) {
|
||||
var selectData = Aj.state.selectList[i];
|
||||
var field = selectData.field;
|
||||
|
@ -728,6 +731,9 @@ var NewAd = {
|
|||
for (var j = 0; j < value.length; j++) {
|
||||
var val = value[j], valFull = valueFull[val] || {};
|
||||
list.push(valFull.username ? '<a class="value" href="https://t.me/' + valFull.username + '" rel="noopener" target="_blank" dir="auto">' + valFull.name + '</a>' : '<span class="value" dir="auto">' + valFull.name + '</span>');
|
||||
if (valFull.ask_outside) {
|
||||
need_outside_cb = true;
|
||||
}
|
||||
}
|
||||
if (list.length > 1) {
|
||||
var last_item = list.pop();
|
||||
|
@ -764,6 +770,7 @@ var NewAd = {
|
|||
overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_EXCLUDE_CHANNELS', lang_params) + '</div>';
|
||||
}
|
||||
}
|
||||
$('.js-exclude-outside').toggleClass('hide', !need_outside_cb);
|
||||
$('.pr-target-overview', Aj.ajContainer).html(overview);
|
||||
},
|
||||
getFormData: function($form) {
|
||||
|
@ -781,6 +788,9 @@ var NewAd = {
|
|||
var vals = $form.field(selectData.field).data('value');
|
||||
values.push(vals.join(';'));
|
||||
}
|
||||
if ($form.field('exclude_outside').prop('checked')) {
|
||||
values.push('exclude_outside');
|
||||
}
|
||||
return values.join('|');
|
||||
},
|
||||
getPreviewFormData: function($form) {
|
||||
|
@ -839,6 +849,9 @@ var NewAd = {
|
|||
var values = $form.field(selectData.field).data('value');
|
||||
params[selectData.field] = values.join(';');
|
||||
}
|
||||
if ($form.field('exclude_outside').prop('checked')) {
|
||||
params.exclude_outside = 1;
|
||||
}
|
||||
NewAd.saveDraftAuto(true);
|
||||
$button.prop('disabled', true);
|
||||
Aj.apiRequest('createAd', params, function(result) {
|
||||
|
@ -897,6 +910,9 @@ var NewAd = {
|
|||
var values = $form.field(selectData.field).data('value');
|
||||
params[selectData.field] = values.join(';');
|
||||
}
|
||||
if ($form.field('exclude_outside').prop('checked')) {
|
||||
params.exclude_outside = 1;
|
||||
}
|
||||
Aj.apiRequest('saveAdDraft', params, function(result) {
|
||||
if (result.error) {
|
||||
return showAlert(result.error);
|
||||
|
@ -922,6 +938,7 @@ var NewAd = {
|
|||
var selectData = Aj.state.selectList[i];
|
||||
var values = $form.field(selectData.field).trigger('reset');
|
||||
}
|
||||
$form.field('exclude_outside').prop('checked', false);
|
||||
Aj.state.titleField.focusAndSelect();
|
||||
NewAd.updateAdPreview(Aj.state.$form, false);
|
||||
var curFormData = NewAd.getFormData($form);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||||
<link href="/css/telegram.css?230" rel="stylesheet">
|
||||
<link href="/css/widget-frame.css?59" rel="stylesheet">
|
||||
<link href="/css/promote.css?58" rel="stylesheet">
|
||||
<link href="/css/promote.css?59" rel="stylesheet">
|
||||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||||
|
||||
|
@ -154,13 +154,13 @@
|
|||
<script src="/js/bootstrap.min.js"></script>
|
||||
<script src="/js/main-aj.js?58"></script>
|
||||
<script src="/js/widget-frame.js?56"></script>
|
||||
<script src="/js/promote.js?49"></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/tchart.min.js?18"></script>
|
||||
<script src="/js/health.js?18"></script>
|
||||
|
||||
<script>ajInit({"version":575,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":577,"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();
|
||||
|
|
Loading…
Reference in a new issue