67 lines
2.3 KiB
HTML
67 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
<link href="/jscss/style.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" charset="utf-8" src="/jscss/theme.js"></script>
|
|
<style>
|
|
.container>div {
|
|
padding: 1em;
|
|
background: var(--bg1);
|
|
margin-bottom: 1em;
|
|
border: 1px solid var(--bg5);
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<blockquote>叠加提示效果</blockquote>
|
|
<div>
|
|
<button class='btn' onclick="ciyfn.showend('无标题信息提示内容')">无标题叠加</button>
|
|
<button class='btn' onclick="ciyfn.showend('信息提示内容|标题xxx')">简单叠加</button>
|
|
<button class='btn' onclick="showend_icon('fail')">fail叠加</button>
|
|
<button class='btn' onclick="showend_icon('warn')">warn叠加</button>
|
|
<button class='btn' onclick="showend_icon('msg')">msg叠加</button>
|
|
<button class='btn' onclick="showend_timeout()">30秒自定时间</button>
|
|
<button class='btn' onclick="showend_cb()">消失回调</button>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
'use strict';
|
|
function showend_icon(icon) {
|
|
ciyfn.showend({
|
|
content: 'icon叠加'
|
|
, icon: icon
|
|
});
|
|
}
|
|
function showend_timeout() {
|
|
ciyfn.showend({
|
|
content: '30秒自定时间'
|
|
, timeout: 30
|
|
});
|
|
}
|
|
function showend_cb() {
|
|
ciyfn.showend({
|
|
content: '消失回调'
|
|
, cb: function () {
|
|
ciyfn.toast('showend已关闭');
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="/jscss/ciy.js"></script>
|
|
<script type="text/javascript" src="/jscss/ciycmp.js"></script>
|
|
<script type="text/javascript" src="../../common.js"></script>
|
|
<script type="text/javascript">
|
|
'use strict';
|
|
</script>
|
|
</body>
|
|
|
|
</html> |