change color back
parent
44a53d9c70
commit
c654e2d606
|
@ -892,7 +892,7 @@
|
|||
{% endif %}
|
||||
const navbar = document.getElementById("navbar");
|
||||
let color = getComputedStyle(navbar).getPropertyValue('background-color');
|
||||
color = "red"; //color = 'rgba' + color.slice(3,-1) + ', 0.1)'
|
||||
color = 'rgba' + color.slice(3,-1) + ', 0.1)';
|
||||
|
||||
const markTemplate = (name, color) => {
|
||||
return `<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='50px' height='50px'><text transform='translate(10, 50) rotate(-45)' fill='${color}' font-size='20'>${name}</text></svg>`;
|
||||
|
@ -905,8 +905,7 @@
|
|||
{% endif %}
|
||||
if (element) {
|
||||
color = getComputedStyle(element).getPropertyValue('background-color');
|
||||
color = "red";
|
||||
//color = 'rgba' + color.slice(3,-1) + ', 0.1)';
|
||||
color = 'rgba' + color.slice(3,-1) + ', 0.1)';
|
||||
const base64Mark = btoa(markTemplate("{{v.id}}", color));
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `.actual-post:not(.deleted, .banned),.comment-section>.comment {background-image:url("data:image/svg+xml;base64,${base64Mark}")}`;
|
||||
|
|
Loading…
Reference in New Issue