nwe post:muhehehe

This commit is contained in:
paw committed 2025-05-02 15:20:47 +08:00
1 parent a063092252
commit a3986506d3
33 files changed
+898 -70

No files matched your search

+1
View File
@@ -0,0 +1 @@
<span class="muhehehe" title="{{ default " qwq" (.Get "title" ) }}">{{ .Get "text" }}</span>
+6 -7
View File
@@ -12,21 +12,20 @@
{{- end -}}
<script>
document.addEventListener("DOMContentLoaded", function() {
new TypeIt("#typeit-{{ .Ordinal }}", {
strings: {{- if hasPrefix $text "[" -}} {{ $text | safeJS }} {{- else -}} "{{ $text }}" {{- end -}},
document.addEventListener("DOMContentLoaded", function () {
new TypeIt("#typeit-{{ .Ordinal }}", {
strings: {{- if hasPrefix $text "[" -}} {{ $text | safeJS }} {{- else -}} "{{ $text }}" {{- end -}},
speed: {{ $speed }},
loop: {{ $loop }},
breakLines: {{ $breakLines }},
waitUntilVisible: true,
lifeLike: true, // 打字更自然(可选)
lifeLike: true,
})
{{- if eq $loop "false" }}
{ { - if eq $loop "false" } }
.exec(() => {
// 打完以后销毁 TypeIt 实例
instance.destroy();
})
{{- end }}
{ { - end } }
.go();
});
</script>