x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<!-- Latest compiled and minified Bootstrap CSS -->
5
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
6
7
<style>
8
body {
9
padding-top: 1em;
10
}   
11
</style> <div class="container-fluid">
12
        
13
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#largeShoes">
14
Click Me
15
</button>
16
17
<!-- The modal -->
18
<div class="modal fade" id="largeShoes" tabindex="-1" role="dialog" aria-labelledby="modalLabelLarge" aria-hidden="true">
19
<div class="modal-dialog modal-lg">
20
<div class="modal-content">
21
22
<div class="modal-header">
23
<h4 class="modal-title" id="modalLabelLarge">Large Shoes</h4>
24
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
25
<span aria-hidden="true">&times;</span>
26
</button>
27
</div>
28
29
<div class="modal-body">
30
Large shoes are usually avoided by people with small feet.
31
</div>
32
33
</div>
34
</div>
35
</div>
36
37
</div>
38
        
39
<!-- jQuery library -->
40
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
41
42
<!-- Popper -->
43
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
44
45
<!-- Latest compiled and minified Bootstrap JavaScript -->
46
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
47
48
<!-- Initialize Bootstrap functionality -->
49
<script>
50
// Initialize tooltip component
51
$(function () {
52
  $('[data-toggle="tooltip"]').tooltip()
53
})
54
55
// Initialize popover component
56
$(function () {
57
  $('[data-toggle="popover"]').popover()
58
})
59
</script>