Source

ꯑꯦꯂꯔꯇꯁꯤꯡ ꯄꯤꯔꯤ꯫

ꯂꯩꯔꯤꯕꯥ ꯑꯃꯁꯨꯡ ꯐ꯭ꯂꯦꯛꯁꯤꯕꯜ ꯑꯣꯏꯕꯥ ꯑꯦꯂꯔꯠ ꯃꯦꯁꯦꯖꯁꯤꯡꯒꯤ ꯃꯈꯨꯠꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯁꯛ ꯊꯣꯀꯄꯥ ꯌꯨꯖꯔ ꯑꯦꯛꯁꯅꯁꯤꯡꯒꯤꯗꯃꯛꯇꯥ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯐꯤꯗꯕꯦꯛ ꯃꯦꯁꯦꯖꯁꯤꯡ ꯄꯤꯕꯥ꯫

ꯈꯨꯗꯃꯁꯤꯡ꯫

ꯇꯦꯛꯁꯇꯀꯤ ꯂꯝꯕꯤ ꯑꯃꯍꯦꯛꯇꯒꯤꯗꯃꯛ ꯑꯦꯂꯔꯇꯁꯤꯡ ꯐꯪꯒꯅꯤ, ꯃꯁꯤꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯣꯄꯁꯅꯦꯜ ꯗꯤꯁꯃꯤꯁ ꯕꯇꯟ ꯑꯃꯁꯨ ꯐꯪꯒꯅꯤ꯫ ꯃꯑꯣꯡ ꯆꯨꯝꯅꯥ ꯁ꯭ꯇꯥꯏꯂꯤꯡ ꯇꯧꯅꯕꯒꯤꯗꯃꯛ, ꯃꯊꯧ ꯇꯥꯕꯥ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯀ꯭ꯂꯥꯁ ꯸ꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯑꯃꯥ ꯁꯤꯖꯤꯟꯅꯧ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, .alert-success). ꯏꯅꯂꯥꯏꯟ ꯗꯤꯁꯃꯤꯁꯂꯒꯤꯗꯃꯛꯇꯥ, ꯑꯦꯂꯔꯇꯁꯤꯡ jQuery ꯄ꯭ꯂꯒꯏꯟ ꯁꯤꯖꯤꯟꯅꯧ .

<div class="alert alert-primary" role="alert">
  This is a primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
  This is a secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
  This is a success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
  This is a danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
  This is a warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
  This is a info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
  This is a light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
  This is a dark alert—check it out!
</div>
ꯑꯦꯁꯤꯁ꯭ꯇꯦꯟꯇ ꯇꯦꯛꯅꯣꯂꯣꯖꯤꯁꯤꯡꯗꯥ ꯑꯔꯊ ꯄꯤꯕꯥ꯫

ꯑꯔꯊ ꯍꯥꯄꯆꯤꯟꯅꯕꯥ ꯃꯆꯨ ꯁꯤꯖꯤꯟꯅꯕꯅꯥ ꯚꯤꯖꯨꯑꯦꯜ ꯏꯟꯗꯤꯀꯦꯁꯟ ꯑꯃꯥ ꯈꯛꯇꯃꯛ ꯄꯤꯔꯤ, ꯃꯁꯤ ꯑꯦꯁꯤꯁ꯭ꯇꯦꯟꯇ ꯇꯦꯛꯅꯣꯂꯣꯖꯤꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯔꯤꯕꯁꯤꯡꯗꯥ – ꯁ꯭ꯛꯔꯤꯟ ꯔꯤꯗꯔꯒꯨꯝꯕꯥ – ꯌꯧꯍꯅꯕꯥ ꯉꯝꯂꯣꯏ꯫ .sr-onlyꯃꯆꯨ ꯑꯗꯨꯅꯥ ꯇꯥꯀꯄꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯟ ꯑꯗꯨ ꯀꯟꯇꯦꯟꯇ ꯃꯁꯥꯃꯛꯇꯒꯤ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ꯎꯕꯥ ꯐꯪꯂꯤꯕꯥ ꯇꯦꯛꯁꯠ ꯑꯗꯨꯗꯒꯤ) ꯃꯌꯦꯛ ꯁꯦꯡꯅꯥ ꯎꯕꯥ ꯐꯪꯏ ꯍꯥꯌꯕꯥ ꯁꯣꯌꯗꯅꯥ ꯈꯪꯗꯣꯀꯎ, ꯅꯠꯠꯔꯒꯥ ꯀ꯭ꯂꯥꯁ ꯑꯗꯨꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯂꯣꯠꯁꯤꯜꯂꯕꯥ ꯑꯍꯦꯅꯕꯥ ꯇꯦꯛꯁꯇꯒꯨꯝꯕꯥ ꯑꯂꯇꯔꯅꯦꯇꯤꯚ ꯑꯣꯏꯕꯥ ꯄꯥꯝꯕꯩꯁꯤꯡꯒꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯌꯥꯎꯍꯅꯕꯥ꯫

