remotes/1693045480750635534/spooky-22
Aevann1 2022-04-05 19:27:13 +02:00
parent d0e7173f34
commit 835a7ecc55
1 changed files with 2 additions and 2 deletions

View File

@ -924,9 +924,9 @@
<script>
const color = getComputedStyle(document.body).getPropertyValue('background-color');
const markTemplate = (name) => {
return `<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='50px' width='100px'><text transform='translate(20, 40) rotate(-45)' fill='${color}' fill-opacity="0.1" font-size='20'>${name}</text></svg>`;
return `<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='50px' width='100px'><text transform='translate(20, 40) rotate(-45)' fill='${color}' fill-opacity="0.05" font-size='20'>${name}</text></svg>`;
};
const base64Mark = btoa(markTemplate("1234"));
const base64Mark = btoa(markTemplate("{{v.id}}"));
var style = document.createElement('style');
style.innerHTML = `#post-text,.comment-text{background-image:url("data:image/svg+xml;base64,${base64Mark}")}`;