node-wsjtx-companion – Blame information for rev 1

Subversion Repositories:
Rev:
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
                  .---.  )  //|wwww|\\    /                
70
                    |    . ** '-..-' **   )            
71
                    |   .'                \              
72
                    |.../"-.__.-""-.__.-"-.)           
73
                    |       
74
                    |
75
                    |
76
                    | 
77
                  /////
78
        </pre>
79
        <form class="noprint">
80
            <fieldset>
81
                <legend>QSL</legend>
82
                <div>
83
                    <label for="callsign">Get QSL Card for Callsign</label>
84
                    <br />
85
                    <div>
86
                        <input name="callsign" type="text" placeholder="callsign">
87
                        <!-- <span class="help-block">enter a callsign to look up QSL, this form will not appear when printing</span> -->
88
                        <input name="submit" type="submit" value="Get">
89
                    </div>
90
                </div>
91  
92
            </fieldset>
93
        </form>
94
    </figure>
95
</body>
96  
97
</html>