Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/ui/field/ |
Upload File : |
;(function() { "use strict"; BX.namespace("BX.Landing.UI.Field"); const bind = BX.Landing.Utils.bind; const fireCustomEvent = BX.Landing.Utils.fireCustomEvent; const getQueryParam = BX.Landing.Utils.getQueryParams; const remove = BX.Landing.Utils.remove; const create = BX.Landing.Utils.create; /** * Implements interface for works with text field * * @extends {BX.Landing.UI.Field.BaseField} * * @inheritDoc * @constructor */ BX.Landing.UI.Field.EmbedBg = function(data) { data.description = "<span class='landing-ui-anchor-preview'>"+BX.Landing.Loc.getMessage('LANDING_EMBED_BG_FIELD_DESCRIPTION')+"</span>"; BX.Landing.UI.Field.Embed.apply(this, arguments); BX.Dom.addClass(this.error, 'landing-ui-error'); }; BX.Landing.UI.Field.EmbedBg.isBgVideo = true; BX.Landing.UI.Field.EmbedBg.prototype = { constructor: BX.Landing.UI.Field.EmbedBg, __proto__: BX.Landing.UI.Field.Embed.prototype, isEmbedUrl: function(value) { return BX.Landing.Utils.Matchers.youtube.test(value) || BX.Landing.Utils.Matchers.vk.test(value) ; }, getValue: function() { const res = BX.Landing.UI.Field.Embed.prototype.getValue.call(this); delete res.ratio; return res; }, } })();