node-wsjtx-companion – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <!DOCTYPE html> |
2 | <html> |
||
3 | |||
4 | <head> |
||
5 | <script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script> |
||
6 | <style> |
||
7 | body { |
||
8 | font-family: 'Courier New', Courier, monospace; |
||
9 | } |
||
10 | |||
11 | .container { |
||
12 | text-align: center; |
||
13 | position: absolute; |
||
14 | -ms-transform: translate(-50%, 50%); |
||
15 | transform: translate(-50%, -50%); |
||
16 | top: 50%; |
||
17 | left: 50%; |
||
18 | margin: 0; |
||
19 | } |
||
20 | |||
21 | .container pre { |
||
22 | display: inline-block; |
||
23 | text-align: left; |
||
24 | line-height: 12px; |
||
25 | overflow: hidden; |
||
26 | } |
||
27 | |||
28 | @media print { |
||
29 | .noprint { |
||
30 | display: none; |
||
31 | } |
||
32 | } |
||
33 | </style> |
||
34 | <script> |
||
35 | $(function () { |
||
36 | $('form').on('submit', function (e) { |
||
37 | e.preventDefault() |
||
38 | let callsign = $("[name='callsign']").val() |
||
39 | if(typeof callsign === 'undefined') { |
||
40 | alert(`Unknown callsign: ${callsign}`) |
||
41 | return |
||
42 | } |
||
43 | |||
44 | if(!/[A-Za-z0-9]{4,6}/.test(callsign)) { |
||
45 | alert(`Invalid callsign format: ${callsign}`) |
||
46 | return |
||
47 | } |
||
48 | |||
49 | $.get(`qsl/${callsign}.txt`, function (data) { |
||
50 | $("[name='graphics']").text(data) |
||
51 | }) |
||
52 | }) |
||
53 | }) |
||
54 | script> |
||
55 | </head> |
||
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 |
|