mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
e2b6badb86
* Remove IE compatibility mode meta tag from docs, examples, and JS tests as we no longer support IE9 and IE8 * update and remove some IE bits from our supported browser page * update introduction.md to match * reword starter template intro
67 lines
3.0 KiB
HTML
67 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
|
|
<title>Tooltip</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Tooltip <small>Bootstrap Visual Test</small></h1>
|
|
|
|
<p class="text-muted">Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p>
|
|
|
|
<hr>
|
|
|
|
<p>
|
|
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
|
|
Tooltip on top
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
|
|
Tooltip on right
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
|
|
Tooltip on bottom
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
|
|
Tooltip on left
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-html="true" title="<em>Tooltip</em> <u>with</u> <b>HTML</b>">
|
|
Tooltip with HTML
|
|
</button>
|
|
</p>
|
|
</div>
|
|
|
|
<script src="../../../docs/assets/js/vendor/jquery-slim.min.js"></script>
|
|
<script src="../../../docs/assets/js/vendor/tether.min.js"></script>
|
|
<script src="../../dist/util.js"></script>
|
|
<script src="../../dist/tooltip.js"></script>
|
|
|
|
<script>
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
testTooltipTransitionError()
|
|
})
|
|
|
|
// Should throw an error because tooltip is in transition
|
|
function testTooltipTransitionError() {
|
|
var err = false
|
|
$('#btnOne').on('shown.bs.tooltip', function () {
|
|
$('#btnOne').tooltip('hide').off('shown.bs.tooltip')
|
|
if (!err) {
|
|
alert('No error thrown for : testTooltipTransitionError')
|
|
}
|
|
})
|
|
try {
|
|
$('#btnOne').tooltip('show').tooltip('hide')
|
|
}
|
|
catch (e) {
|
|
err = true
|
|
console.error(e.message)
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|