Update content of files

This commit is contained in:
GitHub Action 2021-12-31 13:56:32 +00:00
parent 5b0560601e
commit 63ef1565cd
14 changed files with 35 additions and 28 deletions

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -103,13 +103,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -103,13 +103,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -103,13 +103,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -219,13 +219,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -211,13 +211,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -629,7 +629,7 @@ var NewAd = {
var message = null;
var curPreviewFormData = NewAd.getPreviewFormData();
if (Aj.state.initPreviewFormData != curPreviewFormData) {
message = l('WEB_LEAVE_PAGE_CONFIRM_TEXT');
message = l('WEB_LEAVE_FORM_CONFIRM_TEXT');
}
if (message) {
var message_html = $('<div>').text(message).html();
@ -681,7 +681,6 @@ var NewAd = {
var $submitBtn = $('.submit-form-btn', $previewPopup);
$submitBtn.on('click', previewSave);
var previewCancel = function() {
state.initPreviewFormData = NewAd.getPreviewFormData();
closePopup($previewPopup);
}
var $cancelBtn = $('.cancel-form-btn', $previewPopup);
@ -700,6 +699,7 @@ var NewAd = {
$submitBtn.off('click', previewSave);
$cancelBtn.off('click', previewCancel);
$previewPopup.remove();
state.initPreviewFormData = NewAd.getPreviewFormData();
});
openPopup($previewPopup, {
closeByClickOutside: '.popup-no-close',

View file

@ -151,13 +151,13 @@
<script src="/js/bootstrap.min.js"></script>
<script src="/js/main-aj.js?56"></script>
<script src="/js/widget-frame.js?56"></script>
<script src="/js/promote.js?47"></script>
<script src="/js/promote.js?48"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?6"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?16"></script>
<script>ajInit({"version":540,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":541,"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

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;

View file

@ -388,8 +388,9 @@ function initScrollVideos(desktop) {
for (var i = 0; i < pageVideos.length; i++) {
var videoEl = pageVideos[i];
videoEl.setAttribute('vindex', index++);
videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto');
videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto';
var preloadValue = i >= preloadVideos ? 'metadata' : 'auto';
videoEl.setAttribute('preload', preloadValue);
videoEl.preload = preloadValue;
if (desktop) {
videoEl.removeAttribute('controls');
videoEl.autoplay = false;