67 lines
3.0 KiB
HTML
67 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<link rel="stylesheet" href="./assets/uni.8f345d5a.css">
|
||
|
||
<meta charset="UTF-8" />
|
||
<script>
|
||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||
CSS.supports('top: constant(a)'))
|
||
document.write(
|
||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||
</script>
|
||
<title>test_todo</title>
|
||
|
||
<!-- 挂件自动全屏,铺满当前页签,PC端设置z-index:2,移动端设置z-index:1 -->
|
||
<script>
|
||
try {
|
||
//调试—— 检查当前的设备,如果是MacOS,处理保存时按键不一样的问题
|
||
const isDarwin = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
|
||
window._isDarwin = isDarwin;
|
||
const isMobile = navigator.userAgent.match(/android|iphone|ipad|ipod/i);
|
||
let isNodeBlockQueryEmbed = window?.frameElement?.parentElement?.parentElement?.parentElement?.classList
|
||
?.contains("protyle-wysiwyg__embed");
|
||
window.isNodeBlockQueryEmbed = isNodeBlockQueryEmbed;
|
||
if (isMobile) {
|
||
if (isNodeBlockQueryEmbed) {
|
||
window.frameElement.setAttribute("style", "width:98%;height:600px;z-index:2;"), window.frameElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;"), window.frameElement.parentElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;margin:0px;padding:0px;");
|
||
} else {
|
||
window.frameElement.setAttribute("style",
|
||
"position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:2;"), window.frameElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;"), window.frameElement.parentElement
|
||
.parentElement.setAttribute("style",
|
||
"position:absolute;top:0px;left:0px;width:100%;height:100%;overflow:hidden;margin:0px;padding:0px;"
|
||
)
|
||
}
|
||
} else {
|
||
if (isNodeBlockQueryEmbed) {
|
||
window.frameElement.setAttribute("style", "width:98%;height:600px;z-index:2;"), window.frameElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;"), window.frameElement.parentElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;margin:0px;padding:0px;");
|
||
} else {
|
||
window.frameElement.setAttribute("style",
|
||
"position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:2;"), window.frameElement
|
||
.parentElement.setAttribute("style", "width:100%;height:100%;"), window.frameElement.parentElement
|
||
.parentElement.setAttribute("style",
|
||
"position:absolute;top:0px;left:0px;width:100%;height:100%;overflow:hidden;margin:0px;padding:0px;"
|
||
)
|
||
}
|
||
}
|
||
} catch (t) {
|
||
console.error(t)
|
||
}
|
||
</script>
|
||
|
||
|
||
<!--preload-links-->
|
||
<!--app-context-->
|
||
<script type="module" crossorigin src="./assets/index-CJ1d_xGX.js"></script>
|
||
<link rel="stylesheet" crossorigin href="./assets/index-BSsxLY3L.css">
|
||
</head>
|
||
<body>
|
||
<div id="app"><!--app-html--></div>
|
||
|
||
</body>
|
||
</html> |