2021-10-31 21:33:19 +07:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
${require('./_head.html')
|
|
|
|
title="Loading"
|
|
|
|
description="aria-busy='true' enable a loading indicator."
|
|
|
|
canonical="loading.html"
|
|
|
|
}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
${require('./_nav.html')}
|
|
|
|
|
|
|
|
<main class="container" id="docs">
|
|
|
|
${require('./_sidebar.html') active="loading-link"}
|
|
|
|
|
|
|
|
<div role="document">
|
|
|
|
<section id="loading">
|
|
|
|
<hgroup>
|
2021-11-02 00:20:55 +07:00
|
|
|
<h1>Loading</h1>
|
|
|
|
<h2><code><i>aria-busy</i>=<u>"true"</u></code> enable a loading indicator.</h2>
|
2021-10-31 21:33:19 +07:00
|
|
|
</hgroup>
|
|
|
|
<article aria-label="Loading buttons example">
|
|
|
|
<button aria-busy="true">Please wait…</button>
|
|
|
|
<button aria-busy="true" class="secondary"></button>
|
|
|
|
<footer class="code">
|
|
|
|
|
|
|
|
<pre><code><<b>button</b> <i>aria-busy</i>=<u>"true"</u>>Please wait…</<b>button</b>>
|
|
|
|
<<b>button</b> <i>aria-busy</i>=<u>"true"</u> <i>class</i>=<u>"secondary"</u>></<b>button</b>></code></pre>
|
|
|
|
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
<p>It can be applied to any block:</p>
|
|
|
|
<article aria-busy="true"></article>
|
|
|
|
<pre><code><<b>article</b> <i>aria-busy</i>=<u>"true"</u>></<b>article</b>></code></pre>
|
|
|
|
<p>Or any text element:</p>
|
|
|
|
<article aria-label="Loading paragraph example">
|
|
|
|
<a href="#" aria-busy="true" onclick="event.preventDefault()">Generating link, please wait…</a>
|
|
|
|
<footer class="code">
|
|
|
|
<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>aria-busy</i>=<u>"true"</u>>Generating link, please wait…</<b>a</b>></code></pre>
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
${require('./_footer.html')}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<script src="js/commons.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|