Skip to content

Commit

Permalink
width
Browse files Browse the repository at this point in the history
  • Loading branch information
fdagner committed Feb 6, 2024
1 parent 48780a4 commit bd676dc
Show file tree
Hide file tree
Showing 8 changed files with 718 additions and 916 deletions.
2 changes: 1 addition & 1 deletion belege.html
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ <h3>Allgemeine Daten</h3>

</div>
</div>
<div id="emailContainer" style="border:1px solid #00000039;line-height:0.75;padding:0px;margin:0px;"
<div id="emailContainer" style="border:1px solid #00000039;line-height:0.75;padding:0px;margin:0px;min-width:700px;"
contenteditable="true">
</div><br>
<div class="exportButtons">
Expand Down
5 changes: 2 additions & 3 deletions buchen.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h2>Buchungssatz</h2>
<path
d="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z" />
</svg> Vorlage für Buchungssatz erstellen</button>
</form><br>
</form></div><br>
<div id="buchungssatzButtonContainer" style="margin:0 auto;">
<div style="min-width:750px" contenteditable="true">
<div id="buchungssatzContainer" style="min-height: 50px;margin: 0 auto"></div>
Expand Down Expand Up @@ -148,7 +148,6 @@ <h2>Buchungssatz</h2>
</svg></button>
</div><br>
</div>

</section>

<section id="vorkontierung" class="tabcontent">
Expand Down Expand Up @@ -241,7 +240,7 @@ <h2>Einkauf</h2>
</select><br>
<button onclick="zeigeZufaelligenSatz()">Aufgaben erstellen</button>
</div>
<div id="einkaufContainer" style="min-width: 750px" contenteditable="true"></div>
<div id="einkaufContainer" style="min-width: 600px" contenteditable="true"></div>
<div class="exportButtons">
<button class="icon" type="button" onclick="einkaufHerunterladenAlsPNG()"><svg
xmlns="http://www.w3.org/2000/svg" height="16" width="16"
Expand Down
3 changes: 1 addition & 2 deletions bwl.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ <h2>Optimale Bestellmenge (Tabelle)</h2>
<div><p>Gesamte Bestellmenge (Bedarf):<br><span id="bedarf">...</span></p></div>
</div><br>
<button onclick="berechneOptimaleBestellmengeUndHaeufigkeit()">Tabelle erstellen</button>
</div>
<h2>Tabelle</h2>
<div id="wertetabelle" contenteditable="true"></div>
<div id="wertetabelle" style="min-width: 700px" contenteditable="true"></div>
<br> <div class="exportButtons">
<button class="icon" type="button" onclick="bestellmengeHerunterladenAlsPNG()"><svg
xmlns="http://www.w3.org/2000/svg" height="16" width="16"
Expand Down
39 changes: 26 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="de">

<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -46,18 +46,31 @@ <h2>Exportformate</h2>
</section>
<aside>
<button id="openPopupStashMC">Gift for Stash</button>
<script>
// JavaScript, um das Popup-Fenster zu öffnen
document.getElementById('openPopupStashMC').addEventListener('click', function() {
// Öffne ein Popup-Fenster
const popupWindow = window.open('giftforstash.html', '_blank', 'width=600,height=800');

// Optional: Setze den Fokus auf das Popup-Fenster
if (popupWindow) {
popupWindow.focus();
}
});
</script>
<button id="openPopupKontle">Kontle</button>

<script>
// Funktion zum Öffnen des Popup-Fensters
function openPopup(url) {
// Öffne ein Popup-Fenster
const popupWindow = window.open(url, '_blank', 'width=600,height=800');

// Optional: Setze den Fokus auf das Popup-Fenster
if (popupWindow) {
popupWindow.focus();
}
}

// Event Listener für den Klick auf den Button "Gift for Stash"
document.getElementById('openPopupStashMC').addEventListener('click', function() {
openPopup('giftforstash.html');
});

// Event Listener für den Klick auf den Button "Kontle"
document.getElementById('openPopupKontle').addEventListener('click', function() {
openPopup('kontle.html');
});
</script>


</aside>
</main>
Expand Down
2 changes: 1 addition & 1 deletion js/buchungssatz.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function generiereBuchungssatz() {
const buchungssatzContainer = document.getElementById('buchungssatzContainer');
const buchungssatzButtonContainer = document.getElementById('buchungssatzButtonContainer');

let buchungssatzHTML = '<table style="white-space:nowrap;background-color:#fff;font-family:courier;min-width:750px;"><tbody>';
let buchungssatzHTML = '<table style="white-space:nowrap;background-color:#fff;font-family:courier;min-width:650px;"><tbody>';

for (let i = 0; i < anzahlZeilenBuchungssatz; i++) {
buchungssatzHTML += '<tr>';
Expand Down
2 changes: 1 addition & 1 deletion js/bwl.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function generiereWertetabelle() {
werteArray.sort((a, b) => b.haeufigkeit - a.haeufigkeit);
// Tabelle erstellen
let table = document.createElement('table');
table.style.width = '100%'; // Setzt die Breite der Tabelle
table.style.width = '680px'; // Setzt die Breite der Tabelle
table.style.borderCollapse = 'collapse'; // Setzt den border-collapse-Stil

let headerRow = table.insertRow(0);
Expand Down
Loading

0 comments on commit bd676dc

Please sign in to comment.