Spaces:
Running
Running
Download export.html from SamRivera/specpdf-wizard-3000: direct link, hf CLI and curl.
- Browser
- Download file 15.9 kB
-
https://huggingface.co/spaces/SamRivera/specpdf-wizard-3000/resolve/main/export.html
- Command line
-
hf download hf://spaces/SamRivera/specpdf-wizard-3000/export.html
-
curl -L -o export.html https://huggingface.co/spaces/SamRivera/specpdf-wizard-3000/resolve/main/export.html
15.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Masterspec PDF Export</title> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet"> | |
| <style> | |
| .preview-drawer { | |
| width: 400px; | |
| height: 100vh; | |
| position: fixed; | |
| top: 0; | |
| right: -400px; | |
| background: white; | |
| box-shadow: -5px 0 15px rgba(0,0,0,0.1); | |
| transition: right 0.3s ease; | |
| z-index: 1000; | |
| overflow-y: auto; | |
| padding: 20px; | |
| } | |
| .preview-drawer.open { | |
| right: 0; | |
| } | |
| .cover-thumbnail { | |
| width: 100px; | |
| height: 140px; | |
| object-fit: cover; | |
| border: 1px solid #ddd; | |
| margin-bottom: 10px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-light"> | |
| <div class="container-fluid py-4"> | |
| <div class="row"> | |
| <div class="col-lg-8"> | |
| <div class="card shadow-sm mb-4"> | |
| <div class="card-header bg-primary text-white"> | |
| <h4 class="mb-0">Masterspec PDF Export</h4> | |
| </div> | |
| <div class="card-body"> | |
| <form id="exportForm"> | |
| <!-- Export Format --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Export Format</h5> | |
| <select class="form-select" id="exportFormat"> | |
| <option value="pdf">PDF</option> | |
| <option value="cloud">Cloud Issue</option> | |
| <option value="both">PDF + Cloud Issue</option> | |
| </select> | |
| </div> | |
| <!-- Content Selection --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Content Selection</h5> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="specDocument" checked> | |
| <label class="form-check-label" for="specDocument">Specification Document</label> | |
| </div> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="contractAppendix"> | |
| <label class="form-check-label" for="contractAppendix">Contract Appendix</label> | |
| </div> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="manufacturerInfo"> | |
| <label class="form-check-label" for="manufacturerInfo">Manufacturer Information</label> | |
| </div> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="envCertifications"> | |
| <label class="form-check-label" for="envCertifications">Environmental Certifications</label> | |
| </div> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="nzcicGuidelines"> | |
| <label class="form-check-label" for="nzcicGuidelines">NZCIC Guidelines</label> | |
| </div> | |
| </div> | |
| <!-- Style Options --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Document Style</h5> | |
| <select class="form-select" id="documentStyle"> | |
| <option value="compact">Compact</option> | |
| <option value="classic">Classic</option> | |
| </select> | |
| </div> | |
| <!-- Cover Page --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Cover Page Template</h5> | |
| <div class="row"> | |
| <div class="col-md-3 mb-3"> | |
| <div class="card"> | |
| <img src="http://static.photos/office/200x200/1" class="cover-thumbnail" alt="Classic Professional"> | |
| <div class="card-body p-2"> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="coverTemplate" id="cover1" value="classic" checked> | |
| <label class="form-check-label small" for="cover1">Classic Professional</label> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="col-md-3 mb-3"> | |
| <div class="card"> | |
| <img src="http://static.photos/office/200x200/2" class="cover-thumbnail" alt="Project Branded"> | |
| <div class="card-body p-2"> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="coverTemplate" id="cover2" value="branded"> | |
| <label class="form-check-label small" for="cover2">Project Branded</label> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="col-md-3 mb-3"> | |
| <div class="card"> | |
| <img src="http://static.photos/office/200x200/3" class="cover-thumbnail" alt="Technical Snapshot"> | |
| <div class="card-body p-2"> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="coverTemplate" id="cover3" value="technical"> | |
| <label class="form-check-label small" for="cover3">Technical Snapshot</label> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="col-md-3 mb-3"> | |
| <div class="card"> | |
| <img src="http://static.photos/office/200x200/4" class="cover-thumbnail" alt="Custom"> | |
| <div class="card-body p-2"> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="coverTemplate" id="cover4" value="custom"> | |
| <label class="form-check-label small" for="cover4">Upload Custom</label> | |
| </div> | |
| <input type="file" class="form-control form-control-sm d-none" id="customCoverUpload"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Font Customization --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Font Customization</h5> | |
| <div class="row"> | |
| <div class="col-md-6 mb-3"> | |
| <label for="headingFont" class="form-label">Heading Font</label> | |
| <select class="form-select" id="headingFont"> | |
| <option>Arial</option> | |
| <option>Arial Nova</option> | |
| <option>Calibri</option> | |
| <option>Georgia</option> | |
| <option>Open Sans</option> | |
| <option>Roboto</option> | |
| </select> | |
| </div> | |
| <div class="col-md-6 mb-3"> | |
| <label for="headingSize" class="form-label">Heading Size (px)</label> | |
| <input type="number" class="form-control" id="headingSize" value="16"> | |
| </div> | |
| <div class="col-md-6 mb-3"> | |
| <label for="bodyFont" class="form-label">Body Font</label> | |
| <select class="form-select" id="bodyFont"> | |
| <option>Arial</option> | |
| <option>Arial Nova</option> | |
| <option>Calibri</option> | |
| <option>Georgia</option> | |
| <option>Open Sans</option> | |
| <option>Roboto</option> | |
| </select> | |
| </div> | |
| <div class="col-md-6 mb-3"> | |
| <label for="bodySize" class="form-label">Body Size (px)</label> | |
| <input type="number" class="form-control" id="bodySize" value="12"> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Document Headers/Footers --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Document Headers & Footers</h5> | |
| <div class="mb-3"> | |
| <label for="documentHeader" class="form-label">Document Header</label> | |
| <textarea class="form-control" id="documentHeader" rows="3"></textarea> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="documentFooter" class="form-label">Document Footer</label> | |
| <textarea class="form-control" id="documentFooter" rows="3"></textarea> | |
| </div> | |
| <div class="mb-3"> | |
| <label class="form-label">QR Code Placement</label> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="qrPlacement" id="qrLeft" value="left" checked> | |
| <label class="form-check-label" for="qrLeft">Left Align</label> | |
| </div> | |
| <div class="form-check"> | |
| <input class="form-check-input" type="radio" name="qrPlacement" id="qrRight" value="right"> | |
| <label class="form-check-label" for="qrRight">Right Align</label> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Additional Options --> | |
| <div class="mb-4"> | |
| <h5 class="mb-3">Additional Options</h5> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="part4Only"> | |
| <label class="form-check-label" for="part4Only">Part 4 Only</label> | |
| </div> | |
| <div class="form-check form-switch mb-2"> | |
| <input class="form-check-input" type="checkbox" id="highlighting"> | |
| <label class="form-check-label" for="highlighting">Highlighting</label> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="exportNotes" class="form-label">Export Notes</label> | |
| <textarea class="form-control" id="exportNotes" rows="3"></textarea> | |
| </div> | |
| </div> | |
| <div class="d-flex justify-content-between mt-4"> | |
| <button type="button" class="btn btn-outline-primary" id="previewBtn"> | |
| <i class="bi bi-eye-fill me-2"></i>Live Preview | |
| </button> | |
| <button type="submit" class="btn btn-primary"> | |
| <i class="bi bi-file-earmark-pdf-fill me-2"></i>Export to PDF | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Preview Drawer --> | |
| <div class="preview-drawer" id="previewDrawer"> | |
| <div class="d-flex justify-content-between align-items-center mb-3"> | |
| <h5>Document Preview</h5> | |
| <button type="button" class="btn-close" id="closePreview"></button> | |
| </div> | |
| <div class="preview-content border p-3" id="previewContent"> | |
| <div class="text-center mb-4"> | |
| <h4>Document Preview</h4> | |
| <p class="text-muted">Changes will appear here as you adjust settings</p> | |
| </div> | |
| <div class="placeholder-content" style="height: 800px; background-color: #f8f9fa;"></div> | |
| </div> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> | |
| <script> | |
| document.getElementById('previewBtn').addEventListener('click', function() { | |
| document.getElementById('previewDrawer').classList.add('open'); | |
| }); | |
| document.getElementById('closePreview').addEventListener('click', function() { | |
| document.getElementById('previewDrawer').classList.remove('open'); | |
| }); | |
| document.getElementById('cover4').addEventListener('change', function() { | |
| if (this.checked) { | |
| document.getElementById('customCoverUpload').classList.remove('d-none'); | |
| } else { | |
| document.getElementById('customCoverUpload').classList.add('d-none'); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |