Files
aurora-admin/frameworks/AlertModal.html
T

33 lines
1.3 KiB
HTML
Raw 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-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aurora Admin · AlertModal(普通 H5)</title>
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
<link rel="stylesheet" href="AlertModal.css" />
<style>body{margin:0;padding:24px;background:#F5F7FA;}</style>
</head>
<body>
<button id="open">查看提示</button>
<div class="aa-modal-mask" id="mask" style="display:none">
<div class="aa-alert is-info">
<div class="aa-alert-head">
<span class="aa-alert-icon">i</span>
<div class="aa-alert-title">系统升级通知</div>
</div>
<div class="aa-alert-content">本周六 02:00-04:00 将进行系统维护,期间服务不可用,请提前安排。</div>
<div class="aa-alert-footer"><button class="aa-alert-btn" id="ok">知道了</button></div>
</div>
</div>
<script>
var mask = document.getElementById('mask');
document.getElementById('open').onclick = function () { mask.style.display = 'flex'; };
document.getElementById('ok').onclick = function () { mask.style.display = 'none'; };
mask.addEventListener('click', function (e) { if (e.target === mask) mask.style.display = 'none'; });
</script>
</body>
</html>