Update template.ejs

This commit is contained in:
bihlink 2022-06-21 01:19:58 +02:00 committed by GitHub
parent e67a6b3de9
commit 4616f6b6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -65,7 +65,11 @@
<label class="button" for="<%- cwId %>">Show</label>
<% } %>
<div class="item-content">
<div class="item-content" id="sadrzaj">
<script>
let text = document.getElementById("sadrzaj").innerHTML;
document.getElementById("sadrzaj").innerHTML = text.replace("_blank", "_top");
</script>
<%- item.content %>
</div>