%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.219.198.150 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/button/ |
Upload File : |
(function(){"use strict";BX.namespace("BX.Landing.UI.Button");BX.Landing.UI.Button.ColorAction=function(t,o){BX.Landing.UI.Button.EditorAction.apply(this,arguments);this.id=t;this.options=o;if(this.id!=="tableBgColor"){this.layout.classList.add("landing-ui-button-editor-action-color")}this.colorPicker=new BX.Landing.UI.Tool.ColorPicker(this,this.onColorSelected.bind(this));BX.Landing.UI.Button.ColorAction.instances.push(this)};BX.Landing.UI.Button.ColorAction.instances=[];BX.Landing.UI.Button.ColorAction.hideAll=function(){BX.Landing.UI.Button.ColorAction.instances.forEach((function(t){t.colorPicker.hide()}))};BX.Landing.UI.Button.ColorAction.prototype={constructor:BX.Landing.UI.Button.ColorAction,__proto__:BX.Landing.UI.Button.EditorAction.prototype,onClick:function(t){t.preventDefault();t.stopPropagation();var o=BX.Landing.UI.Panel.EditorPanel.getInstance().isFixed()?"fixed":"relative";if(!this.colorPicker.isShown()){this.colorPicker.show(o);BX.Landing.UI.Button.FontAction.hideAll();if(BX.Landing.UI.Button.ChangeTag.menu){BX.Landing.UI.Button.ChangeTag.menu.close()}}else{this.colorPicker.hide()}},onColorSelected:function(t){if(this.id==="tableTextColor"){this.applyColorInTableCells(t)}if(this.id==="tableBgColor"){this.applyBgInTableCells(t)}document.execCommand(this.id,false,t)},applyColorInTableCells:function(t){var o=Array.from(this.options.setTd);o.forEach((function(o){if(o.nodeType===1){o.style.color=t}}));if(this.options.target==="table"){this.options.table.setAttribute("text-color",t)}BX.Landing.Block.Node.Text.currentNode.onChange(true)},prepareOptionsForApplyColorInTableCells:function(t,o){this.options=o;this.applyColorInTableCells(t)},applyBgInTableCells:function(t){var o=Array.from(this.options.setTd);o.forEach((function(o){if(o.nodeType===1){if(!o.classList.contains("landing-table-col-dnd")&&!o.classList.contains("landing-table-row-dnd")&&!o.classList.contains("landing-table-th-select-all")){o.style.setProperty("background-color",t,"important")}}}));if(this.options.target==="table"){this.options.table.setAttribute("bg-color",t)}BX.Landing.Block.Node.Text.currentNode.onChange(true)}}})(); //# sourceMappingURL=color_button.map.js