node-wsjtx-companion – Rev 1

Subversion Repositories:
Rev:
<!DOCTYPE html>
<html>

<head>
    <script src="https://code.jquery.com/jquery-3.7.0.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
    <style>
        body {
            font-family: 'Courier New', Courier, monospace;
        }

        .container {
            text-align: center;
            position: absolute;
            -ms-transform: translate(-50%, 50%);
            transform: translate(-50%, -50%);
            top: 50%;
            left: 50%;
            margin: 0;
        }

        .container pre {
            display: inline-block;
            text-align: left;
            line-height: 12px;
            overflow: hidden;
        }

        @media print {
            .noprint {
                display: none;
            }
        }
    </style>
    <script>
        $(function () {
            $('form').on('submit', function (e) {
                e.preventDefault()
                let callsign = $("[name='callsign']").val()
                if(typeof callsign === 'undefined') {
                    alert(`Unknown callsign: ${callsign}`)
                    return
                }

                if(!/[A-Za-z0-9]{4,6}/.test(callsign)) {
                    alert(`Invalid callsign format: ${callsign}`)
                    return
                }

                $.get(`qsl/${callsign}.txt`, function (data) {
                    $("[name='graphics']").text(data)
                })
            })
        })
    script>
</head>


    
                   ...
                   \|/                                            
                    |                        
                    |    ."-._.-""--.-"-../        
                    |-._/                /  
                    |  '      .-""-.     \   
                    |  \  ** . _  _ . **  ) 
                  .---. )  \\|(_)(_)|//   \         
                  .---. \    (_ /\ _)      )  
                  .---.  )  //|wwww|\\    /                
                    |    . ** '-..-' **   )            
                    |   .'                \              
                    |.../"-.__.-""-.__.-"-.)           
                    |       
                    |
                    |
                    | 
                  /////
        </pre>
        <form class="noprint">
            <fieldset>
                <legend>QSL</legend>
                <div>
                    <label for="callsign">Get QSL Card for Callsign</label>
                    <br />
                    <div>
                        <input name="callsign" type="text" placeholder="callsign">
                        <!-- <span class="help-block">enter a callsign to look up QSL, this form will not appear when printing</span> -->
                        <input name="submit" type="submit" value="Get">
                    </div>
                </div>

            </fieldset>
        </form>
    </figure>
</body>

</html>

Generated by GNU Enscript 1.6.5.90.