Van 2019-06-01 18:42:44 +08:00
parent 895d3cfa4c
commit 7332ca1d7e
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
8 changed files with 1 additions and 49 deletions

View File

@ -65,13 +65,5 @@
</div>
</div>
<#include "footer.ftl">
<script>
var $commentContents = $(".comments .vditor-reset");
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML;
$commentContents[i].innerHTML = Util.replaceEmString(str);
}
</script>
</body>
</html>

View File

@ -108,12 +108,5 @@
</#if>
<#include "footer.ftl">
</div>
<script>
var $commentContents = $(".comments .comment-content");
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML;
$commentContents[i].innerHTML = Util.replaceEmString(str);
}
</script>
</body>
</html>

View File

@ -204,10 +204,5 @@
</div>
<span id="goTop" onclick="Util.goTop()" data-ico="&#xe042;" class="side-tile"></span>
<#include "footer.ftl"/>
<script>
$("#comments .vditor-reset").each(function () {
this.innerHTML = Util.replaceEmString($(this).html());
});
</script>
</body>
</html>

View File

@ -60,13 +60,5 @@
</div>
</main>
<#include "footer.ftl">
<script>
var $commentContents = $(".comments .comment-content");
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML;
$commentContents[i].innerHTML = Util.replaceEmString(str);
}
</script>
</body>
</html>

View File

@ -52,12 +52,5 @@
<#if pjax><!---- pjax {#pjax} end ----></#if>
</div>
<#include "footer.ftl">
<script>
var $commentContents = $('.comments .vditor-reset')
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML
$commentContents[i].innerHTML = Util.replaceEmString(str)
}
</script>
</body>
</html>

View File

@ -146,10 +146,5 @@
</div>
</div>
<#include "footer.ftl">
<script>
$(".comments > li > div > p").each(function () {
this.innerHTML = Util.replaceEmString($(this).html());
});
</script>
</body>
</html>

View File

@ -106,13 +106,5 @@
<#include "footer.ftl">
</main>
<script>
var $commentContents = $(".comments .comment-content");
for (var i = 0; i < $commentContents.length; i++) {
var str = $commentContents[i].innerHTML;
$commentContents[i].innerHTML = Util.replaceEmString(str);
}
</script>
</body>
</html>