-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbootstrap.html
233 lines (209 loc) · 11.1 KB
/
bootstrap.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html class="">
<head>
<title>Behavior-UI - Bootstrap</title>
<link href="dist/prod/bootstrap/css/behavior-ui-bootstrap.css" media="screen" rel="stylesheet" />
<script src="dist/prod/js/behavior-ui.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
.tab-content {
border: solid #ddd;
border-width: 0 1px 1px 1px;
margin-bottom: 20px;
border-radius: 0px 0px 4px 4px;
}
.tab-pane {
padding: 20px;
}
</style>
</head>
<body class="">
<div class="container">
<div class="row">
<div class="col-sm-7 center-block" style="float: none;">
<div class="page-header">
<h1>Behavior-UI Demo</h1>
</div>
<p class="lead">This document contains no JavaScript statements. View source and check it out!</p>
<ul class="nav nav-tabs nav-append-content" data-behavior="BS.Tabs">
<li><a class="tab">Tooltips</a></li>
<li><a class="tab">Carousel</a></li>
<li><a class="tab">Popovers</a></li>
<li><a class="tab">Modals</a></li>
<li><a class="tab">Form Validation</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane">
<div class="tooltip-demo">
<div class="bs-example-tooltips">
<button type="button" class="btn btn-default" data-behavior="BS.Tooltip" data-bs-tooltip-location="left" title="Tooltip on left">Tooltip on left</button>
<button type="button" class="btn btn-default" data-behavior="BS.Tooltip" data-bs-tooltip-location="top" title="Tooltip on top">Tooltip on top</button>
<button type="button" class="btn btn-default" data-behavior="BS.Tooltip" data-bs-tooltip-location="bottom" title="Tooltip on bottom">Tooltip on bottom</button>
<button type="button" class="btn btn-default" data-behavior="BS.Tooltip" data-bs-tooltip-location="right" title="Tooltip on right">Tooltip on right</button>
</div>
</div>
</div>
<div class="tab-pane">
<div class="carousel slide" data-behavior="BS.Carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<!-- can use #id references or not; uses index of the element otherwise -->
<li href="#item1"></li>
<li href="#item2"></li>
<li href="#item3"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active" id="item1">
<img src="dist/prod/bootstrap/images/image-01.jpg"/>
<div class="carousel-caption">
<h3>Thumbnail label</h3>
<p>Slide number 1.</p>
</div>
</div>
<div class="item" id="item2">
<img src="dist/prod/bootstrap/images/image-02.jpg"/>
<div class="carousel-caption">
<h3>Thumbnail label</h3>
<p>Slide number 2.</p>
</div>
</div>
<div class="item" id="item3">
<img src="dist/prod/bootstrap/images/image-03.jpg"/>
<div class="carousel-caption">
<h3>Thumbnail label</h3>
<p>Slide number 3.</p>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control fui-arrow-left"></a>
<a class="right carousel-control fui-arrow-right"></a>
</div>
</div>
<div class="tab-pane">
<!-- popovers -->
<div class="bs-example" style="padding-bottom: 24px;">
<a class="btn btn-lg btn-danger" data-behavior="BS.Popover" title="A Title" data-bs-popover-options="
'content': 'And here\'s some amazing content. It\'s very engaging. right?',
'location': 'below'
">Mouseover to toggle popover</a>
<a class="btn btn-lg btn-danger" data-behavior="BS.Popover" title="A Title" data-bs-popover-options="
'content': 'And here\'s some amazing content. It\'s very engaging. right?',
'trigger': 'click'
">Click to toggle popover</a>
</div>
<h4>Four directions</h4>
<div class="bs-example-tooltips">
<button type="button" class="btn btn-default" data-container="body" data-behavior="BS.Popover"
data-bs-popover-options="
'location': 'left',
'content': 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
'trigger': 'click'
">
Popover on left
</button>
<button type="button" class="btn btn-default" data-container="body" data-behavior="BS.Popover"
data-bs-popover-options="
'location': 'top',
'content': 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
'trigger': 'click'
">
Popover on top
</button>
<button type="button" class="btn btn-default" data-container="body" data-behavior="BS.Popover"
data-bs-popover-options="
'location': 'bottom',
'content': 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
'trigger': 'click'
">
Popover on bottom
</button>
<button type="button" class="btn btn-default" data-container="body" data-behavior="BS.Popover"
data-bs-popover-options="
'location': 'right',
'content': 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus.',
'trigger': 'click'
">
Popover on right
</button>
</div>
</div>
<div class="tab-pane">
<!-- sample modal content -->
<div data-behavior="BS.Popup" id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Modal Heading</h4>
</div>
<div class="modal-body">
<h4>Text in a modal</h4>
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
<h4>Popover in a modal</h4>
<p>This <a role="button" class="btn btn-default popover-test" title="A Title" data-behavior="BS.Popover" data-bs-popover-options="
'content': 'And here\'s some amazing content. It\'s very engaging. right?',
'trigger': 'click'
">button</a> should trigger a popover on click.</p>
<h4>Tooltips in a modal</h4>
<p><a href="#" class="tooltip-test" title="Tooltip" data-behavior="BS.Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip" data-behavior="BS.Tooltip">that link</a> should have tooltips on hover.</p>
<hr>
<h4>Overflowing text to show scroll behavior</h4>
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<a data-trigger="BS.showPopup" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a>
</div>
<div class="tab-pane">
<form id="foo" data-behavior="FormValidator.BS.Tips" class="form-horizontal"
data-formvalidator-bs-tips-options="
'tooltipOptions': {
'inject': {
'target': '!.tab-pane'
}
}
">
<div class="form-group">
<label class="col-lg-5 control-label">this cannot be empty</label>
<div class="col-lg-5"><input name="a" data-validators="required" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-lg-5 control-label">this must be an integer (-1,0,1,2,3, etc)</label>
<div class="col-lg-5"><input name="b" data-validators="required validate-integer" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-lg-5 control-label">this must be numeric (0, 1.3, -5.2, 10, etc) </label>
<div class="col-lg-5"><input name="c" data-validators="required validate-numeric" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-lg-offset-5 col-lg-5">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>
</div> <!-- end .tab-content -->
<p>You can also see it built with <a href="flatui.html">Flat UI</a>.</p>
</div> <!-- end .col-sm-7 -->
</div> <!-- end .row -->
</div> <!-- end .container -->
</body>
</html>