UNPKG

hijri-datepicker-component

Version:

Forked and enhanced version of datepicker-hijri with additional features. The 'Hijri Datepicker' is a user interface component designed to facilitate the selection and display of Hijri (Islamic) dates in applications. It offers a visual calendar interface

29 lines (22 loc) 1.01 kB
(function(doc){ var scriptElm = doc.scripts[doc.scripts.length - 1]; var warn = ['[datepicker-hijri] Deprecated script, please remove: ' + scriptElm.outerHTML]; warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:') var parts = scriptElm.src.split('/'); parts.pop(); parts.push('datepicker-hijri'); var url = parts.join('/'); var scriptElm = doc.createElement('script'); scriptElm.setAttribute('type', 'module'); scriptElm.src = url + '/datepicker-hijri.esm.js'; warn.push(scriptElm.outerHTML); scriptElm.setAttribute('data-stencil-namespace', 'datepicker-hijri'); doc.head.appendChild(scriptElm); scriptElm = doc.createElement('script'); scriptElm.setAttribute('nomodule', ''); scriptElm.src = url + '/datepicker-hijri.js'; warn.push(scriptElm.outerHTML); scriptElm.setAttribute('data-stencil-namespace', 'datepicker-hijri'); doc.head.appendChild(scriptElm); console.warn(warn.join('\n')); })(document);