@internetarchive/ia-topnav 1.1.18-a1 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +10 -20
  2. package/demo.html +41 -0
  3. package/index.d.ts +7 -7
  4. package/package.json +18 -25
  5. package/src/assets/img/hamburger.js +3 -3
  6. package/src/assets/img/ia-icon.js +2 -2
  7. package/src/assets/img/icon-audio.js +1 -1
  8. package/src/assets/img/icon-close.js +1 -1
  9. package/src/assets/img/icon-donate.js +1 -1
  10. package/src/assets/img/icon-ellipses.js +1 -1
  11. package/src/assets/img/icon-ia-logo.js +1 -1
  12. package/src/assets/img/icon-images.js +1 -1
  13. package/src/assets/img/icon-search.js +1 -1
  14. package/src/assets/img/icon-software.js +1 -1
  15. package/src/assets/img/icon-texts.js +1 -1
  16. package/src/assets/img/icon-upload.js +1 -1
  17. package/src/assets/img/icon-user.js +1 -1
  18. package/src/assets/img/icon-video.js +1 -1
  19. package/src/assets/img/icon-web.js +1 -1
  20. package/src/assets/img/icon.js +1 -1
  21. package/src/assets/img/icons.js +13 -13
  22. package/src/assets/img/user.js +2 -2
  23. package/src/assets/img/wordmark-stacked.js +1 -1
  24. package/src/data/menus.js +589 -506
  25. package/src/desktop-subnav.js +5 -5
  26. package/src/dropdown-menu.js +4 -4
  27. package/src/ia-topnav.js +35 -12
  28. package/src/login-button.js +5 -5
  29. package/src/media-button.js +5 -5
  30. package/src/media-menu.js +5 -5
  31. package/src/media-slider.js +48 -8
  32. package/src/media-subnav.js +28 -23
  33. package/src/more-slider.js +5 -5
  34. package/src/nav-search.js +5 -5
  35. package/src/primary-nav.js +12 -12
  36. package/src/save-page-form.js +3 -3
  37. package/src/search-menu.js +5 -5
  38. package/src/signed-out-dropdown.js +2 -2
  39. package/src/styles/base.js +1 -1
  40. package/src/styles/desktop-subnav.js +1 -1
  41. package/src/styles/dropdown-menu.js +1 -1
  42. package/src/styles/ia-topnav.js +5 -1
  43. package/src/styles/login-button.js +1 -1
  44. package/src/styles/media-button.js +1 -1
  45. package/src/styles/media-menu.js +5 -5
  46. package/src/styles/media-slider.js +5 -1
  47. package/src/styles/media-subnav.js +2 -2
  48. package/src/styles/more-slider.js +1 -1
  49. package/src/styles/nav-search.js +1 -1
  50. package/src/styles/primary-nav.js +1 -1
  51. package/src/styles/save-page-form.js +1 -1
  52. package/src/styles/search-menu.js +4 -4
  53. package/src/styles/signed-out-dropdown.js +1 -1
  54. package/src/styles/user-menu.js +1 -1
  55. package/src/styles/wayback-search.js +1 -1
  56. package/src/styles/wayback-slider.js +2 -2
  57. package/src/tracked-element.js +1 -1
  58. package/src/user-menu.js +3 -3
  59. package/src/wayback-search.js +7 -1
  60. package/src/wayback-slider.js +8 -8
  61. package/test/data/menus.test.js +2 -1
  62. package/test/ia-topnav.test.js +17 -27
  63. package/test/media-slider.test.js +24 -8
  64. package/test/more-slider.test.js +3 -2
  65. package/test/search-menu.test.js +1 -1
  66. package/test/user-menu.test.js +11 -26
  67. package/base64_encoded_menus.html +0 -72
  68. package/index.html +0 -251
  69. package/karma.bs.config.js +0 -16
  70. package/karma.conf.js +0 -25
  71. package/src/data/petabox_signedout_menus.js +0 -514
