CTL/web/index.html
murmur e3943fe43e 屏蔽右键和页面缩放
bar参数变量化
2024-06-30 20:25:40 +08:00

97 lines
2.8 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" >
<title>amis demo</title>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> -->
<!-- <link rel="stylesheet" href="sdk/sdk.css" /> -->
<link rel="stylesheet" href="sdk/antd.css" />
<link rel="stylesheet" href="sdk/helper.css" />
<link rel="stylesheet" href="sdk/iconfont.css" />
<!-- <link rel="stylesheet" href="sdk/cxd.css" /> -->
<!-- <link rel="stylesheet" href="sdk/ang.css" /> -->
<!-- 这是默认主题所需的,如果是其他主题则不需要 -->
<!-- 从 1.1.0 开始 sdk.css 将不支持 IE 11如果要支持 IE11 请引用这个 css并把前面那个删了 -->
<!-- <link rel="stylesheet" href="sdk-ie11.css" /> -->
<!-- 不过 amis 开发团队几乎没测试过 IE 11 下的效果,所以可能有细节功能用不了,如果发现请报 issue -->
<style type="text/css">
html {
margin: 0px;
padding: 0px;
}
</style>
<script type="text/javascript">
</script>
<style>
html,
body,
.app-wrapper{
position: relative;
width: 100%;
margin: 0;
padding: 100;
}
</style>
</head>
<body>
<div id="root" class="app-wrapper"></div>
<script src="sdk/sdk.js"></script>
<script src="sdk/thirds/mpegts.js/mpegts.js"></script>
<script type="text/javascript">
(async function () {
let amis = amisRequire('amis/embed');
// 通过替换下面这个配置来生成不同页面
let amisJSON = await getAmisJson();
let amisScoped = amis.embed('#root', amisJSON,{},
{
theme: 'antd',
// https://github.com/baidu/amis/issues/2465
}
);
})();
</script>
<script>
//luwenjie hualun
document.oncontextmenu = function(){
event.returnValue = false;
}
window.addEventListener('mousewheel', function(event){
if (event.ctrlKey === true || event.metaKey) {
event.preventDefault();
}
},{ passive: false});
//firefox
window.addEventListener('DOMMouseScroll', function(event){
if (event.ctrlKey === true || event.metaKey) {
event.preventDefault();
}
},{ passive: false});
//+_
window.onload = function() {
document.addEventListener('keydown', function (event) {
if ((event.ctrlKey === true || event.metaKey === true)
&& (event.which === 61 || event.which === 107
|| event.which === 173 || event.which === 109
|| event.which === 187 || event.which === 189))
{
event.preventDefault();
}
}, false);
}
</script>
</body>
</html>