Skip to content

Commit

Permalink
old code
Browse files Browse the repository at this point in the history
  • Loading branch information
MakotoE committed Sep 28, 2023
1 parent 6a466ae commit d6a2c80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
17 changes: 0 additions & 17 deletions _static/scripts.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
document.addEventListener("DOMContentLoaded", () => {
// Replace {{pro}} and {{profree}} tags
for (const element of document.querySelectorAll("pro")) {
element.textContent = "[P]";
element.setAttribute("title", proTitle().trim());
element.style.verticalAlign = "super";
element.style.fontSize = "smaller";
element.style.cursor = "help";
}

for (const element of document.querySelectorAll("profree")) {
element.textContent = "[PF]";
element.setAttribute("title", proFreeTitle().trim());
element.style.verticalAlign = "super";
element.style.fontSize = "smaller";
element.style.cursor = "help";
}

// Scroll sidebar to current page
// Last item in array is current item
const itemElements = document.querySelectorAll("li.current");
Expand Down
9 changes: 0 additions & 9 deletions _themes/piccolo_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@
<script src="{{ pathto('_static/js/petite-vue.js', 1) }}"></script>

<script src="{{ pathto('_static/scripts.js', 1) }}"></script>

<script>
function proTitle() {
return "{% if language == 'ja' %}EmEditor Professional のみ{% elif language == 'zh-CN' %}仅限 EmEditor 专业版{% elif language == 'zh-TW' %}僅限 EmEditor 專業版{% else %}EmEditor Professional only{% endif %}";
}
function proFreeTitle() {
return "{% if language == 'ja' %}EmEditor Professional と EmEditor Free{% elif language == 'zh-CN' %}仅限 EmEditor 专业版{% elif language == 'zh-TW' %}EmEditor 專業版和 EmEditor 免費版{% else %}EmEditor Professional and EmEditor Free{% endif %}";
}
</script>
{% endblock %}

{%- block body_tag %}
Expand Down

0 comments on commit d6a2c80

Please sign in to comment.