mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-30 06:39:27 +02:00
28 lines
No EOL
937 B
JavaScript
28 lines
No EOL
937 B
JavaScript
/* global coreui */
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* CoreUI Boostrap Admin Template (v4.2.2): colors.js
|
|
* Licensed under MIT (https://coreui.io/license)
|
|
* --------------------------------------------------------------------------
|
|
*/
|
|
|
|
for (const element of document.querySelectorAll('.theme-color')) {
|
|
const color = getComputedStyle(element, null).getPropertyValue('background-color');
|
|
const table = document.createElement('table');
|
|
table.classList.add('w-100');
|
|
table.innerHTML = `
|
|
<table class="w-100">
|
|
<tr>
|
|
<td class="text-muted">HEX:</td>
|
|
<td class="font-weight-bold">${coreui.Utils.rgbToHex(color)}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="text-muted">RGB:</td>
|
|
<td class="font-weight-bold">${color}</td>
|
|
</tr>
|
|
</table>
|
|
`;
|
|
element.parentNode.append(table);
|
|
}
|
|
//# sourceMappingURL=colors.js.map
|