chore: refactor scripts code style

This commit is contained in:
Dillon
2020-02-14 21:09:21 +08:00
parent 12bd1e1935
commit 1088f86b6d
8 changed files with 317 additions and 336 deletions

View File

@@ -11,12 +11,12 @@
</p>
</div>
<script>
const emojiArray = [
var emojiArray = [
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
];
const errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
const errorEmojiContainer = document.getElementById('error-emoji');
var errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
var errorEmojiContainer = document.getElementById('error-emoji');
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
</script>
{{- end -}}