v44: Left-justify TLD footer
This commit is contained in:
+1
-1
@@ -1072,7 +1072,7 @@ function initDashboard() {
|
||||
if (lastDomainBlock) {
|
||||
let footer = lastDomainBlock.nextElementSibling;
|
||||
if (!footer || !footer.classList.contains('tld-footer')) {
|
||||
const footerHtml = `<div class="tld-footer" data-tld="${escapeHtml(tldText)}" style="padding: 6px 10px 12px; color: #555; font-size: 0.85em; cursor: pointer; text-align: center; display: ${isExpanded ? 'block' : 'none'};"><span style="margin-right: 6px; font-size: 0.8em;">▲</span>.${escapeHtml(tldText)}</div>`;
|
||||
const footerHtml = `<div class="tld-footer" data-tld="${escapeHtml(tldText)}" style="padding: 6px 10px 12px; color: #555; font-size: 0.85em; cursor: pointer; display: ${isExpanded ? 'block' : 'none'};"><span style="margin-right: 6px; font-size: 0.8em;">▲</span>.${escapeHtml(tldText)}</div>`;
|
||||
lastDomainBlock.insertAdjacentHTML('afterend', footerHtml);
|
||||
// Add click handler to new footer
|
||||
footer = lastDomainBlock.nextElementSibling;
|
||||
|
||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
<div id="output"></div>
|
||||
</div>
|
||||
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v43</div>
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v44</div>
|
||||
|
||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user