.alert-linkꯑꯦꯂꯔꯠ ꯑꯃꯍꯦꯛꯇꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯃꯦꯆꯤꯡ ꯃꯆꯨꯒꯤ ꯂꯤꯉ꯭ꯀꯁꯤꯡ ꯊꯨꯅꯥ ꯄꯤꯅꯕꯥ ꯌꯨꯇꯤꯂꯤꯇꯤ ꯀ꯭ꯂꯥꯁ ꯁꯤꯖꯤꯟꯅꯧ꯫

<div class="alert alert-primary" role="alert">
  This is a primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-secondary" role="alert">
  This is a secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-success" role="alert">
  This is a success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-danger" role="alert">
  This is a danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-warning" role="alert">
  This is a warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-info" role="alert">
  This is a info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-light" role="alert">
  This is a light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-dark" role="alert">
  This is a dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

ꯑꯍꯦꯅꯕꯥ ꯀꯟꯇꯦꯟꯇꯁꯤꯡ꯫

ꯑꯦꯂꯔꯇꯁꯤꯡꯗꯥ ꯍꯦꯗꯤꯡꯁꯤꯡ, ꯄꯦꯔꯥꯒ꯭ꯔꯥꯐꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯗꯤꯚꯥꯏꯗꯔꯁꯤꯡꯒꯨꯝꯕꯥ ꯑꯍꯦꯅꯕꯥ HTML ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯁꯨ ꯌꯥꯎꯕꯥ ꯌꯥꯏ꯫

<div class="alert alert-success" role="alert">
  <h4 class="alert-heading">Well done!</h4>
  <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
  <hr>
  <p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>

ꯊꯕꯛꯇꯒꯤ ꯄꯣꯠꯊꯥꯕꯥ꯫

