Track

ERt5CqssdCXXRNU7pQSTvXuj9aAka5wwhMvSUSKuCWpN
This track's sequential ID.
Number
#2
Size of the stored blob.
Size
513 B
Epoch the track became active.
Active Epoch
314
Epoch after which the track expires.
Expiry Epoch
569
on 9/17/2026
DetailsDownload
URLhttps://gw.tape.network/track/ERt5CqssdCXXRNU7pQSTvXuj9aAka5wwhMvSUSKuCWpN
Tape3v1Cs...3diiu
OwnerHkkjF...88dCy
Content KeyG7KAQ...SKqHp
StatusReady
TypeUser
Filenameapp.js
Content-Typetext/javascript
EncodingInline
Size513 B
Spool Group2
Value Hash
9DhFYfXWYrjc5Rh4yUT1CEQtHiSR7Xz5b4M6FFJCg6vt
Content
00000000  63 6f 6e 73 74 20 66 6f  72 6d 20 3d 20 64 6f 63 |const form = doc|
00000010  75 6d 65 6e 74 2e 71 75  65 72 79 53 65 6c 65 63 |ument.querySelec|
00000020  74 6f 72 28 22 23 67 72  65 65 74 69 6e 67 2d 66 |tor("#greeting-f|
00000030  6f 72 6d 22 29 3b 0a 63  6f 6e 73 74 20 6e 61 6d |orm");.const nam|
00000040  65 49 6e 70 75 74 20 3d  20 64 6f 63 75 6d 65 6e |eInput = documen|
00000050  74 2e 71 75 65 72 79 53  65 6c 65 63 74 6f 72 28 |t.querySelector(|
00000060  22 23 76 69 73 69 74 6f  72 2d 6e 61 6d 65 22 29 |"#visitor-name")|
00000070  3b 0a 63 6f 6e 73 74 20  6d 65 73 73 61 67 65 20 |;.const message |
00000080  3d 20 64 6f 63 75 6d 65  6e 74 2e 71 75 65 72 79 |= document.query|
00000090  53 65 6c 65 63 74 6f 72  28 22 23 67 72 65 65 74 |Selector("#greet|
000000a0  69 6e 67 2d 6d 65 73 73  61 67 65 22 29 3b 0a 0a |ing-message");..|
000000b0  69 66 20 28 66 6f 72 6d  20 26 26 20 6e 61 6d 65 |if (form && name|
000000c0  49 6e 70 75 74 20 26 26  20 6d 65 73 73 61 67 65 |Input && message|
000000d0  29 20 7b 0a 20 20 66 6f  72 6d 2e 61 64 64 45 76 |) {.  form.addEv|
000000e0  65 6e 74 4c 69 73 74 65  6e 65 72 28 22 73 75 62 |entListener("sub|
000000f0  6d 69 74 22 2c 20 28 65  76 65 6e 74 29 20 3d 3e |mit", (event) =>|
00000100  20 7b 0a 20 20 20 20 65  76 65 6e 74 2e 70 72 65 | {.    event.pre|
00000110  76 65 6e 74 44 65 66 61  75 6c 74 28 29 3b 0a 0a |ventDefault();..|
00000120  20 20 20 20 63 6f 6e 73  74 20 6e 61 6d 65 20 3d |    const name =|
00000130  20 6e 61 6d 65 49 6e 70  75 74 2e 76 61 6c 75 65 | nameInput.value|
00000140  2e 74 72 69 6d 28 29 3b  0a 0a 20 20 20 20 6d 65 |.trim();..    me|
00000150  73 73 61 67 65 2e 74 65  78 74 43 6f 6e 74 65 6e |ssage.textConten|
00000160  74 20 3d 20 6e 61 6d 65  0a 20 20 20 20 20 20 3f |t = name.      ?|
00000170  20 60 57 65 6c 63 6f 6d  65 2c 20 24 7b 6e 61 6d | `Welcome, ${nam|
00000180  65 7d 21 20 49 74 27 73  20 6c 6f 76 65 6c 79 20 |e}! It's lovely |
00000190  74 6f 20 68 61 76 65 20  79 6f 75 20 68 65 72 65 |to have you here|
000001a0  2e 60 0a 20 20 20 20 20  20 3a 20 22 57 65 6c 63 |.`.      : "Welc|
000001b0  6f 6d 65 21 20 57 65 27  72 65 20 67 6c 61 64 20 |ome! We're glad |
000001c0  79 6f 75 27 72 65 20 68  65 72 65 2e 20 57 68 61 |you're here. Wha|
000001d0  74 27 73 20 79 6f 75 72  20 6e 61 6d 65 3f 22 3b |t's your name?";|
000001e0  0a 0a 20 20 20 20 6e 61  6d 65 49 6e 70 75 74 2e |..    nameInput.|
000001f0  66 6f 63 75 73 28 29 3b  0a 20 20 7d 29 3b 0a 7d |focus();.  });.}|
00000200  0a                                               |.|