forked from rDrama/rDrama
sneed
parent
3bff9489da
commit
ef4f93576a
|
@ -945,10 +945,14 @@
|
||||||
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</a></div>
|
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if SITE == 'rdrama.net' and not ajax and v and v.theme == 'midnight' and 'SamsungBrowser' not in g.agent %}
|
{% if SITE_NAME == 'rDrama' and not ajax and v and 'SamsungBrowser' not in g.agent %}
|
||||||
<script>
|
<script>
|
||||||
|
const element = document.getElementsByClassName('comment-section')[0];
|
||||||
|
let color = getComputedStyle(element).getPropertyValue('background-color');
|
||||||
|
color = 'rgba' + color.slice(3,-1) + ', 0.1)'
|
||||||
|
|
||||||
const markTemplate = (name) => {
|
const markTemplate = (name) => {
|
||||||
return `<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='50px' height='50px'><text transform='translate(10, 50) rotate(-45)' fill='rgba(45,45,45,0.1)' font-size='20'>${name}</text></svg>`;
|
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>`;
|
||||||
};
|
};
|
||||||
const base64Mark = btoa(markTemplate("{{v.id}}"));
|
const base64Mark = btoa(markTemplate("{{v.id}}"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue