1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/js/tests/visual/popover.html

53 lines
2.3 KiB
HTML
Raw Normal View History

<!doctype html>
2017-10-22 08:02:24 -04:00
<html lang="en">
2016-11-12 10:12:58 -05:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2016-11-12 10:12:58 -05:00
<link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
<title>Popover</title>
</head>
<body>
<div class="container">
<h1>Popover <small>Bootstrap Visual Test</small></h1>
2017-05-24 08:09:36 -04:00
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="auto" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on auto
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="top" data-content="Default placement was on top but not enough place">
2016-11-12 10:12:58 -05:00
Popover on top
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on right
</button>
2017-10-22 08:02:24 -04:00
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
2016-11-12 10:12:58 -05:00
Popover on bottom
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on left
</button>
</div>
<script src="../../../node_modules/popper.js/dist/umd/popper.min.js"></script>
<script src="../../dist/dom/polyfill.js"></script>
<script src="../../dist/dom/manipulator.js"></script>
2017-09-21 12:04:47 -04:00
<script src="../../dist/dom/data.js"></script>
2017-08-21 03:11:37 -04:00
<script src="../../dist/dom/eventHandler.js"></script>
2017-09-21 12:04:47 -04:00
<script src="../../dist/dom/selectorEngine.js"></script>
2016-11-12 10:12:58 -05:00
<script src="../../dist/util.js"></script>
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('[data-toggle="popover"]')
.forEach(function (popover) {
new Popover(popover)
})
2016-11-12 10:12:58 -05:00
})
</script>
</body>
</html>