nwe post:muhehehe
This commit is contained in:
1 parent
a063092252
commit
a3986506d3
33 files changed
+898
-70
No files matched your search
@@ -0,0 +1 @@
|
||||
<span class="muhehehe" title="{{ default " qwq" (.Get "title" ) }}">{{ .Get "text" }}</span>
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user