-
Notifications
You must be signed in to change notification settings - Fork 9
/
wizard.html
151 lines (145 loc) · 8.3 KB
/
wizard.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!doctype html>
<html lang="en">
<head>
<title>Fluid Bootstrap 4 Theme</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/fluid-bootstrap.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="css/demo.css">
</head>
<body id="wizard" class="wizard-fullpage">
<nav class="navbar navbar-primary">
<ol class="stepper stepper-light step-1">
<li class="active">
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step A">Step A</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Start here">Start here</div>
</li>
<li>
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step B - Do something very long and involved that takes too much space">Step B - Do something very long and involved that takes too much space</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Continue here. This step has a particularly long description that is going to get truncated.">Continue here. This step has a particularly long description that is going to get truncated.</div>
</li>
<li>
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step C">Step C</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Finish here">Finish here</div></li>
</li>
</ol>
<ol class="stepper stepper-light step-2">
<li class="complete">
<a class="title" href="javascript:wizard.goToStep(1);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step A">Step A</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Start here">Start here</div>
</li>
<li class="active">
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step B - Do something very long and involved that takes too much space">Step B - Do something very long and involved that takes too much space</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Continue here. This step has a particularly long description that is going to get truncated.">Continue here. This step has a particularly long description that is going to get truncated.</div>
</li>
<li>
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step C">Step C</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Finish here">Finish here</div></li>
</li>
</ol>
<ol class="stepper stepper-light step-3">
<li class="complete">
<a class="title" href="javascript:wizard.goToStep(1);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step A">Step A</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Start here">Start here</div>
</li>
<li class="complete">
<a class="title" href="javascript:wizard.goToStep(2);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step B - Do something very long and involved that takes too much space">Step B - Do something very long and involved that takes too much space</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Continue here. This step has a particularly long description that is going to get truncated.">Continue here. This step has a particularly long description that is going to get truncated.</div>
</li>
<li class="active">
<a class="title" href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Step C">Step C</a>
<div class="desc" data-toggle="tooltip" data-placement="right" data-condition="truncated-y" title="Finish here">Finish here</div></li>
</li>
</ol>
</nav>
<nav class="navbar navbar-header fixed-top">
<h1 class="navbar-text text-default">Fluid Bootstrap 4 Theme - Full Page Wizard Example</h1>
</nav>
<main class="wizard-body">
<div id="alertsTopRight" class="alert-container right"></div>
<div id="alertsTopLeft" class="alert-container"></div>
<div id="alertsBottomRight" class="alert-container bottom right"></div>
<div id="alertsBottomLeft" class="alert-container bottom"></div>
<div class="container-fluid step-1">
<header class="wizard-header">
<h2>1. Step A</h2>
<p>This is the first step of this wizard. You can put an extended step description here.</p>
</header>
<div class="card" id="wizardContent" style="height: 100vh">
<div class="card-body">
Content for the first step goes here.
</div>
</div>
</div>
<div class="container-fluid step-2">
<header class="wizard-header">
<h2>2. Step B</h2>
<p>This is the second step of this wizard. You can put an extended step description here.</p>
</header>
<div class="card" id="wizardContent">
<div class="card-body">
Content for the second step goes here.
</div>
</div>
</div>
<div class="container-fluid step-3">
<header class="wizard-header">
<h2>3. Step C</h2>
<p>This is the third and final step of this wizard. You can put an extended step description here.</p>
</header>
<div class="card" id="wizardContent">
<div class="card-body">
Content for the third step goes here.
</div>
</div>
</div>
</main>
<nav class="navbar navbar-wizard fixed-bottom">
<button type="button" class="btn btn-default wizard-cancel-button" data-toggle="modal" data-target="#cancelWizard">Cancel</button>
<button id="back" type="button" class="btn btn-secondary wizard-nav-button wizard-back-button" onclick="wizard.back()">Back</button>
<button id="next" type="button" class="btn btn-primary wizard-nav-button wizard-next-button" onclick="wizard.next()">Next</button>
<a id="finish" class="btn btn-primary wizard-finish-button" href="index.html#wizard" onclick="pageChangeHandler(this)">Finish</a>
</nav>
<nav class="navbar navbar-footer">
<div class="container-fluid">
<div class="row">
<div class="col">
<p>This is the footer.</p>
<p>It contains some important information.</p>
<p>You should probably read it carefully.</p>
</div>
</div>
</div>
</nav>
<!-- Cancel Confirmation -->
<div id="cancelWizard" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="cancelWizardHeader">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<span class="modal-title" id="cancelWizardHeader">Cancel wizard</span>
</div>
<div class="modal-body">
<p>Are you sure?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary wizard-nav-button" data-dismiss="modal">Cancel</button>
<a class="btn btn-primary" href="index.html#wizard" onclick="pageChangeHandler(this)">OK</a>
</div>
</div>
</div>
</div>
<!-- Required libraries for Bootstrap 4 JS components to work (https://getbootstrap.com/docs/4.0/getting-started/introduction/#js) -->
<!-- jQuery first, then Bootstrap Bundle (includes Popper) -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="js/fluid-bootstrap.js"></script>
<script src="js/demo.js"></script>
<script>
let wizard;
$(function () {
wizard = new Wizard('wizard');
});
</script>
</body>
</html>