File manager - Edit - /home/opticamezl/www/newok/short-and-sweet.tar
Back
js/short-and-sweet.js 0000644 00000005247 15174141643 0010560 0 ustar 00 /** * short-and-sweet v1.0.4 - Accessible character counter for input elements * Copyright (c) 2021 Rik Schennink <rik@pqina.nl> (https://pqina.nl/) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).shortAndSweet=e()}(this,(function(){"use strict";return function(t){if(typeof window==="undefined"?null:window){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement(t);return Object.keys(e).forEach((function(t){n.setAttribute(t,e[t])})),n},n=0,i=function(t,i){if(t.getAttribute("maxlength")){var a=t.dataset.counterLabel||i.counterLabel,r=function(t){var i=t.assistDelay,a=t.counterClassName,r=e("span",{class:a,"aria-hidden":"true"}),o=e("span",{style:"position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);white-space:nowrap;",id:"short-and-sweet-counter-".concat(n++),role:"status","aria-live":"polite"}),s=document.createDocumentFragment();s.appendChild(r),s.appendChild(o);var u=null;return{id:o.id,fragment:s,updateText:function(t){r.textContent=t},updateAssist:function(t,e){clearTimeout(u),e?o.textContent=t:u=setTimeout((function(){o.textContent=t}),i)},syncAssist:function(){clearTimeout(u),o.textContent=r.textContent},resetAssist:function(){clearTimeout(u),o.textContent=""}}}(i);t.setAttribute("aria-controls",r.id),i.append(t,r.fragment);var o=!0,s=function(){var e,n=null!=(e=t.getAttribute("maxlength"))?parseInt(e,10):null,i=t.value.length>n;i&&function(e){t.value=t.value.substr(0,e)}(n);var s,u=t.value.length,l=(s={maxlength:n,length:u,remaining:n-u},a.replace(/(?:{([a-zA-Z]+)})/g,(function(t,e){return s[e]})));r.updateText(l),o?o=!1:r.updateAssist(l,i)};t.addEventListener("focus",r.syncAssist),t.addEventListener("blur",r.resetAssist),t.addEventListener("input",s),s()}},a={counterClassName:"short-and-sweet-counter",counterLabel:"{remaining} characters left",assistDelay:2e3,append:function(t,e){t.parentNode.appendChild(e)}},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.map((function(t){return i(t,Object.assign({},a,e))}))};return function(t,e){return"string"==typeof t?r((n=document.querySelectorAll(t),Array.prototype.slice.call(n)),e):r([t],e)[0];var n}}}()})); shortAndSweet('textarea.charcount,input.charcount', {counterClassName: 'small text-muted'}); /** Repeatable */ document.addEventListener("joomla:updated", (event) => [].slice.call(event.target.querySelectorAll('textarea.charcount,input.charcount')).map((el) => shortAndSweet(el, {counterClassName: 'small text-muted'}))); js/short-and-sweet.min.js.gz 0000644 00000002331 15174141643 0011750 0 ustar 00 � �V[o�6~��`�!S���텚�m(:��ӂ<�ұ͆&U�(�����XN���b�����#rA���hWN� �۹�ɟȄ\�h�H��A��v��W�H��Ƥ뭯v��7HX�����9�dn��b�wC~ ����qZ:��� b�tz M��\LG��U� 4�1���/�B�4�qW�_��|�8�ڕ�2Jzvx�����>�ǵqEj��:��J�-ݑW���_j�ec��xT�����l3z���)��n�pc�`�A�=�#���H� XG�1�Y��؝q����'W[����Ձ@>��(:��i��q�f>�zS��Y~|��_/��o��K_�Y��;������E\�|x�� cC7������,k��^�sᒍ�0��颖����{ʻ�t��Ԩ#���^�}x0'w����(u�&�;�z'��^��1~�[!Fc��"Q�T�'S�ਢj� ~�qgA��G�L*����������Nu��R��yu�ݙ7��ei�ZͲ�%5� k*�@6��9����ҸQ�E@�����m�$V� �]�UF�)}��>� ��w�F�^��"�AD�u�}���MaY�m��ii�믿�nk�gQ�W��[���)��,�Q穊�zڛRyiJ��ը(��_��� ��wslz��Xu:8 :|1[�5��X�SiU��1��'� �7"�\���s3��'7"@���Ҧi����T�R�o#A���盡��.�>?�����B����A�o-��t��Cb>�* ��W���p4.3�� ���/�ˈ���γ(�'z��Y�������ڸ�3nR7B� ���)[�=�ғ�.'^�� ����-�~��+�n8�Y��Zc����\�X̦ �P�|?��� 0��E�&�X\�ĸ�uH|�x��ݭTD."�M#t�:������AE���j��<+�b0�k�Qt��PV:�Ï���V��[�?w�a�����t��/���Or~�ؾZ O��y�L��Ӵp���q,�o5��g�P���2��2��U�蓔�� m-s��*�+���f�m!�Ԫəl4:�/��SK� Z&Z�D���~.�s��y�jkI�lk����hzqA>Au��v1=Fz��Zu]RA$N�7��zVK���^H��y��V�i�~w�)�F�D/� js/short-and-sweet.min.js 0000644 00000005247 15174141643 0011342 0 ustar 00 /** * short-and-sweet v1.0.4 - Accessible character counter for input elements * Copyright (c) 2021 Rik Schennink <rik@pqina.nl> (https://pqina.nl/) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).shortAndSweet=e()}(this,(function(){"use strict";return function(t){if(typeof window==="undefined"?null:window){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement(t);return Object.keys(e).forEach((function(t){n.setAttribute(t,e[t])})),n},n=0,i=function(t,i){if(t.getAttribute("maxlength")){var a=t.dataset.counterLabel||i.counterLabel,r=function(t){var i=t.assistDelay,a=t.counterClassName,r=e("span",{class:a,"aria-hidden":"true"}),o=e("span",{style:"position:absolute;overflow:hidden;height:1px;width:1px;padding:0;border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);white-space:nowrap;",id:"short-and-sweet-counter-".concat(n++),role:"status","aria-live":"polite"}),s=document.createDocumentFragment();s.appendChild(r),s.appendChild(o);var u=null;return{id:o.id,fragment:s,updateText:function(t){r.textContent=t},updateAssist:function(t,e){clearTimeout(u),e?o.textContent=t:u=setTimeout((function(){o.textContent=t}),i)},syncAssist:function(){clearTimeout(u),o.textContent=r.textContent},resetAssist:function(){clearTimeout(u),o.textContent=""}}}(i);t.setAttribute("aria-controls",r.id),i.append(t,r.fragment);var o=!0,s=function(){var e,n=null!=(e=t.getAttribute("maxlength"))?parseInt(e,10):null,i=t.value.length>n;i&&function(e){t.value=t.value.substr(0,e)}(n);var s,u=t.value.length,l=(s={maxlength:n,length:u,remaining:n-u},a.replace(/(?:{([a-zA-Z]+)})/g,(function(t,e){return s[e]})));r.updateText(l),o?o=!1:r.updateAssist(l,i)};t.addEventListener("focus",r.syncAssist),t.addEventListener("blur",r.resetAssist),t.addEventListener("input",s),s()}},a={counterClassName:"short-and-sweet-counter",counterLabel:"{remaining} characters left",assistDelay:2e3,append:function(t,e){t.parentNode.appendChild(e)}},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.map((function(t){return i(t,Object.assign({},a,e))}))};return function(t,e){return"string"==typeof t?r((n=document.querySelectorAll(t),Array.prototype.slice.call(n)),e):r([t],e)[0];var n}}}()})); shortAndSweet('textarea.charcount,input.charcount', {counterClassName: 'small text-muted'}); /** Repeatable */ document.addEventListener("joomla:updated", (event) => [].slice.call(event.target.querySelectorAll('textarea.charcount,input.charcount')).map((el) => shortAndSweet(el, {counterClassName: 'small text-muted'}))); LICENSE 0000644 00000002063 15174141643 0005560 0 ustar 00 MIT License Copyright (c) 2018-2021 Rik Schennink Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings