Benutzer-Werkzeuge

Webseiten-Werkzeuge


tools:notenrechner

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

tools:notenrechner [23/01/2026 12:14] – angelegt Eric Webertools:notenrechner [23/01/2026 12:27] (aktuell) Eric Weber
Zeile 14: Zeile 14:
         .notenrechner-container {         .notenrechner-container {
             font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;             font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
-            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); +            background: transparent;
-            min-height: 100vh;+
             padding: 20px;             padding: 20px;
         }         }
Zeile 210: Zeile 209:
             font-weight: bold;             font-weight: bold;
             color: #333;             color: #333;
 +        }
 +        
 +        .notenrechner-container .nr-action-buttons {
 +            display: flex;
 +            gap: 10px;
 +            margin-top: 15px;
 +            justify-content: center;
 +        }
 +        
 +        .notenrechner-container .nr-btn-secondary {
 +            padding: 10px 20px;
 +            background: #28a745;
 +            color: white;
 +            border: none;
 +            border-radius: 5px;
 +            font-size: 14px;
 +            cursor: pointer;
 +            transition: background 0.3s;
 +        }
 +        
 +        .notenrechner-container .nr-btn-secondary:hover {
 +            background: #218838;
 +        }
 +        
 +        .notenrechner-container .nr-btn-tertiary {
 +            padding: 10px 20px;
 +            background: #17a2b8;
 +            color: white;
 +            border: none;
 +            border-radius: 5px;
 +            font-size: 14px;
 +            cursor: pointer;
 +            transition: background 0.3s;
 +        }
 +        
 +        .notenrechner-container .nr-btn-tertiary:hover {
 +            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:not(:has(#resultsTable)) {
 +                display: none !important;
 +            }
 +            
 +            .notenrechner-container .nr-results {
 +                margin-top: 0 !important;
 +                page-break-inside: avoid;
 +                display: block !important;
 +            }
 +            
 +            .notenrechner-container .nr-section {
 +                margin-bottom: 0 !important;
 +                padding: 0 !important;
 +                background: white !important;
 +            }
 +            
 +            .notenrechner-container .nr-section h2 {
 +                font-size: 20px !important;
 +                margin-bottom: 15px !important;
 +                color: #333 !important;
 +                display: none !important;
 +            }
 +            
 +            .notenrechner-container .nr-results-table {
 +                page-break-inside: avoid;
 +                border: 2px solid #333 !important;
 +                margin-bottom: 30px !important;
 +            }
 +            
 +            .notenrechner-container .nr-results-table th {
 +                background: #f0f0f0 !important;
 +                color: #333 !important;
 +                -webkit-print-color-adjust: exact;
 +                print-color-adjust: exact;
 +            }
 +            
 +            .notenrechner-container .nr-print-footer {
 +                margin-top: 0 !important;
 +                padding-top: 15px;
 +                border-top: 1px solid #ccc;
 +                text-align: center;
 +                font-size: 12px;
 +                color: #666;
 +                page-break-inside: avoid;
 +            }
 +            
 +            @page {
 +                size: A4;
 +                margin: 20mm;
 +            }
 +        }
 +        
 +        .notenrechner-container .nr-print-footer {
 +            display: none;
 +        }
 +        
 +        @media print {
 +            .notenrechner-container .nr-print-footer {
 +                display: block !important;
 +            }
         }         }
     </style>     </style>
Zeile 242: Zeile 375:
                     <label for="massstabSek2"><strong>Bewertungsmaßstab:</strong></label>                     <label for="massstabSek2"><strong>Bewertungsmaßstab:</strong></label>
                     <select id="massstabSek2">                     <select id="massstabSek2">
-                        <option value="massstab1">Maßstab 1 (Offizieller Bewertungsmaßstab)</option>+                        <option value="massstab1">Maßstab 1 (Klausurmaßstab ThürSchulO)</option>
                         <option value="massstab2">Maßstab 2</option>                         <option value="massstab2">Maßstab 2</option>
                         <option value="custom">Eigener Maßstab</option>                         <option value="custom">Eigener Maßstab</option>
Zeile 273: Zeile 406:
                 <div class="nr-section">                 <div class="nr-section">
                     <h2>3. Punkteverteilung</h2>                     <h2>3. Punkteverteilung</h2>
 +                    <div id="pdfHeader"></div>
                     <table class="nr-results-table" id="resultsTable"></table>                     <table class="nr-results-table" id="resultsTable"></table>
 +                    <div class="nr-print-footer">
 +                        <p>Erstellt mit dem Notenrechner von <strong>musikimunterricht.de</strong></p>
 +                    </div>
 +                    <div class="nr-action-buttons">
 +                        <button class="nr-btn-secondary" onclick="drucken()">🖨️ Drucken</button>
 +                        <button class="nr-btn-tertiary" onclick="alsPDFSpeichern()">📄 Als PDF speichern</button>
 +                    </div>
                 </div>                 </div>
             </div>             </div>
Zeile 501: Zeile 642:
                  
         function displayResults(data) {         function displayResults(data) {
 +            const stufe = document.querySelector('input[name="stufe"]:checked').value;
 +            const maxPoints = parseInt(document.getElementById('maxPoints').value);
 +            
 +            // PDF-Header wird in der Druckansicht nicht angezeigt
 +            const pdfHeader = document.getElementById('pdfHeader');
 +            pdfHeader.innerHTML = '';
 +            
             const table = document.getElementById('resultsTable');             const table = document.getElementById('resultsTable');
             table.innerHTML = `             table.innerHTML = `
Zeile 521: Zeile 669:
                          
             document.getElementById('results').style.display = 'block';             document.getElementById('results').style.display = 'block';
 +        }
 +        
 +        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('print');
 +                mediaQueryList.addListener(function(mql) {
 +                    if (!mql.matches) {
 +                        // Nach dem Drucken
 +                    }
 +                });
 +            }
 +            window.print();
         }         }
                  
tools/notenrechner.1769166885.txt.gz · Zuletzt geändert: von Eric Weber