-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal.html
More file actions
68 lines (68 loc) · 2.48 KB
/
modal.html
File metadata and controls
68 lines (68 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!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>Modal example for jq-wizard</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="jq-wizard.js"></script>
<style>
.step {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbbbbb;
border: none;
border-radius: 50%;
display: inline-block;
opacity: 0.5;
}
.step.active {
opacity: 1;
}
</style>
</head>
<body>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mywizardmodal">Start wizard</button>
<div class="modal" id="mywizardmodal" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<div class="container">
<h1 class="modal-title d-block w-100 text-center">Wizard in a modal</h1>
<div class="w-100 text-center">
<div class='step'></div>
<div class='step'></div>
<div class='step'></div>
</div>
</div>
</div>
<div class="modal-body">
<div class='wizard-tab' stepname='step1'>
<h2>This is the first step</h2>
</div>
<div class='wizard-tab' stepname='step2'>
<h2>This is the second step</h2>
</div>
<div class='wizard-tab' stepname='step3'>
<h2>This is the last step</h2>
</div>
</div>
<div class="modal-footer">
<div>
<button class='btn btn-primary btn-prev'>Prev</button>
<button class='btn btn-primary btn-next'>Next</button>
<button class='btn btn-primary btn-end' data-dismiss="modal">Finalize</button>
</div>
</div>
</div>
</div>
</body>
<script>
$(function() {
$('#mywizardmodal').wizard();
})
</script>
</html>