-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblockquotes.html
More file actions
398 lines (295 loc) · 16.3 KB
/
Copy pathblockquotes.html
File metadata and controls
398 lines (295 loc) · 16.3 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
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata for the Webpage -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrapr · Blockquotes</title>
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="img/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon/favicon-16x16.png">
<link rel="manifest" href="img/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="img/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap CSS files-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery UI CSS (optional) -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<!-- Google web fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:500,600" rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/cti7nio.css">
<!-- Font Awesome Web Icons -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- CSS Animations --> <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- Main local stylesheet -->
<link rel="stylesheet" href="css/main.css">
<!-- Prettify theme -->
<link rel="stylesheet" href="css/prettify-theme.css">
</head>
<body id="top">
<!-- Navbar include -->
<div w3-include-html="navbar.html"></div>
<div class="container main-content">
<div class="row add-100">
<div class="col-sm-6">
<ol class="breadcrumb">
<li><a href="index.html">Bootstrapr</a></li>
<li class="active">Blockquotes</li>
</ol>
</div>
<!-- col-sm-6 -->
<div class="col-sm-6">
<p class="pull-right">
<i class="fa fa-fw fa-bookmark gray" aria-hidden="true"></i>
<a href="https://getbootstrap.com/docs/3.3/" target="_blank">Bootstrap 3.3.7</a> | <a href="https://getbootstrap.com/docs/3.3/css/#type-blockquotes" target="_blank"><span id="docs-link">Blockquotes</span></a>
</p>
</div>
<!-- col-sm-4-->
</div>
<!-- .row -->
<div class="row">
<div class="col-sm-12">
<h1>Blockquotes</h1>
<p class="lead">Blockquotes are brief, impactful textual excerpts.</p>
<p>Blockquotes are especially useful as epigraphs introducing content by highlighting its main ideas or themes.</p>
</div>
</div>
<hr class="divider">
<div class="row">
<div class="col-sm-3">
<form>
<div class="form-group">
<label for="button-color">Alignment</label>
<select class="form-control" id="alignment" style="margin-bottom: 15px;">
<option value="" selected="selected">Left</option>
<option value="blockquote-reverse">Right</option>
</select>
</div>
<div class="form-group">
<label for="blockquote-quote">Quote</label>
<textarea id="quote" class="form-control" rows="12"></textarea>
<span class="placeholder">Example | And when this happens...</span>
</div>
<div class="form-group">
<label for="blockquote-author">Author</label>
<input type="text" class="form-control" id="author">
<span class="placeholder">Example | Rev. Dr. Martin Luther King, Jr.</span>
</div>
<div class="form-group">
<label for="blockquote-source">Source</label>
<input type="text" class="form-control" id="source">
<span class="placeholder">Example | I Have a Dream</span>
</div>
<label for="no-italics" class="push-down-1">Remove Source Italics</label>
<div class="form-group ">
<div class="checkbox">
<label class="switch">
<input type="checkbox" id="no-italics">
<span class="slider round"></span>
</label>
</div>
</div>
<label for="is-link" class="push-down-1">Make Source a Link</label>
<div class="form-group">
<div class="checkbox">
<label class="switch">
<input type="checkbox" id="is-link">
<span class="slider round"></span>
</label>
</div>
</div>
<div class="form-group push-down-1 hidden" id="source-link-hidden">
<label for="blockquote-source">Source Link</label>
<input type="text" class="form-control" id="source-link">
<span class="placeholder">Example | http://www.link.com</span>
</div>
</form>
<div class="push-down-3" id="action-buttons">
<button type="button" class="btn btn-primary pull-right" id="build-button"><i class="fa fa-fw fa-cogs" aria-hidden="true"></i> Build </button>
<button type="button" class="btn btn-default pull-right" id="clear-form"><i class="fa fa-refresh fa-fw" aria-hidden="true"></i> <span class="hidden-xs hidden-sm">Reset</span></button>
</div>
</div>
<!-- c.ol-sm-3 -->
<div class="col-sm-9">
<div class="example" id="simple-example">
<blockquote>
<p>And when this happens, when we allow freedom to ring, when we let it ring from every village and every hamlet, from every state and every city, we will be able to speed up that day when all of God's children, black men and white
men,
Jews and Gentiles, Protestants and Catholics, will be able to join hands and sing in the words of the old Negro spiritual: “Free at last! Free at last! Thank God Almighty, we are free at last!”</p>
<footer>Rev. Martin Luther King, Jr., from <cite title="I have a Dream"><a href="http://www.americanrhetoric.com/speeches/mlkihaveadream.html">I Have a Dream</a></cite></footer>
</blockquote>
</div>
<div class="well" contenteditable="true">
<!-- Copier-->
<button class="btn btn-code-well pull-right copier" type="button" data-clipboard-demo="" data-clipboard-target="#simple-code" data-toggle="tooltip" data-placement="bottom" title="Copy to Clipboard"><i class="fa fa-fw fa-clipboard"
aria-hidden="true"></i> Copy</button>
<!-- Beautifier -->
<button id="beautify" class="btn btn-code-well pull-left" type="button" data-clipboard-demo="" data-toggle="tooltip" data-placement="bottom" title="Indent code"><i class="fa fa-indent fa-fw" aria-hidden="true"></i> Prettify</button>
<!-- Update Example Panel-->
<button id="update-preview" class="btn btn-code-well pull-left" type="button" data-clipboard-demo="" data-toggle="tooltip" data-placement="bottom" title="Update Example window"><i class="fa fa-fw fa-arrows-v" aria-hidden="true"></i>
Update Example</button>
<hr class="well-separator">
<pre class="prettyprint lang-html" id="simple-code">
<blockquote>
<p>And when this happens, when we allow freedom to ring, when we let it ring from every village and every hamlet, from every state and every city, we will be able to speed up that day when all of God's children, black men and white men, Jews and Gentiles, Protestants and Catholics, will be able to join hands and sing in the words of the old Negro spiritual: “Free at last! Free at last! thank God Almighty, we are free at last!”</p>
<footer>
Rev. Martin Luther King, Jr.
<cite title="I have a Dream">
<a href="http://www.americanrhetoric.com/speeches/mlkihaveadream.html">"I Have a Dream"</a>
</cite>
</footer>
</blockquote>
</pre>
</div>
<!-- example closes -->
<h4 class="sub-header">Custom CSS</h4>
<p>Custom CSS may be required to de-italicize the <code><cite></code> element, and for adding links to the <code><cite></code> element in order to keep the <code><a></code> element the same size as the <code><cite></code>
element (its containing element).</p>
<div class="well">
<!-- Copier-->
<button class="btn btn-code-well pull-right copier" type="button" data-clipboard-demo="" data-clipboard-target="#custom-css-code" data-toggle="tooltip" data-placement="bottom" title="Copy to Clipboard"><i class="fa fa-fw fa-clipboard"
aria-hidden="true"></i> Copy</button>
<!-- Update Example Panel-->
<a id="download-all-css" class="btn btn-code-well pull-left" type="button" data-toggle="tooltip" data-placement="bottom" title="View all Bootstrapr CSS" role="button" href="css/all-bootstrapr-css.css" target="_blank"><i class="fa fa-fw fa-css3" aria-hidden="true"></i> View all Bootstrapr CSS</a>
<hr class="well-separator">
<pre class="prettyprint lang-css" contenteditable="true" id="custom-css-code">
/* Maintain the same size for the anchor element (link) as the cite element */
cite a {
font-size: inherit;
}
/* De-italicize the cite element */
.no-italics {
font-style: normal;
}
</pre>
</div>
<!-- .well -->
</div>
<!-- c.ol-sm-9 -->
</div>
<!-- .row -->
</div>
<!-- .container -->
<!-- Navbar include -->
<div w3-include-html="footer.html"></div>
<!-- Back-to-top button -->
<a role="button" id="topper" class="btn scroll-link" href="#top"><i class="fa fa-fw fa-2x fa-caret-up" aria-hidden="true"></i></a>
<!-- jQuery Javascript Library (required by Bootstrap) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<!-- jQuery UI Library (optional) -->
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!-- Bootstrap Library -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>window.jQuery.fn.modal || document.write('<script src="js/bootstrap.min.js"><\/script>')</script>
<script>
(function($) {
$(function() {
if ($('body').css('color') !== 'rgb(246, 247, 251)') {
$('head').prepend('<link rel="stylesheet" href="css/bootstrap.min.css">');
$('head').prepend('<link rel="stylesheet" href="css/fontawesome-local.css">');
}
});
})(window.jQuery);
</script>
<!-- Confirmation modal -->
<div id="dialog-confirm" title="Reset Form">
<p>This will reset the form. Are you sure?</p>
</div>
<!-- clipboard.js include -->
<script src="js/clipboard.min.js"></script>
<!-- Main local script file -->
<script src="js/main.js"></script>
<!-- includes for Google's code highlighter 'prettyprint' -->
<link rel="stylesheet" type="text/css" href="css/prettify.css">
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript" src="js/lang-css.js"></script>
<!-- html file include script | used for navbar -->
<script src="js/w3data.js"></script>
<!-- Animations JS -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
w3IncludeHTML();
</script>
<script>
$(document).ready(function() {
// tooltips function
$(function() {
$('[data-toggle="tooltip"]').tooltip()
})
// Add active class to navmenu selection
$("li#blockquotes").addClass("active");
$("#features-dropdown").addClass("activated");
// Update the preview window after changes to the code well
$("#update-preview").on("click", function() {
var modifiedCode = $('#simple-code').text();
$("#simple-example").html(modifiedCode);
});
// Hide and show if source is a link
$('#is-link').click(function() {
$('#source-link-hidden').toggleClass('hidden');
$('#source-link').val('');
});
$('#build-button').click(function() {
var blockquoteQuote = $('#quote').val();
var blockquoteAuthor = $('#author').val();
var blockquoteSource = $('#source').val();
var sourceLink = $('#source-link').val();
var blockquoteAlignment = " class='" + $('#alignment').val() + "'";
if (blockquoteSource !== '' && blockquoteAuthor !== '') {
blockquoteAuthor += ", from ";
}
if (blockquoteAuthor == '') {
}
// escape the quotation marks in quote and source fields
blockquoteQuote = blockquoteQuote.replace(/\"/g, '"');
blockquoteQuote = blockquoteQuote.replace(/\”/g, '"');
blockquoteQuote = blockquoteQuote.replace(/\“/g, '"');
blockquoteQuote = blockquoteQuote.replace(/\'/g, ''');
blockquoteQuote = blockquoteQuote.replace(/\‘/g, ''');
blockquoteQuote = blockquoteQuote.replace(/\’/g, ''');
blockquoteSource = blockquoteSource.replace(/\"/g, '"');
blockquoteSource = blockquoteSource.replace(/\”/g, '"');
blockquoteSource = blockquoteSource.replace(/\“/g, '"');
blockquoteSource = blockquoteSource.replace(/\'/g, ''');
blockquoteSource = blockquoteSource.replace(/\‘/g, ''');
blockquoteSource = blockquoteSource.replace(/\’/g, ''');
var linkOpen = "<a href='" + sourceLink + "' target='_blank'>";
var linkClose = "</a>";
if (sourceLink == '') {
linkOpen = '';
linkClose = '';
}
var blockquoteCite = blockquoteSource;
var noItalics = '';
if ($('#no-italics').is(':checked')) {
noItalics = " class='no-italics'";
}
var bsBlockquote = "<blockquote" + blockquoteAlignment + "><p>" + blockquoteQuote + "</p><footer>" + blockquoteAuthor + "<cite" + noItalics + " title='" + blockquoteCite + "'>" + linkOpen + blockquoteSource + linkClose +
"</cite></footer></blockquote>";
// Write the image
$("#simple-example").html(bsBlockquote);
$('#simple-code').text(bsBlockquote);
$('pre').removeClass('prettyprinted');
prettyPrint();
}); // displayBlockquote function
// clipboard button
new Clipboard('.btn');
});
</script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5e46f4c0e8e8fb44"></script>
</body>
</html>