chore: release v0.0.1
This commit is contained in:
14
docs/source/_static/js/custom.js
Normal file
14
docs/source/_static/js/custom.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function openVideoControls(video) {
|
||||
video.controls = true;
|
||||
}
|
||||
|
||||
function isWeChatMobile() {
|
||||
const ua = navigator.userAgent.toLowerCase();
|
||||
return /micromessenger/.test(ua) && /android|iphone|ipad|ipod/.test(ua);
|
||||
}
|
||||
|
||||
if (isWeChatMobile()) {
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.querySelectorAll("video").forEach(openVideoControls);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user