@@ -1,514 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- "audio": {
4
- "heading": "Internet Archive Audio",
5
- "iconLinks": [
6
- {
7
- "icon": "https://www-shaner4.archive.org/services/img/etree",
8
- "title": "Live Music Archive",
9
- "url": "https://www-shaner4.archive.org/details/etree"
10
- },
11
- {
12
- "icon": "https://www-shaner4.archive.org/services/img/librivoxaudio",
13
- "title": "Librivox Free Audio",
14
- "url": "https://www-shaner4.archive.org/details/librivoxaudio"
15
- }
16
- ],
17
- "featuredLinks": [
18
- {
19
- "title": "All audio",
20
- "url": "https://www-shaner4.archive.org/details/audio"
21
- },
22
- {
23
- "title": "This Just In",
24
- "url": "https://www-shaner4.archive.org/search.php?query=mediatype:audio&sort=-publicdate"
25
- },
26
- {
27
- "title": "Grateful Dead",
28
- "url": "https://www-shaner4.archive.org/details/GratefulDead"
29
- },
30
- {
31
- "title": "Netlabels",
32
- "url": "https://www-shaner4.archive.org/details/netlabels"
33
- },
34
- {
35
- "title": "Old Time Radio",
36
- "url": "https://www-shaner4.archive.org/details/oldtimeradio"
37
- },
38
- {
39
- "title": "78 RPMs and Cylinder Recordings",
40
- "url": "https://www-shaner4.archive.org/details/78rpm"
41
- }
42
- ],
43
- "links": [
44
- {
45
- "title": "Audio Books & Poetry",
46
- "url": "https://www-shaner4.archive.org/audio_bookspoetry"
47
- },
48
- {
49
- "title": "Community Audio",
50
- "url": "https://www-shaner4.archive.org/opensource_audio"
51
- },
52
- {
53
- "title": "Computers, Technology and Science",
54
- "url": "https://www-shaner4.archive.org/audio_tech"
55
- },
56
- {
57
- "title": "Live Music Archive",
58
- "url": "https://www-shaner4.archive.org/etree"
59
- },
60
- {
61
- "title": "Music, Arts & Culture",
62
- "url": "https://www-shaner4.archive.org/audio_music"
63
- },
64
- {
65
- "title": "Netlabels",
66
- "url": "https://www-shaner4.archive.org/netlabels"
67
- },
68
- {
69
- "title": "News & Public Affairs",
70
- "url": "https://www-shaner4.archive.org/audio_news"
71
- },
72
- {
73
- "title": "Non-English Audio",
74
- "url": "https://www-shaner4.archive.org/audio_foreign"
75
- },
76
- {
77
- "title": "Spirituality & Religion",
78
- "url": "https://www-shaner4.archive.org/audio_religion"
79
- },
80
- {
81
- "title": "Podcasts",
82
- "url": "https://www-shaner4.archive.org/details/podcasts"
83
- }
84
- ]
85
- },
86
- "images": {
87
- "heading": "Images",
88
- "iconLinks": [
89
- {
90
- "icon": "https://www-shaner4.archive.org/services/img/metropolitanmuseumofart-gallery",
91
- "title": "Metropolitan Museum",
92
- "url": "https://www-shaner4.archive.org/details/metropolitanmuseumofart-gallery"
93
- },
94
- {
95
- "icon": "https://www-shaner4.archive.org/services/img/brooklynmuseum",
96
- "title": "Brooklyn Museum",
97
- "url": "https://www-shaner4.archive.org/details/brooklynmuseum"
98
- }
99
- ],
100
- "featuredLinks": [
101
- {
102
- "title": "All images",
103
- "url": "https://www-shaner4.archive.org/details/image"
104
- },
105
- {
106
- "title": "This Just In",
107
- "url": "https://www-shaner4.archive.org/search.php?query=mediatype:image&sort=-publicdate"
108
- },
109
- {
110
- "title": "Flickr Commons",
111
- "url": "https://www-shaner4.archive.org/details/flickrcommons"
112
- },
113
- {
114
- "title": "Occupy Wall Street Flickr",
115
- "url": "https://www-shaner4.archive.org/details/flickr-ows"
116
- },
117
- {
118
- "title": "Cover Art",
119
- "url": "https://www-shaner4.archive.org/details/coverartarchive"
120
- },
121
- {
122
- "title": "USGS Maps",
123
- "url": "https://www-shaner4.archive.org/details/maps_usgs"
124
- }
125
- ],
126
- "links": [
127
- {
128
- "title": "NASA Images",
129
- "url": "https://www-shaner4.archive.org/details/nasa"
130
- },
131
- {
132
- "title": "Solar System Collection",
133
- "url": "https://www-shaner4.archive.org/details/solarsystemcollection"
134
- },
135
- {
136
- "title": "Ames Research Center",
137
- "url": "https://www-shaner4.archive.org/details/amesresearchcenterimagelibrary"
138
- }
139
- ]
140
- },
141
- "more": [
142
- {
143
- "title": "About",
144
- "url": "https://www-shaner4.archive.org/about/"
145
- },
146
- {
147
- "title": "Blog",
148
- "url": "https://blog.archive.org/"
149
- },
150
- {
151
- "title": "Projects",
152
- "url": "https://www-shaner4.archive.org/projects/"
153
- },
154
- {
155
- "title": "Help",
156
- "url": "https://www-shaner4.archive.org/about/faqs.php"
157
- },
158
- {
159
- "title": "Donate",
160
- "url": "https://www-shaner4.archive.org/donate/"
161
- },
162
- {
163
- "title": "Contact",
164
- "url": "https://www-shaner4.archive.org/about/contact.php"
165
- },
166
- {
167
- "title": "Jobs",
168
- "url": "https://www-shaner4.archive.org/about/jobs.php"
169
- },
170
- {
171
- "title": "Volunteer",
172
- "url": "https://www-shaner4.archive.org/about/volunteerpositions.php"
173
- },
174
- {
175
- "title": "People",
176
- "url": "https://www-shaner4.archive.org/about/bios.php"
177
- }
178
- ],
179
- "software": {
180
- "heading": "Software",
181
- "iconLinks": [
182
- {
183
- "icon": "https://www-shaner4.archive.org/services/img/internetarcade",
184
- "title": "Internet Arcade",
185
- "url": "https://www-shaner4.archive.org/details/internetarcade"
186
- },
187
- {
188
- "icon": "https://www-shaner4.archive.org/services/img/consolelivingroom",
189
- "title": "Console Living Room",
190
- "url": "https://www-shaner4.archive.org/details/consolelivingroom"
191
- }
192
- ],
193
- "featuredLinks": [
194
- {
195
- "title": "All software",
196
- "url": "https://www-shaner4.archive.org/details/software"
197
- },
198
- {
199
- "title": "This Just In",
200
- "url": "https://www-shaner4.archive.org/search.php?query=mediatype:software&sort=-publicdate"
201
- },
202
- {
203
- "title": "Old School Emulation",
204
- "url": "https://www-shaner4.archive.org/details/tosec"
205
- },
206
- {
207
- "title": "MS-DOS Games",
208
- "url": "https://www-shaner4.archive.org/details/softwarelibrary_msdos_games"
209
- },
210
- {
211
- "title": "Historical Software",
212
- "url": "https://www-shaner4.archive.org/details/historicalsoftware"
213
- },
214
- {
215
- "title": "Classic PC Games",
216
- "url": "https://www-shaner4.archive.org/details/classicpcgames"
217
- },
218
- {
219
- "title": "Software Library",
220
- "url": "https://www-shaner4.archive.org/details/softwarelibrary"
221
- }
222
- ],
223
- "links": [
224
- {
225
- "title": "Kodi Archive and Support File",
226
- "url": "https://www-shaner4.archive.org/details/kodi_archive"
227
- },
228
- {
229
- "title": "Community Software",
230
- "url": "https://www-shaner4.archive.org/details/open_source_software"
231
- },
232
- {
233
- "title": "Vintage Software",
234
- "url": "https://www-shaner4.archive.org/details/vintagesoftware"
235
- },
236
- {
237
- "title": "APK",
238
- "url": "https://www-shaner4.archive.org/details/apkarchive"
239
- },
240
- {
241
- "title": "MS-DOS",
242
- "url": "https://www-shaner4.archive.org/details/softwarelibrary_msdos"
243
- },
244
- {
245
- "title": "CD-ROM Software",
246
- "url": "https://www-shaner4.archive.org/details/cd-roms"
247
- },
248
- {
249
- "title": "CD-ROM Software Library",
250
- "url": "https://www-shaner4.archive.org/details/cdromsoftware"
251
- },
252
- {
253
- "title": "Software Sites",
254
- "url": "https://www-shaner4.archive.org/details/softwaresites"
255
- },
256
- {
257
- "title": "Tucows Software Library",
258
- "url": "https://www-shaner4.archive.org/details/tucows"
259
- },
260
- {
261
- "title": "Shareware CD-ROMs",
262
- "url": "https://www-shaner4.archive.org/details/cdbbsarchive"
263
- },
264
- {
265
- "title": "Software Capsules Compilation",
266
- "url": "https://www-shaner4.archive.org/details/softwarecapsules"
267
- },
268
- {
269
- "title": "CD-ROM Images",
270
- "url": "https://www-shaner4.archive.org/details/cdromimages"
271
- },
272
- {
273
- "title": "ZX Spectrum",
274
- "url": "https://www-shaner4.archive.org/details/softwarelibrary_zx_spectrum"
275
- },
276
- {
277
- "title": "DOOM Level CD",
278
- "url": "https://www-shaner4.archive.org/details/doom-cds"
279
- }
280
- ]
281
- },
282
- "texts": {
283
- "heading": "Books",
284
- "iconLinks": [
285
- {
286
- "title": "Books to Borrow",
287
- "icon": "https://www-shaner4.archive.org/images/book-lend.png",
288
- "url": "https://www-shaner4.archive.org/details/inlibrary"
289
- },
290
- {
291
- "title": "Open Library",
292
- "icon": "https://www-shaner4.archive.org/images/widgetOL.png",
293
- "url": "https://openlibrary.org/"
294
- }
295
- ],
296
- "featuredLinks": [
297
- {
298
- "title": "All Books",
299
- "url": "https://www-shaner4.archive.org/details/books"
300
- },
301
- {
302
- "title": "All Texts",
303
- "url": "https://www-shaner4.archive.org/details/texts"
304
- },
305
- {
306
- "title": "This Just In",
307
- "url": "https://www-shaner4.archive.org/search.php?query=mediatype:texts&sort=-publicdate"
308
- },
309
- {
310
- "title": "Smithsonian Libraries",
311
- "url": "https://www-shaner4.archive.org/details/smithsonian"
312
- },
313
- {
314
- "title": "FEDLINK (US)",
315
- "url": "https://www-shaner4.archive.org/details/fedlink"
316
- },
317
- {
318
- "title": "Genealogy",
319
- "url": "https://www-shaner4.archive.org/details/genealogy"
320
- },
321
- {
322
- "title": "Lincoln Collection",
323
- "url": "https://www-shaner4.archive.org/details/lincolncollection"
324
- }
325
- ],
326
- "links": [
327
- {
328
- "title": "American Libraries",
329
- "url": "https://www-shaner4.archive.org/americana"
330
- },
331
- {
332
- "title": "Canadian Libraries",
333
- "url": "https://www-shaner4.archive.org/toronto"
334
- },
335
- {
336
- "title": "Universal Library",
337
- "url": "https://www-shaner4.archive.org/universallibrary"
338
- },
339
- {
340
- "title": "Community Texts",
341
- "url": "https://www-shaner4.archive.org/opensource"
342
- },
343
- {
344
- "title": "Project Gutenberg",
345
- "url": "https://www-shaner4.archive.org/gutenberg"
346
- },
347
- {
348
- "title": "Biodiversity Heritage Library",
349
- "url": "https://www-shaner4.archive.org/biodiversity"
350
- },
351
- {
352
- "title": "Children%27s Library",
353
- "url": "https://www-shaner4.archive.org/iacl"
354
- },
355
- {
356
- "title": "Books by Language",
357
- "url": "https://www-shaner4.archive.org/details/booksbylanguage"
358
- },
359
- {
360
- "title": "Additional Collections",
361
- "url": "https://www-shaner4.archive.org/details/additional_collections"
362
- }
363
- ]
364
- },
365
- "web": {
366
- "mobileAppsLinks": [
367
- {
368
- "url": "https://apps.apple.com/us/app/wayback-machine/id1201888313",
369
- "title": "Wayback Machine (iOS)",
370
- "external": true
371
- },
372
- {
373
- "url": "https://play.google.com/store/apps/details?id=com.archive.waybackmachine&hl=en_US",
374
- "title": "Wayback Machine (Android)",
375
- "external": true
376
- }
377
- ],
378
- "browserExtensionsLinks": [
379
- {
380
- "url": "https://chrome.google.com/webstore/detail/wayback-machine/fpnmgdkabkmnadcjpehmlllkndpkmiak",
381
- "title": "Chrome",
382
- "external": true
383
- },
384
- {
385
- "url": "https://addons.mozilla.org/en-US/firefox/addon/wayback-machine_new/",
386
- "title": "Firefox",
387
- "external": true
388
- },
389
- {
390
- "url": "https://apps.apple.com/us/app/wayback-machine/id1472432422?mt=12",
391
- "title": "Safari",
392
- "external": true
393
- },
394
- {
395
- "url": "https://microsoftedge.microsoft.com/addons/detail/wayback-machine/kjmickeoogghaimmomagaghnogelpcpn?hl=en-US",
396
- "title": "Edge",
397
- "external": true
398
- }
399
- ],
400
- "archiveItLinks": [
401
- {
402
- "url": "https://www.archive-it.org/explore",
403
- "title": "Explore the Collections"
404
- },
405
- {
406
- "url": "https://www.archive-it.org/blog/learn-more/",
407
- "title": "Learn More"
408
- },
409
- {
410
- "url": "https://www.archive-it.org/contact-us",
411
- "title": "Build Collections"
412
- }
413
- ]
414
- },
415
- "video": {
416
- "heading": "Video",
417
- "iconLinks": [
418
- {
419
- "icon": "https://www-shaner4.archive.org/services/img/tv",
420
- "title": "TV News",
421
- "url": "https://www-shaner4.archive.org/details/tv"
422
- },
423
- {
424
- "icon": "https://www-shaner4.archive.org/services/img/911",
425
- "title": "Understanding 9/11",
426
- "url": "https://www-shaner4.archive.org/details/911"
427
- }
428
- ],
429
- "featuredLinks": [
430
- {
431
- "title": "All video",
432
- "url": "https://www-shaner4.archive.org/details/movies"
433
- },
434
- {
435
- "title": "This Just In",
436
- "url": "https://www-shaner4.archive.org/search.php?query=mediatype:movies&sort=-publicdate"
437
- },
438
- {
439
- "title": "Prelinger Archives",
440
- "url": "https://www-shaner4.archive.org/details/prelinger"
441
- },
442
- {
443
- "title": "Democracy Now!",
444
- "url": "https://www-shaner4.archive.org/details/democracy_now_vid"
445
- },
446
- {
447
- "title": "Occupy Wall Street",
448
- "url": "https://www-shaner4.archive.org/details/occupywallstreet"
449
- },
450
- {
451
- "title": "TV NSA Clip Library",
452
- "url": "https://www-shaner4.archive.org/details/nsa"
453
- }
454
- ],
455
- "links": [
456
- {
457
- "title": "Animation & Cartoons",
458
- "url": "https://www-shaner4.archive.org/animationandcartoons"
459
- },
460
- {
461
- "title": "Arts & Music",
462
- "url": "https://www-shaner4.archive.org/artsandmusicvideos"
463
- },
464
- {
465
- "title": "Computers & Technology",
466
- "url": "https://www-shaner4.archive.org/computersandtechvideos"
467
- },
468
- {
469
- "title": "Cultural & Academic Films",
470
- "url": "https://www-shaner4.archive.org/culturalandacademicfilms"
471
- },
472
- {
473
- "title": "Ephemeral Films",
474
- "url": "https://www-shaner4.archive.org/ephemera"
475
- },
476
- {
477
- "title": "Movies",
478
- "url": "https://www-shaner4.archive.org/moviesandfilms"
479
- },
480
- {
481
- "title": "News & Public Affairs",
482
- "url": "https://www-shaner4.archive.org/newsandpublicaffairs"
483
- },
484
- {
485
- "title": "Prelinger Archives",
486
- "url": "https://www-shaner4.archive.org/prelinger"
487
- },
488
- {
489
- "title": "Spirituality & Religion",
490
- "url": "https://www-shaner4.archive.org/spiritualityandreligion"
491
- },
492
- {
493
- "title": "Sports Videos",
494
- "url": "https://www-shaner4.archive.org/sports"
495
- },
496
- {
497
- "title": "Norton Media Center",
498
- "url": "https://www-shaner4.archive.org/details/nmcma"
499
- }
500
- ]
501
- },
502
- "signedOut": [
503
- {
504
- "url": "https://www-shaner4.archive.org/account/signup",
505
- "title": "Sign up for free",
506
- "analyticsEvent": "AvatarMenu-Signup"
507
- },
508
- {
509
- "url": "https://www-shaner4.archive.org/account/login",
510
- "title": "Log in",
511
- "analyticsEvent": "AvatarMenu-Login"
512
- }
513
- ]
514
- };