tools:notenrechner
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| tools:notenrechner [23/01/2026 12:14] – angelegt Eric Weber | tools:notenrechner [23/01/2026 12:27] (aktuell) – Eric Weber | ||
|---|---|---|---|
| Zeile 14: | Zeile 14: | ||
| .notenrechner-container { | .notenrechner-container { | ||
| font-family: | font-family: | ||
| - | background: | + | background: |
| - | min-height: 100vh; | + | |
| padding: 20px; | padding: 20px; | ||
| } | } | ||
| Zeile 210: | Zeile 209: | ||
| font-weight: | font-weight: | ||
| color: #333; | color: #333; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-action-buttons { | ||
| + | display: flex; | ||
| + | gap: 10px; | ||
| + | margin-top: 15px; | ||
| + | justify-content: | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-btn-secondary { | ||
| + | padding: 10px 20px; | ||
| + | background: #28a745; | ||
| + | color: white; | ||
| + | border: none; | ||
| + | border-radius: | ||
| + | font-size: 14px; | ||
| + | cursor: pointer; | ||
| + | transition: background 0.3s; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-btn-secondary: | ||
| + | background: #218838; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-btn-tertiary { | ||
| + | padding: 10px 20px; | ||
| + | background: #17a2b8; | ||
| + | color: white; | ||
| + | border: none; | ||
| + | border-radius: | ||
| + | font-size: 14px; | ||
| + | cursor: pointer; | ||
| + | transition: background 0.3s; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-btn-tertiary: | ||
| + | background: #138496; | ||
| + | } | ||
| + | | ||
| + | @media print { | ||
| + | body * { | ||
| + | visibility: hidden; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container, | ||
| + | .notenrechner-container * { | ||
| + | visibility: visible; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container { | ||
| + | position: absolute; | ||
| + | left: 0; | ||
| + | top: 0; | ||
| + | width: 100%; | ||
| + | background: white !important; | ||
| + | padding: 0 !important; | ||
| + | min-height: 0 !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-inner { | ||
| + | box-shadow: none !important; | ||
| + | padding: 20mm !important; | ||
| + | max-width: 100% !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container h1, | ||
| + | .notenrechner-container .nr-btn, | ||
| + | .notenrechner-container .nr-btn-secondary, | ||
| + | .notenrechner-container .nr-btn-tertiary, | ||
| + | .notenrechner-container .nr-action-buttons, | ||
| + | .notenrechner-container #pdfHeader { | ||
| + | display: none !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-section: | ||
| + | display: none !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-results { | ||
| + | margin-top: 0 !important; | ||
| + | page-break-inside: | ||
| + | display: block !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-section { | ||
| + | margin-bottom: | ||
| + | padding: 0 !important; | ||
| + | background: white !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-section h2 { | ||
| + | font-size: 20px !important; | ||
| + | margin-bottom: | ||
| + | color: #333 !important; | ||
| + | display: none !important; | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-results-table { | ||
| + | page-break-inside: | ||
| + | border: 2px solid #333 !important; | ||
| + | margin-bottom: | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-results-table th { | ||
| + | background: #f0f0f0 !important; | ||
| + | color: #333 !important; | ||
| + | -webkit-print-color-adjust: | ||
| + | print-color-adjust: | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-print-footer { | ||
| + | margin-top: 0 !important; | ||
| + | padding-top: | ||
| + | border-top: 1px solid #ccc; | ||
| + | text-align: center; | ||
| + | font-size: 12px; | ||
| + | color: #666; | ||
| + | page-break-inside: | ||
| + | } | ||
| + | | ||
| + | @page { | ||
| + | size: A4; | ||
| + | margin: 20mm; | ||
| + | } | ||
| + | } | ||
| + | | ||
| + | .notenrechner-container .nr-print-footer { | ||
| + | display: none; | ||
| + | } | ||
| + | | ||
| + | @media print { | ||
| + | .notenrechner-container .nr-print-footer { | ||
| + | display: block !important; | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| Zeile 242: | Zeile 375: | ||
| <label for=" | <label for=" | ||
| <select id=" | <select id=" | ||
| - | <option value=" | + | <option value=" |
| <option value=" | <option value=" | ||
| <option value=" | <option value=" | ||
| Zeile 273: | Zeile 406: | ||
| <div class=" | <div class=" | ||
| < | < | ||
| + | <div id=" | ||
| <table class=" | <table class=" | ||
| + | <div class=" | ||
| + | < | ||
| + | </ | ||
| + | <div class=" | ||
| + | <button class=" | ||
| + | <button class=" | ||
| + | </ | ||
| </ | </ | ||
| </ | </ | ||
| Zeile 501: | Zeile 642: | ||
| | | ||
| function displayResults(data) { | function displayResults(data) { | ||
| + | const stufe = document.querySelector(' | ||
| + | const maxPoints = parseInt(document.getElementById(' | ||
| + | | ||
| + | // PDF-Header wird in der Druckansicht nicht angezeigt | ||
| + | const pdfHeader = document.getElementById(' | ||
| + | pdfHeader.innerHTML = ''; | ||
| + | | ||
| const table = document.getElementById(' | const table = document.getElementById(' | ||
| table.innerHTML = ` | table.innerHTML = ` | ||
| Zeile 521: | Zeile 669: | ||
| | | ||
| document.getElementById(' | document.getElementById(' | ||
| + | } | ||
| + | | ||
| + | function drucken() { | ||
| + | window.print(); | ||
| + | } | ||
| + | | ||
| + | function alsPDFSpeichern() { | ||
| + | // Für die meisten modernen Browser öffnet sich der Druckdialog | ||
| + | // mit der Option "Als PDF speichern" | ||
| + | if (window.matchMedia) { | ||
| + | const mediaQueryList = window.matchMedia(' | ||
| + | mediaQueryList.addListener(function(mql) { | ||
| + | if (!mql.matches) { | ||
| + | // Nach dem Drucken | ||
| + | } | ||
| + | }); | ||
| + | } | ||
| + | window.print(); | ||
| } | } | ||
| | | ||
tools/notenrechner.1769166885.txt.gz · Zuletzt geändert: von Eric Weber