ꯑꯦꯂꯔꯠ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯄ꯭ꯂꯒꯏꯟ ꯁꯤꯖꯤꯟꯅꯗꯨꯅꯥ, ꯑꯦꯂꯔꯠ ꯑꯃꯍꯦꯛꯇꯕꯨ ꯏꯅꯂꯥꯏꯟ ꯑꯃꯥ ꯊꯥꯗꯣꯀꯄꯥ ꯌꯥꯏ꯫ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯁꯤ ꯀꯔꯝꯅꯥ ꯑꯣꯏꯒꯅꯤ:

  • ꯅꯍꯥꯛꯅꯥ ꯑꯦꯂꯔꯠ ꯄ꯭ꯂꯒꯏꯟ, ꯅꯠꯠꯔꯒꯥ ꯀꯝꯄꯥꯏꯜ ꯇꯧꯔꯕꯥ ꯕꯨꯇꯁ꯭ꯠꯔꯥꯞ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯑꯗꯨ ꯂꯣꯗ ꯇꯧꯔꯦ ꯍꯥꯌꯕꯥ ꯁꯣꯌꯗꯅꯥ ꯈꯪꯗꯣꯀꯎ.
  • ꯀꯔꯤꯒꯨꯝꯕꯥ ꯅꯍꯥꯛꯅꯥ ꯑꯩꯈꯣꯌꯒꯤ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯑꯁꯤ ꯁꯣꯔꯁꯇꯒꯤ ꯁꯦꯃꯒꯠꯂꯕꯗꯤ, ꯃꯁꯤꯗꯥutil.js . ꯀꯝꯄꯥꯏꯜ ꯇꯧꯔꯕꯥ ꯚꯔꯖꯟ ꯑꯗꯨꯗꯥ ꯃꯁꯤ ꯌꯥꯑꯣꯔꯤ꯫
  • ꯗꯤꯁꯃꯤꯁ ꯕꯇꯟ ꯑꯃꯥ ꯑꯃꯁꯨꯡ .alert-dismissibleꯀ꯭ꯂꯥꯁ ꯑꯗꯨ ꯍꯥꯄꯆꯤꯜꯂꯨ, ꯃꯁꯤꯅꯥ ꯑꯦꯂꯔꯇꯀꯤ ꯑꯔꯣꯏꯕꯗꯥ ꯑꯍꯦꯅꯕꯥ ꯄꯦꯗꯤꯡ ꯍꯥꯄꯆꯤꯜꯂꯤ ꯑꯃꯁꯨꯡ .closeꯕꯇꯟ ꯑꯗꯨ ꯄꯣꯖꯤꯁꯟ ꯇꯧꯏ꯫
  • ꯗꯤꯁꯃꯤꯁ ꯕꯇꯟ ꯑꯗꯨꯗꯥ, data-dismiss="alert"ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯗꯨ ꯍꯥꯄꯆꯤꯜꯂꯨ, ꯃꯁꯤꯅꯥ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯐꯉ꯭ꯀꯁꯅꯦꯂꯤꯇꯤ ꯑꯗꯨ ꯇ꯭ꯔꯤꯒꯔ ꯇꯧꯏ꯫ <button>ꯗꯤꯚꯥꯏꯁ ꯄꯨꯝꯅꯃꯛꯇꯥ ꯃꯑꯣꯡ ꯆꯨꯝꯅꯥ ꯂꯃꯆꯠ-ꯁꯥꯖꯠ ꯆꯠꯅꯕꯒꯤꯗꯃꯛ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨ ꯃꯁꯤꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯁꯣꯌꯗꯅꯥ ꯁꯤꯖꯤꯟꯅꯧ꯫
  • ꯃꯈꯣꯌꯕꯨ ꯊꯥꯗꯣꯀꯄꯥ ꯃꯇꯃꯗꯥ ꯑꯦꯂꯔꯇꯁꯤꯡ ꯑꯦꯅꯤꯃꯦꯠ ꯇꯧꯅꯕꯥ, .fadeꯑꯃꯁꯨꯡ .showꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯗꯨ ꯁꯣꯌꯗꯅꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫

ꯃꯁꯤ ꯑꯗꯣꯝꯅꯥ ꯂꯥꯏꯕ ꯗꯦꯃꯣ ꯑꯃꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯦꯛꯁꯅꯗꯥ ꯎꯕꯥ ꯐꯪꯒꯅꯤ:

<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>

ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯂꯃꯆꯠ-ꯁꯥꯖꯠ꯫

ꯇ꯭ꯔꯤꯒꯔꯁꯤꯡ꯫

ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯑꯦꯂꯔꯠ ꯑꯃꯥ ꯗꯤꯁꯃꯤꯁ ꯇꯧꯕꯥ ꯏꯅꯦꯕꯜ ꯇꯧꯕꯥ:

$('.alert').alert()

ꯅꯠꯔꯒꯥ ꯑꯦꯂꯔꯇꯀꯤ ꯃꯅꯨꯡꯗꯥ ꯂꯩꯕꯥdata ꯕꯇꯟ ꯑꯃꯗꯥ ꯑꯦꯠꯔꯤꯕ꯭ꯌꯨꯠꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ , ꯃꯊꯛꯇꯥ ꯎꯠꯂꯤꯕꯥ ꯃꯇꯨꯡ ꯏꯟꯅꯥ:

<button type="button" class="close" data-dismiss="alert" aria-label="Close">
  <span aria-hidden="true">&times;</span>
