PluginProbe
Selection Lite / 1.12
Selection Lite v1.12
trunk 1.0 1.1 1.10 1.11 1.12 1.14 1.15 1.16 1.17 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
selection-lite / js / admin.min.js

admin.min.js in Selection Lite 1.12, at js/admin.min.js

12 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Selection Lite
3 * Carefully selected Elementor addons bundle, for building the most awesome websites
4 *
5 * @encoding UTF-8
6 * @version 1.12
7 * @copyright (C) 2018 - 2023 Merkulove ( https://merkulov.design/ ). All rights reserved.
8 * @license GPLv3
9 * @contributors merkulove, vladcherviakov, phoenixmkua, podolianochka, viktorialev01
10 * @support help@merkulov.design
11 **/
12 window.addEventListener("DOMContentLoaded",e=>{!function(){const e=document.querySelectorAll(".mdp-selection-grid"),t=window.innerWidth>1280;for(const o of e){const e=o.querySelectorAll(".mdp-selection-widget"),n=e.length/3-Math.floor(e.length/3)>.65;if(t&&n){const e=document.createElement("div");e.className="mdp-selection-widget mdp-empty",o.appendChild(e)}}}(),function(e){let t=jQuery("#mdp_custom_css_fld");if(!t.length)return;if(!wp.codeEditor)return;let o,n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{};n.codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2,mode:"css"}),o=wp.codeEditor.initialize("mdp_custom_css_fld",n),o.codemirror.on("change",(function(e){o.codemirror.save(),t.change()}))}()});