2022 主题bug修复
This commit is contained in:
1 parent
a6b1098d60
commit
56ea059fc0
16 files changed
+1357
-334
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{{- $bvid := .Get "bvid" | default (.Get 0) -}}
|
||||
{{- $page := .Get "page" | default "1" -}}
|
||||
{{- $danmaku := .Get "danmaku" | default "1" -}}
|
||||
{{- $autoplay := .Get "autoplay" | default "0" -}}
|
||||
{{- $ratio := .Get "ratio" | default "16:9" -}}
|
||||
|
||||
{{- $ratioParts := split $ratio ":" -}}
|
||||
{{- $ratioW := index $ratioParts 0 -}}
|
||||
{{- $ratioH := index $ratioParts 1 -}}
|
||||
{{- $paddingBottom := (mul (div (float $ratioH) (float $ratioW)) 100) -}}
|
||||
|
||||
<div class="amigo-bilibili-wrapper" style="--padding-bottom: {{ $paddingBottom }}%">
|
||||
<div class="amigo-bilibili-inner">
|
||||
<iframe
|
||||
src="//player.bilibili.com/player.html?bvid={{ $bvid }}&page={{ $page }}&danmaku={{ $danmaku }}&autoplay={{ $autoplay }}&high_quality=1"
|
||||
scrolling="no"
|
||||
border="0"
|
||||
frameborder="no"
|
||||
framespacing="0"
|
||||
allowfullscreen="true"
|
||||
loading="lazy">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user