atharv-mandlavdiya 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atharvmandlavdiya.js +13 -0
- package/package.json +1 -1
package/atharvmandlavdiya.js
CHANGED
|
@@ -641,6 +641,19 @@ export function sign() {
|
|
|
641
641
|
</script>`;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
+
if (typeof customElements !== 'undefined' && !customElements.get('dtc-logo')) {
|
|
645
|
+
customElements.define('dtc-logo', class extends HTMLElement {
|
|
646
|
+
connectedCallback() {
|
|
647
|
+
const doc = new DOMParser().parseFromString(dtcLogo(), 'text/html');
|
|
648
|
+
const canvas = doc.querySelector('canvas');
|
|
649
|
+
if (canvas) this.appendChild(canvas);
|
|
650
|
+
const s = document.createElement('script');
|
|
651
|
+
s.textContent = doc.querySelector('script').textContent;
|
|
652
|
+
document.body.appendChild(s);
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
|
|
644
657
|
export function dtcLogo() {
|
|
645
658
|
const PATH_D = "M458 1128 L319 892 L171 1130Z M427 1111 L204 1111 L319 927Z M634 1228 L319 692 L0 1230Z M603 1211 L31 1211 L319 727Z M523 328 L325 670 L386 782 L460 676 L778 1230 L914 1230 L526 558 L597 444Z M523 363 L576 446 L505 558 L882 1212 L787 1210 L461 642 L388 747 L345 669Z M715 0 L529 314 L1050 1224 L1426 1230 L1183 802 L1079 854 L1227 1115 L1130 1113 L669 321 L716 240 L856 473 L955 417Z M715 35 L930 410 L863 449 L715 203 L654 331 L1121 1133 L1258 1134 L1104 862 L1175 825 L1394 1212 L1065 1212 L550 314Z";
|
|
646
659
|
const SVG_W = 1427;
|