-
Notifications
You must be signed in to change notification settings - Fork 1
/
engage.html
3746 lines (3106 loc) · 115 KB
/
engage.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
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" class="no-js" prefix="lc: http://loc.gov/#">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="version" content="$Revision$"/>
<meta name="msvalidate.01" content="5C89FB9D99590AB2F55BD95C3A59BD81"/>
<link title="schema(DC)" rel="schema.dc" href="http://purl.org/dc/elements/1.1/"/>
<meta name="dc.language" content="eng" />
<meta name="dc.source" content="Library of Congress, Washington, D.C. 20540 USA" />
<link rel="alternate" type="application/json" href="engage/index.html%3Ffo=json" />
<meta property="fb:admins" content="libraryofcongress"/>
<meta property="og:site_name" content="The Library of Congress"/>
<meta property="og:type" content="article" />
<meta property="twitter:site" content="librarycongress"/>
<title>
Library of Congress: Engage! |
Library of Congress
</title>
<meta name="dc.title"
content='Library of Congress: Engage! | Library of Congress ' />
<meta property="og:title"
content='Library of Congress: Engage! | Library of Congress ' />
<meta name='description' content='The Library's doors may be closed, but we are still here for you. On this page you'll find ways to engage with authors you love and ways to connect to the Library’s resources from anywhere in the world.'/>
<meta property="og:description" content="The Library's doors may be closed, but we are still here for you. On this page you'll find ways to engage with authors you love and ways to connect to the Library’s resources from anywhere in the world." />
<meta name="dc.rights" content="Text is U.S. Government Work" />
<link rel="dc.rights" title="Rights Restriction" href="text-us-government-work.html" />
<meta name='dc.type' content='web page'/>
<meta property="og:image" content='http://www.loc.gov/static/portals/engage/images/summary-large-image.jpg' />
<meta property="og:image:secure_url" content="https://www.loc.gov/static/portals/engage/images/summary-large-image.jpg"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="627"/>
<meta property="twitter:card"
content="summary_large_image"/>
<meta property="twitter:title"
content="Library of Congress: Engage! | Library of Congress "/>
<meta property="twitter:image" content="https://www.loc.gov/static/portals/engage/images/summary-large-image.jpg"/>
<link href='static/stylesheets/base.css'
type='text/css'
rel="stylesheet"/>
<script src="https://assets.adobedtm.com/dac62e20b491e735c6b56e64c39134d8ee93f9cf/satelliteLib-6b47f831c184878d7338d4683ecf773a17973bb9.js"></script>
<script type="text/javascript"
src='static/js/lib/jquery-1.8.2.js'></script>
<script type="text/javascript">
/**
* Timing.js 1.0.4
* Copyright 2015 Addy Osmani
*/
(function(window) {
'use strict';
/**
* Navigation Timing API helpers
* timing.getTimes();
**/
window.timing = window.timing || {
/**
* Outputs extended measurements using Navigation Timing API
* @param Object opts Options (simple (bool) - opts out of full data view)
* @return Object measurements
*/
getTimes: function(opts) {
var performance = window.performance || window.webkitPerformance || window.msPerformance || window.mozPerformance;
if (performance === undefined) {
return false;
}
var timing = performance.timing;
var api = {};
opts = opts || {};
if (timing) {
if(opts && !opts.simple) {
for (var k in timing) {
// hasOwnProperty does not work because properties are
// added by modifying the object prototype
if(isNumeric(timing[k])) {
api[k] = parseFloat(timing[k]);
}
}
}
// Time to first paint
if (api.firstPaint === undefined) {
// All times are relative times to the start time within the
// same objects
var firstPaint = 0;
// Chrome
if (window.chrome && window.chrome.loadTimes) {
// Convert to ms
firstPaint = window.chrome.loadTimes().firstPaintTime * 1000;
api.firstPaintTime = firstPaint - (window.chrome.loadTimes().startLoadTime*1000);
}
// IE
else if (typeof window.performance.timing.msFirstPaint === 'number') {
firstPaint = window.performance.timing.msFirstPaint;
api.firstPaintTime = firstPaint - window.performance.timing.navigationStart;
}
// Firefox
// This will use the first times after MozAfterPaint fires
//else if (window.performance.timing.navigationStart && typeof InstallTrigger !== 'undefined') {
// api.firstPaint = window.performance.timing.navigationStart;
// api.firstPaintTime = mozFirstPaintTime - window.performance.timing.navigationStart;
//}
if (opts && !opts.simple) {
api.firstPaint = firstPaint;
}
}
// Total time from start to load
api.loadTime = timing.loadEventEnd - timing.fetchStart;
// Time spent constructing the DOM tree
api.domReadyTime = timing.domComplete - timing.domInteractive;
// Time consumed preparing the new page
api.readyStart = timing.fetchStart - timing.navigationStart;
// Time spent during redirection
api.redirectTime = timing.redirectEnd - timing.redirectStart;
// AppCache
api.appcacheTime = timing.domainLookupStart - timing.fetchStart;
// Time spent unloading documents
api.unloadEventTime = timing.unloadEventEnd - timing.unloadEventStart;
// DNS query time
api.lookupDomainTime = timing.domainLookupEnd - timing.domainLookupStart;
// TCP connection time
api.connectTime = timing.connectEnd - timing.connectStart;
// Time spent during the request
api.requestTime = timing.responseEnd - timing.requestStart;
// Request to completion of the DOM loading
api.initDomTreeTime = timing.domInteractive - timing.responseEnd;
// Load event time
api.loadEventTime = timing.loadEventEnd - timing.loadEventStart;
}
return api;
},
/**
* Uses console.table() to print a complete table of timing information
* @param Object opts Options (simple (bool) - opts out of full data view)
*/
printTable: function(opts) {
var table = {};
var data = this.getTimes(opts) || {};
Object.keys(data).sort().forEach(function(k) {
table[k] = {
ms: data[k],
s: +((data[k] / 1000).toFixed(2))
};
});
console.table(table);
},
/**
* Uses console.table() to print a summary table of timing information
*/
printSimpleTable: function() {
this.printTable({simple: true});
}
};
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
// Expose as a commonjs module
if (typeof module !== 'undefined' && module.exports) {
module.exports = window.timing;
}
})(typeof window !== 'undefined' ? window : {});
;;
</script>
<script type="text/javascript">
// Stub window.loc_ux_tracking so we dont have to riddle the pages
// with if(window.loc_ux_tracking) everywhere. Also create an alias
// `UX`
jQuery(function($){
if(!window.loc_ux_tracking){
window.loc_ux_tracking = {
trackFileDownloadEvent: function(){},
trackUserInteractionEvent: function(){},
trackUserInterfaceAction: function(){},
}
}
window.UX = window.loc_ux_tracking;
UX.download = UX.trackFileDownloadEvent;
UX.interaction = UX.trackUserInteractionEvent;
UX.interface = UX.trackUserInterfaceAction;
function getMediaPosition(player) {
/*
* To support the two media players (JW Player and mediaElement) a facade function
* wwas created in order to get the current position in a video.
*
* getMediaPosition() returns the current position in the video.
* @param {playerObject} player
* @return {currentPosition} number
*/
switch(player.type) {
case 'jwPlayer': {
return player.getPosition();
}
case 'mediaElement': {
return player.getCurrentTime();
}
}
return null;
}
function getMediaDuration(player) {
/*
* To support the two media players (JW Player and mediaElement) a facade function
* wwas created in order to get the length of a video.
*
* getMediaPosition() returns the length of the video.
* @param {playerObject} player
* @return {currentPosition} number
*/
switch(player.type) {
case 'jwPlayer': {
return player.getDuration();
}
case 'mediaElement': {
return player.duration;
}
}
return null;
}
/*
function mediaPlayerInterface(player, playerType) {
// given the media player type, this function will modify the objects such that the methods
// called in track_player are the same for both jwPlayer and mediaElement
switch(playerType) {
case 'jwPlayer': {
// Want to mimic the jwPlayers functions so if jwPlayer do nothing
break;
}
case 'mediaElement': {
player.getPosition = function() {
return player.getCurrentTime();
}
player.getDuration = function() {
return player.duration;
}
break;
}
}
return player;
}
*/
// Register calls to Adobe for metrics tracking
$.omniture = UX.track_player = function(player, playerType, shortName, isVideo) {
player.type = playerType;
var eventData = {
player: player,
shortName: shortName
};
eventData.mediaType = isVideo ? 'video' : 'audio';
switch(playerType) {
case 'jwPlayer': {
player.on('pause', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('buffer', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('idle', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('complete', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('play', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('seeked', function(event) {handleMediaEvent(event, eventData)}, this);
player.on('seeking', function(event) {handleMediaEvent(event, eventData)}, this);
break;
}
case 'mediaElement': {
player.addEventListener('pause', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('buffer', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('idle', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('complete', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('play', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('seeked', function(event) {handleMediaEvent(event, eventData)}, this);
player.addEventListener('seeking', function(event) {handleMediaEvent(event, eventData)}, this);
break;
}
default:
break;
}
};
//Handle various media events and send data to Adobe. This also sends data to the legacy locjukebox reporting suite
function handleMediaEvent(event, eventData) {
if (typeof s != "undefined") {
var player = eventData.player;
var mediaName = eventData.shortName;
var mediaType = eventData.mediaType;
var mediaPlayerName = "LOC JW Player";
var mediaOffset = 0;
var legacyTracking = s_gi('locjukebox');
legacyTracking.trackingServer = s.trackingServerSecure;
legacyTracking.prop4 = mediaName;
if (getMediaPosition(player) > 0) {
mediaOffset = Math.floor(getMediaPosition(player));
}
switch (event.type) {
case 'play':
if (mediaOffset == 0) {
setTimeout(function() {
s.Media.open(mediaName, getMediaDuration(player), mediaPlayerName);
s.Media.play(mediaName, mediaOffset);
legacyTracking.prop8 = "[Button Click] - Start " + mediaType;
legacyTracking.tl();
console.log('play event fired off');
}, 500);
}
else {
s.Media.play(mediaName, mediaOffset);
legacyTracking.prop8 = "[Button Click] - Resume " + mediaType;
legacyTracking.tl();
}
break;
case 'seeked':
s.Media.stop(mediaName, mediaOffset);
s.Media.play(mediaName, mediaOffset);
legacyTracking.prop8 = "[Scrub] - Specific Point in " + mediaType + " Clip";
legacyTracking.tl();
console.log('seek event fired off');
break;
case 'pause':
s.Media.stop(mediaName, mediaOffset);
legacyTracking.prop8 = "[Button Click] - Pause " + mediaType;
legacyTracking.tl();
console.log('pause event fired off');
break;
case 'seeking':
s.Media.stop(mediaName, mediaOffset);
console.log('seeking event fired off');
break;
case 'buffer':
case 'idle':
break;
case 'complete':
s.Media.stop(mediaName, mediaOffset);
s.Media.close(mediaName);
mediaOffset = 0;
legacyTracking.prop8 = "[End Clip] - " + mediaType;
legacyTracking.tl();
break;
}
}
}
});
// General analytics properties. Adobe will inspect the global scope
// and execute this function if it finds it.
var doPageMetricsPlugin = function(s){
// window.UX = window.loc_ux_tracking; // This resets the UX object removing track_player causing a bug for the video player
UX.download = UX.trackFileDownloadEvent;
UX.interaction = UX.trackUserInteractionEvent;
UX.interface = UX.trackUserInterfaceAction;
/* application title: prop10 */
s.prop10 = "Project One";
/* error page report */
s.prop15 = "";
s.prop16 = "";
s.prop18 = ""; // Start Date
s.prop19 = ""; // End Date
s.prop20 = false; // Front page only
/* page title: prop21 */
//Managed content page/article title
s.prop21 = 'Library of Congress: Engage!';
// Basic or Advanced
s.prop15 = 'basic';
//Start date
//End Date
//Front page only
s.prop20 = false;
/* system identifier: prop20 */
/*
*/
/* page identifier: prop11 */
// metrics item page identifier is unique id plus readable title. This
// needs help getting cleaned up using site_type/site_id/resource/title?
// - from item/metrics.html
// - from managed_content/metrics.html
s.prop11 = '/engage - ';
//Set title, same across supporting material like about-this-thing, search
//results within the set as the content, articles and essays etc.
s.prop22 = 0.261704921722;//backend duration
// Assigning specific search options for selected search facets
s.prop23 = "";// suggested
s.prop24 = "";// digitized
s.prop25 = "";// original format
s.prop26 = "";// online format
s.prop27 = "";// date
s.prop28 = "";// part of
s.prop29 = "";// contributor
s.prop30 = "";// subject
s.prop31 = "";// site_id -> picked up by prop62
s.prop32 = "";// location
s.prop33 = "engage";// site_type -> picked up by prop61
s.prop34 = "";// site_path (options.resource) can be longer than 2 segments
s.prop35 = "";// language
s.prop36 = "";// results view type
s.prop37 = '';// searchIn
s.prop38 = "/engage";// path_info
s.prop39 = "";//truncated query string
s.prop40 = '';// count
s.prop41 = "";// sort
s.prop44 = "";// searchTerms
s.prop45 = "";
s.prop46 = "";// qs-adv-search-kw
s.prop47 = '';// startPage
s.prop67 = "";// access condition
/* original format: prop49 */
s.prop49 = 'Web Pages';
s.prop50 = "";
s.prop53 = "";// facetPrefix
s.prop54 = "";// fullText
s.prop55 = "";// download
s.prop56 = ""; // partof_collection
s.prop57 = ""; // number_page
s.prop60 = 123456789;//release_id
s.prop69 = ""; // location_state
s.prop70 = ""; //location_county
s.prop71 = ""; //language
// Combined Facets - yuck, should be deprecated soon
// TODO: This means we need a s.prop for "digitized"
// aka "available online".
s.prop48 = "Facet[Digitized]-(false) ";
/*
/* Advanced Search display level */
s.prop16 = "None";
/* Advanced Search Parameter */
/* Query String */
/* Partof Title */
/* Partof_Division */
/* Partof_Collection */
/* number_page */
/* Location country */
/* Location state */
/* Language */
return s;
};
</script>
<meta name="msapplication-TileColor"
content="#ffffff" />
<meta name="msapplication-TileImage"
content='ms-icon-144x144.png' />
<link rel='alternate'
type='text/html'
href='engage/index.html'/>
<link rel='alternate'
type='application/json'
href='engage/index.html%3Ffo=json'/>
<link title="Library of Congress Search"
href='search/opensearch.xml'
rel="search"
type="application/opensearchdescription+xml" />
</head>
<body>
<div id='body' class='
engage-body
portal-body
default-resource-body
'>
<a class="skip-nav"
href="engage.html#skip-to-content">Skip to main content</a>
<style>.header-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 998;
background-color: #000000;
/* fallback */
background-color: rgba(0, 0, 0, 0.5);
}
.header {
background-color: #fff;
border-top: 4px solid #FC4C02;
border-bottom: 1px solid #bfbfbf;
position: relative;
z-index: 999;
}
.header-container {
max-width: 85.71428571rem;
width: 100%;
margin: 0 auto;
padding: 0 2rem;
background-color: #fff;
box-sizing: border-box;
}
@media (max-width: 768px) {
.header-container {
padding-left: 1rem;
padding-right: 1rem;
}
}
.header-row {
display: flex;
align-items: center;
min-height: 70px;
}
@media (min-width: 993px) {
.header-row {
align-items: flex-end;
}
}
</style>
<header class="header" role="banner">
<div class="header-container">
<div class="header-row">
<style>.header-logo {
width: 161px;
}
@media (min-width: 993px) {
.header-logo {
width: 363px;
padding: 25px 0;
}
}
.header-logo > a {
display: block;
width: 363px;
height: 90px;
}
.header-logo > a > img {
width: 100%;
height: auto;
}
.header-logo > a > span {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
@media (max-width: 992px) {
.header-logo > a {
width: 161px;
height: 40px;
}
}
@media print {
.header-logo > a {
display: none;
}
}
@media (max-width: 992px) {
.header-logo {
padding: 0;
}
}
@media print {
.header-logo {
padding: 1rem 0;
height: 68px;
display: block;
}
.header-logo:after {
content: url("static/images/logo-loc-new-branding.svg%3F$Revision$");
display: block;
width: 100%;
height: 100%;
}
}
</style>
<script>jQuery(function($) {
// UX Interaction Tracking - Logo, Menu, Search, Breadcrumbs
$('.header-logo a').live('click', function() {
UX.interaction($(this), 'LC Logo', 'Click', '');
});
});
</script>
<div class="header-logo">
<a href="index.html">
<img src="static/images/logo-loc-new-branding.svg" alt="" />
<span>Library of Congress</span>
</a>
</div>
<style>.header-search {
flex: 1 1 0%;
padding-left: 30px;
}
@media (min-width: 993px) {
.header-search {
padding: 25px 0 25px 210px;
}
}
.header-search > form {
display: flex;
flex-wrap: wrap;
border: 1px solid #000;
-webkit-transition: all 0.3s ease 0s;
-moz-transition: all 0.3s ease 0s;
-ms-transition: all 0.3s ease 0s;
-o-transition: all 0.3s ease 0s;
transition: all 0.3s ease 0s;
}
@media (max-width: 768px) {
.header-search > form {
flex: 1 0 100%;
}
}
.header-search > form .header-search-formats {
position: relative;
color: #000;
border-bottom: 1px solid #000;
flex: 0 0 100%;
}
@media (min-width: 481px) {
.header-search > form .header-search-formats {
flex: none;
border: none;
}
}
.header-search > form .header-search-formats:after {
content: "\f107";
font-family: FontAwesome;
position: absolute;
right: 0;
top: 0;
pointer-events: none;
height: 30px;
line-height: 30px;
padding: 0 6px;
font-size: 12px;
}
.header-search > form .header-search-formats .header-search-format-select {
border: none;
height: 30px;
width: 100%;
padding-right: 20px;
box-sizing: border-box;
font-size: 12px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
}
@media (max-width: 480px) {
.header-search > form .header-search-formats .header-search-format-select {
font-size: 16px;
}
}
.header-search > form .header-search-formats .header-search-format-select::-ms-expand {
display: none;
}
.header-search > form .header-search-formats .header-search-format-select:hover,
.header-search > form .header-search-formats .header-search-format-select:focus {
box-shadow: inset 0 0 3px #000 !important;
}
.header-search > form .header-search-input-wrapper {
flex: 1 1 1%;
position: relative;
}
.header-search > form .header-search-input-wrapper .header-search-input {
box-sizing: border-box;
width: 100%;
border: none;
border-left: 1px solid #000;
height: 30px;
line-height: 30px;
}
@media (max-width: 480px) {
.header-search > form .header-search-input-wrapper .header-search-input {
font-size: 16px;
border: none;
}
}
.header-search > form .header-search-input-wrapper .header-search-input:focus {
box-shadow: inset 0 0 3px #999 !important;
}
.header-search > form .header-search-button {
height: 30px;
font-size: 18px;
padding: 0 10px;
background-color: #000;
border-color: #000;
}
.header-search > form .header-search-button > span {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.header-search > form .header-search-button .icon {
line-height: inherit;
}
@media (max-width: 768px) {
.header-search > form {
display: none;
}
.header-search > form.header-search-form-active {
display: flex;
}
}
.header-search .header-search-toggle {
display: none;
height: 32px;
font-size: 1.25rem;
padding: 0 10px;
background-color: #000;
border-color: #000;
}
.header-search .header-search-toggle span {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
@media (max-width: 768px) {
.header-search .header-search-toggle {
display: inline-block;
float: right;
}
.header-search .header-search-toggle.header-search-toggle-close {
background-color: transparent;
border-color: transparent;
color: #00618e;
font-size: 36px;
color: #FC4C02;
height: auto;
flex: none;
}
.header-search .header-search-toggle.header-search-toggle-close:hover,
.header-search .header-search-toggle.header-search-toggle-close:focus {
background-color: transparent;
border-color: transparent;
color: #002347;
}
}
@media (max-width: 768px) {
.header-search {
min-height: 32px;
box-sizing: border-box;
margin: 0 !important;
}
.header-search.header-search-close {
padding: 0 55px 0 1rem !important;
z-index: 2;
background: #fff;
overflow: hidden;
position: absolute;
width: 100%;
top: 0;
left: 0;
height: 100%;
display: flex;
align-items: center;
}
}
@media print {
.header-search {
display: none;
}
}
/* autocomplete */
.autocomplete-w1 {
position: absolute;
top: 1px;
left: 0;
margin: 0;
width: 100% !important;
box-sizing: border-box;
}
.autocomplete {
box-sizing: border-box;
border: 1px solid #999;
border-top-color: transparent;
background-color: #fff;
cursor: default;
text-align: left;
max-height: 350px;
overflow: auto;
margin: 0;
}
.autocomplete .selected {
background: #efefef;
}
.autocomplete div {
padding: 2px 5px;
white-space: nowrap;
}
.autocomplete strong {
font-weight: normal;
color: #00618e;
}
.autocomplete-status {
font-weight: normal;
font-size: 10px;
float: right;
text-align: right;
position: absolute;
top: -9999px;
left: -9999px;
}
</style>
<script>jQuery(function($) {
// UX Interaction Tracking - Logo, Menu, Search, Breadcrumbs
$('.header-search-format-select').change(function() {
var label;
$('.header-search-format-select option:selected').each(function() {
label = $(this).text().trim();
});
UX.interaction($(this), 'Search', 'Select Format', label);
});
// search toggle