</button>

ꯑꯦꯂꯔꯠ ꯑꯃꯥ ꯂꯣꯗ ꯇꯧꯕꯅꯥ ꯃꯗꯨ DOMꯗꯒꯤ ꯂꯧꯊꯣꯛꯀꯅꯤ ꯍꯥꯌꯕꯁꯤ ꯈꯪꯖꯤꯅꯕꯤꯌꯨ꯫

ꯄꯥꯝꯕꯩꯁꯤꯡ꯫

ꯊꯧꯑꯪꯡ ꯋꯥꯔꯣꯜ
$().alert() data-dismiss="alert"ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯂꯩꯕꯥ ꯗꯤꯁꯦꯟꯗꯦꯟꯇ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯗꯥ ꯀ꯭ꯂꯤꯛ ꯏꯚꯦꯟꯇꯁꯤꯡꯒꯤꯗꯃꯛ ꯑꯦꯂꯔꯠ ꯑꯃꯥ ꯇꯥꯅꯕꯥ ꯁꯦꯝꯃꯤ꯫ (ꯗꯦꯇꯥ-ꯑꯦꯄꯤꯒꯤ ꯑꯣꯇꯣ-ꯏꯅꯤꯁꯤꯑꯦꯂꯥꯏꯖꯦꯁꯟ ꯁꯤꯖꯤꯟꯅꯕꯗꯥ ꯃꯊꯧ ꯇꯥꯗꯦ꯫)
$().alert('close') DOMꯗꯒꯤ ꯂꯧꯊꯣꯛꯇꯨꯅꯥ ꯑꯦꯂꯔꯠ ꯑꯃꯥ ꯂꯣꯗ ꯇꯧꯏ꯫ ꯀꯔꯤꯒꯨꯝꯕꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ .fadeꯑꯃꯁꯨꯡ .showꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯂꯩꯔꯕꯗꯤ, ꯑꯦꯂꯔꯠ ꯑꯗꯨ ꯂꯧꯊꯣꯛꯂꯕꯥ ꯃꯇꯨꯡꯗꯥ ꯂꯣꯏꯁꯤꯅꯒꯅꯤ꯫
$().alert('dispose') ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯤ ꯑꯦꯂꯔꯠ ꯑꯗꯨ ꯃꯥꯡꯍꯜꯂꯤ꯫
$(".alert").alert('close')

ꯊꯧꯔꯃꯁꯤꯡ꯫

ꯕꯨꯇꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯑꯦꯂꯔꯠ ꯄ꯭ꯂꯒꯏꯟ ꯑꯁꯤꯅꯥ ꯑꯦꯂꯔꯠ ꯐꯉ꯭ꯀꯁꯅꯦꯂꯤꯇꯤꯗꯥ ꯍꯨꯛ ꯇꯧꯅꯕꯒꯤꯗꯃꯛ ꯊꯧꯗꯣꯛ ꯈꯔꯥ ꯑꯦꯛꯁꯄꯣꯖ ꯇꯧꯏ꯫

ꯊꯧꯔꯝ ꯋꯥꯔꯣꯜ
close.bs.alert closeꯏꯟꯁꯇꯦꯟꯁ ꯃꯦꯊꯗ ꯀꯧꯕꯥ ꯃꯇꯃꯗꯥ ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯈꯨꯗꯛꯇꯥ ꯐꯥꯏꯔ ꯇꯧꯏ꯫
closed.bs.alert ꯑꯦꯂꯔꯠ ꯑꯗꯨ ꯂꯣꯗ ꯇꯧꯔꯕꯥ ꯃꯇꯃꯗꯥ ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯐꯥꯏꯔ ꯇꯧꯏ (CSS ꯇ꯭ꯔꯥꯟꯁꯤꯁꯅꯁꯤꯡ ꯂꯣꯌꯔꯕꯥ ꯃꯇꯨꯡꯗꯥ ꯉꯥꯏꯒꯅꯤ)꯫
$('#myAlert').on('closed.bs.alert', function () {
  // do something…
})