[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 /** 2 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 3 * @license GNU General Public License version 2 or later; see LICENSE.txt 4 */ 5 6 !(function(document, $) { 7 "use strict"; 8 9 function initMinicolorsField (event) { 10 $(event.target).find('.minicolors').each(function() { 11 $(this).minicolors({ 12 control: $(this).attr('data-control') || 'hue', 13 format: $(this).attr('data-validate') === 'color' 14 ? 'hex' 15 : ($(this).attr('data-format') === 'rgba' 16 ? 'rgb' 17 : $(this).attr('data-format')) 18 || 'hex', 19 keywords: $(this).attr('data-keywords') || '', 20 opacity: $(this).attr('data-format') === 'rgba', 21 position: $(this).attr('data-position') || 'default', 22 swatches: $(this).attr('data-colors') ? $(this).attr('data-colors').split(",") : [], 23 theme: 'bootstrap' 24 }); 25 }); 26 } 27 28 /** 29 * Initialize at an initial page load 30 */ 31 document.addEventListener("DOMContentLoaded", initMinicolorsField); 32 33 /** 34 * Initialize when a part of the page was updated 35 */ 36 document.addEventListener("joomla:updated", initMinicolorsField); 37 38 })(document, jQuery);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |