You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.6 KiB
HTML
70 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
<title>Test Harness!</title>
|
|
<script type="module">
|
|
import fetchInject from '../fetch-inject.min.js';
|
|
|
|
const pageReady = new Promise((resolve, reject) => {
|
|
document.onreadystatechange = () => {
|
|
document.readyState === 'complete' && resolve(document);
|
|
};
|
|
});
|
|
|
|
fetchInject(
|
|
[
|
|
'https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js',
|
|
'https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css'
|
|
],
|
|
fetchInject(
|
|
['https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js'],
|
|
fetchInject(['https://code.jquery.com/jquery-3.2.1.slim.min.js'], pageReady)
|
|
)
|
|
).then(() => (document.body.style.visibility = 'visible'));
|
|
</script>
|
|
</head>
|
|
<body style="visibility: hidden">
|
|
<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>
|
|
|
|
<!-- Button trigger modal -->
|
|
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
|
|
Launch demo modal
|
|
</button>
|
|
|
|
<!-- Modal -->
|
|
<div
|
|
class="modal fade"
|
|
id="exampleModal"
|
|
tabindex="-1"
|
|
role="dialog"
|
|
aria-labelledby="exampleModalLabel"
|
|
aria-hidden="true"
|
|
>
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">...</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
<button type="button" class="btn btn-primary">Save changes</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|