diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo b/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo deleted file mode 100644 index 4689411..0000000 Binary files a/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo and /dev/null differ diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json b/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json deleted file mode 100644 index 6b61141..0000000 --- a/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "ExpandedNodes": [ - "" - ], - "PreviewInSolutionExplorer": false -} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite b/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite deleted file mode 100644 index 0e6028f..0000000 Binary files a/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite and /dev/null differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png b/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png new file mode 100644 index 0000000..c01cba8 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png new file mode 100644 index 0000000..a001d67 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png new file mode 100644 index 0000000..fb7299a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png new file mode 100644 index 0000000..975209c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png new file mode 100644 index 0000000..c0c73e6 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png new file mode 100644 index 0000000..af89a6c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png new file mode 100644 index 0000000..a70def1 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png new file mode 100644 index 0000000..3a4e110 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png new file mode 100644 index 0000000..b1269d1 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png new file mode 100644 index 0000000..2ca3be3 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png new file mode 100644 index 0000000..aa3bd10 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg new file mode 100644 index 0000000..6cb0e67 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png new file mode 100644 index 0000000..6119d71 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png new file mode 100644 index 0000000..3951eb3 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png new file mode 100644 index 0000000..a9b4dd4 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png new file mode 100644 index 0000000..b81eb87 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png new file mode 100644 index 0000000..294f948 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png new file mode 100644 index 0000000..a922a36 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png new file mode 100644 index 0000000..211516d Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png new file mode 100644 index 0000000..fc31309 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png new file mode 100644 index 0000000..1aee3df Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png new file mode 100644 index 0000000..ed73fc9 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png new file mode 100644 index 0000000..c2ae66c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png new file mode 100644 index 0000000..2a32a4f Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png new file mode 100644 index 0000000..fec817a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png new file mode 100644 index 0000000..69b824f Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png new file mode 100644 index 0000000..7b49da4 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png new file mode 100644 index 0000000..a3e0b57 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png new file mode 100644 index 0000000..5a11b60 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png new file mode 100644 index 0000000..e21f59c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png new file mode 100644 index 0000000..b7a1834 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png new file mode 100644 index 0000000..179a5ce Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg new file mode 100644 index 0000000..3a9b101 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png new file mode 100644 index 0000000..b58fa10 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png new file mode 100644 index 0000000..cfb2d8d Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png new file mode 100644 index 0000000..a241575 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png new file mode 100644 index 0000000..323e522 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png new file mode 100644 index 0000000..221509a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png new file mode 100644 index 0000000..c04d0b7 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png new file mode 100644 index 0000000..c719072 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png new file mode 100644 index 0000000..ab84021 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-big.css b/Aufgaben/Aufgabe_05_2020-05-27/product-big.css new file mode 100644 index 0000000..75c1953 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-big.css @@ -0,0 +1,89 @@ +#übersicht { + display: flex; + flex-direction: column; + align-items: center; +} + +.container { + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + width: 300px; + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 150px; + font-size: 20px; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css b/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css new file mode 100644 index 0000000..a5579e6 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css @@ -0,0 +1,94 @@ +#übersicht { + display: flex; + flex-direction: column; + align-items: center; +} + +.container { + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; + margin: 10px 20px; + width: 40%; +} + +.container .product img { + width: 90%; + height: width; + max-height: 400px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 30px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 25px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 150px; +} + +#bunt,#grün,#special { + font-size: 50px; + color: #006a4e; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-small.css b/Aufgaben/Aufgabe_05_2020-05-27/product-small.css new file mode 100644 index 0000000..3d0f2e0 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-small.css @@ -0,0 +1,87 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; + margin: 10px 0px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 100px; +} + +#bunt,#grün,#special { + text-align: center; + font-size: 30px; + color: #006a4e; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product.css b/Aufgaben/Aufgabe_05_2020-05-27/product.css new file mode 100644 index 0000000..e84906b --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product.css @@ -0,0 +1,76 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: none; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ +border-radius: 30px; +border-color: #006a4e; +background-color: #2e856e; +width: 40px; +height: 40px; +text-align: center; +padding: 0px 10px; +color: #b8d5cd; +font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + text-align: justify; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/script.js b/Aufgaben/Aufgabe_05_2020-05-27/script.js new file mode 100644 index 0000000..97a0453 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/script.js @@ -0,0 +1,206 @@ +"use strict"; +// Datensammlung für Produkte +let categories = [ + { + title: "Special Offers!", + id: "special", + products: [ + { + title: "Color: Rainbow", + price: 3279.99, + size: "4m²", + imgName: "grass-rainbow-square.png", + description: "If you can't choose one color, go and catch them all!" + }, { + title: "Color: White", + price: 3279.99, + size: "4m²", + imgName: "grass-white.png", + description: "The appearance of many sparkling stars on your garden floor." + }, { + title: "Color: Black", + price: 3279.99, + size: "4m²", + imgName: "grass-black.png", + description: "Dark as the night. Be careful not to form a black hole!" + }, { + title: "Pattern: Murica", + price: 3279.99, + size: "4m²", + imgName: "grass-green-murica.png", + description: "Texas, Trump, Guns & Hamburgers" + }, { + title: "Pattern: Schachbrett", + price: 3279.99, + size: "4m²", + imgName: "grass-green-chess-square.png", + description: "Show your intellect on your own lawn and embarrass your opponents!" + } + ] + }, { + title: "Bunte Gräser", + id: "bunt", + products: [ + { + title: "Color: Green", + price: 2339.99, + size: "4m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Color: Desert", + price: 2339.99, + size: "4m²", + imgName: "grass-yellow.png", + description: "Summer, sun and oh my god, I'm hot! Are they pyramids in my garden ?!" + }, { + title: "Color: Beach", + price: 2339.99, + size: "4m²", + imgName: "grass-orange.png", + description: "Summer, sun and hot feelings!" + }, { + title: "Pattern: Hell", + price: 2339.99, + size: "4m²", + imgName: "grass-red.png", + description: "Look into the abyss that could await you after your death and invite guests to it!" + }, { + title: "Pattern: Unicorn", + price: 2339.99, + size: "4m²", + imgName: "grass-pink.png", + description: "PINK FLUFFY UNICORN, DANCING ON RAINBOWS (which you can also buy in here) !!!" + }, { + title: "Pattern: Grape", + price: 2339.99, + size: "4m²", + imgName: "grass-purple.png", + description: "It looks purple. Do you have to say more?" + }, { + title: "Pattern: Atlantic", + price: 2339.99, + size: "4m²", + imgName: "grass-blue.png", + description: "Blue like the ocean. A deep look and mysterious nature." + } + ] + }, { + title: "Green-Tones", + id: "grün", + products: [ + { + title: "Green: 3B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-3.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: HB", + price: 2339.99, + size: "10m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Green: H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 3H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-3.png", + description: "Green in every way. Nothing more to know about it." + } + ] + } +]; +printProducts(); +//create Structure; +function printProducts() { + for (let nummer = 0; nummer < categories.length; nummer++) { + let heading = document.createElement("h1"); + heading.setAttribute("id", categories[nummer].id); + heading.innerHTML = `${categories[nummer].title}`; + document.querySelector("#übersicht").appendChild(heading); + let container = document.createElement("div"); + container.classList.add("container"); + document.querySelector("#übersicht").appendChild(container); + for (let index = 0; index < categories[nummer].products.length; index++) { + let product = document.createElement("div"); + product.classList.add("product"); + product.innerHTML = ` +

${categories[nummer].products[index].title}

+
+ ${categories[nummer].products[index].price} ¥ + + +
+ Product +

Size: ${categories[nummer].products[index].size}

+
+

${categories[nummer].products[index].description}

+
+ `; + container.appendChild(product); + } + } +} +// Folgender auskommentierter Code dient mir als Archiv für Gedankenansätze oder Verläufe. +// Wenn dies nicht gerne gesehen ist, gebt mir kurz Bescheid und ich werde es entfernen +/* +function zeichnen(tagArray: Tag[]): void { + for (let i: number = 0; i < tagArray.length ; i++){ + let title: HTMLElement = document.createElement(tagArray[i].tag); + title.innerHTML = "I bims title"; + title.classList.add("title"); + if (tagArray[i].image) { + title.setAttribute("src", "value"); + title.setAttribute("alt", "value"); + } + document.body.appendChild(title); + } +} +*/ +/* +console.log("Hello Console"); +let theName: String = "Justin" + "Dretvic" + 20; +console.log(theName); +*/ +/* +# Template für ein Produkt in HTML +
tag class +

Color: Rainbow

tag class content +
tag class + 3279,99 ¥ tag class content + tag content + tag content +
+ Product tag attribute1 attribute2 +

Size: 4m²

tag class content +
tag class +

If you can't choose one color, go and catch them all!

tag content +
+
+*/ +//# sourceMappingURL=script.js.map \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/script.js.map b/Aufgaben/Aufgabe_05_2020-05-27/script.js.map new file mode 100644 index 0000000..9f218a5 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/script.js.map @@ -0,0 +1 @@ +{"version":3,"file":"script.js","sourceRoot":"","sources":["script.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAgB7B,IAAI,UAAU,GAAe;IACzB;QACI,KAAK,EAAE,iBAAiB;QACxB,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE;YACN;gBACI,KAAK,EAAE,gBAAgB;gBACvB,KAAK,EAAE,OAAO;gBAC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,CAAC;YAC5D,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACjC,OAAO,CAAC,SAAS,GAAG;qCACK,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK;;2CAElC,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK;;;;kCAIjD,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO;yCACnC,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI;;0BAEtD,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,WAAW;;aAE3D,CAAC;YACF,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAClC;KAEJ;AAEL,CAAC;AAGD,2FAA2F;AAC3F,uFAAuF;AAEvF;;;;;;;;;;;;;EAaE;AAEF;;;;EAIE;AAEF;;;;;;;;;;;;;;;EAeE"} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/script.ts b/Aufgaben/Aufgabe_05_2020-05-27/script.ts new file mode 100644 index 0000000..1d13dfa --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/script.ts @@ -0,0 +1,232 @@ +// Datensammlung für Produkte + +interface Product { + title: string; + price: number; + size: string; + imgName: string; + description: string; +} + +interface Category { + title: string; + id: string; + products: Product[]; +} + +let categories: Category[] = [ + { + title: "Special Offers!", + id: "special", + products: [ + { + title: "Color: Rainbow", + price: 3279.99, + size: "4m²", + imgName: "grass-rainbow-square.png", + description: "If you can't choose one color, go and catch them all!" + }, { + title: "Color: White", + price: 3279.99, + size: "4m²", + imgName: "grass-white.png", + description: "The appearance of many sparkling stars on your garden floor." + }, { + title: "Color: Black", + price: 3279.99, + size: "4m²", + imgName: "grass-black.png", + description: "Dark as the night. Be careful not to form a black hole!" + }, { + title: "Pattern: Murica", + price: 3279.99, + size: "4m²", + imgName: "grass-green-murica.png", + description: "Texas, Trump, Guns & Hamburgers" + }, { + title: "Pattern: Schachbrett", + price: 3279.99, + size: "4m²", + imgName: "grass-green-chess-square.png", + description: "Show your intellect on your own lawn and embarrass your opponents!" + } + ] + }, { + title: "Bunte Gräser", + id: "bunt", + products: [ + { + title: "Color: Green", + price: 2339.99, + size: "4m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Color: Desert", + price: 2339.99, + size: "4m²", + imgName: "grass-yellow.png", + description: "Summer, sun and oh my god, I'm hot! Are they pyramids in my garden ?!" + }, { + title: "Color: Beach", + price: 2339.99, + size: "4m²", + imgName: "grass-orange.png", + description: "Summer, sun and hot feelings!" + }, { + title: "Pattern: Hell", + price: 2339.99, + size: "4m²", + imgName: "grass-red.png", + description: "Look into the abyss that could await you after your death and invite guests to it!" + }, { + title: "Pattern: Unicorn", + price: 2339.99, + size: "4m²", + imgName: "grass-pink.png", + description: "PINK FLUFFY UNICORN, DANCING ON RAINBOWS (which you can also buy in here) !!!" + }, { + title: "Pattern: Grape", + price: 2339.99, + size: "4m²", + imgName: "grass-purple.png", + description: "It looks purple. Do you have to say more?" + }, { + title: "Pattern: Atlantic", + price: 2339.99, + size: "4m²", + imgName: "grass-blue.png", + description: "Blue like the ocean. A deep look and mysterious nature." + } + ] + }, { + title: "Green-Tones", + id: "grün", + products: [ + { + title: "Green: 3B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-3.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: HB", + price: 2339.99, + size: "10m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Green: H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 3H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-3.png", + description: "Green in every way. Nothing more to know about it." + } + ] + } +]; + +printProducts(); + +//create Structure; + +function printProducts(): void { + for (let nummer: number = 0; nummer < categories.length; nummer++) { + + let heading: HTMLHeadingElement = document.createElement("h1"); + heading.setAttribute("id", categories[nummer].id); + heading.innerHTML = `${categories[nummer].title}`; + (document.querySelector("#übersicht")).appendChild(heading); + + let container: HTMLDivElement = document.createElement("div"); + container.classList.add("container"); + (document.querySelector("#übersicht")).appendChild(container); + + for (let index: number = 0; index < categories[nummer].products.length; index++) { + let product: HTMLDivElement = document.createElement("div"); + product.classList.add("product"); + product.innerHTML = ` +

${categories[nummer].products[index].title}

+
+ ${categories[nummer].products[index].price} ¥ + + +
+ Product +

Size: ${categories[nummer].products[index].size}

+
+

${categories[nummer].products[index].description}

+
+ `; + container.appendChild(product); + } + + } + +} + + +// Folgender auskommentierter Code dient mir als Archiv für Gedankenansätze oder Verläufe. +// Wenn dies nicht gerne gesehen ist, gebt mir kurz Bescheid und ich werde es entfernen + +/* +function zeichnen(tagArray: Tag[]): void { + for (let i: number = 0; i < tagArray.length ; i++){ + let title: HTMLElement = document.createElement(tagArray[i].tag); + title.innerHTML = "I bims title"; + title.classList.add("title"); + if (tagArray[i].image) { + title.setAttribute("src", "value"); + title.setAttribute("alt", "value"); + } + document.body.appendChild(title); + } +} +*/ + +/* +console.log("Hello Console"); +let theName: String = "Justin" + "Dretvic" + 20; +console.log(theName); +*/ + +/* +# Template für ein Produkt in HTML +
tag class +

Color: Rainbow

tag class content +
tag class + 3279,99 ¥ tag class content + tag content + tag content +
+ Product tag attribute1 attribute2 +

Size: 4m²

tag class content +
tag class +

If you can't choose one color, go and catch them all!

tag content +
+
+*/ \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/shop.css b/Aufgaben/Aufgabe_05_2020-05-27/shop.css new file mode 100644 index 0000000..a5e8bfe --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/shop.css @@ -0,0 +1,124 @@ +body { + margin: 0; + font-family: Chelsea Market; +} + +header { + padding: 10px 0px; + position: relative; + top: 0; + width: 100%; + background-color: #006a4e; + color: #b8d5cd; +} + +header ul { + list-style: none; + padding: 0px; +} + +header li { + display: block; + margin: 10px auto 0px; +} + +header li a { + text-decoration: none; + color: #b8d5cd; +} + +header .dropdown { + text-align: center; + font-size: 20px; + position: relative; + display: block; + background-color: #2e856e; + border-radius: 40px; + margin: 10px 5px 0px 5px; + padding: 10px 0px; + width: 80%; +} + +header .dropdown-content { + display: none; +} + +header .dropdown:hover .dropdown-content { + display: block; + margin-bottom: 0px; +} + +header #shopping_cart { + text-align: center; + position: relative; + display: block; + background-color: #2e856e; + border-radius: 40px; + margin: 10px 5px 0px 5px; + padding: 10px 0px; + width: 60px; + height: 30px; +} + +header #shopping_cart a { + text-decoration: none; + color: #b8d5cd; + font-size:24px +} + +header #shopping_cart a:hover { + color: white; +} + +header .title_bar img { + width: 40px; + height: 40px; + margin: 5px 15px; +} + +header .title_bar span { + font-size: 27px; + line-height: 50px; + margin: auto 0px; +} + +header .title_bar { + display: flex; + flex-direction: row; + justify-content: center; + background-color: #2e856e; + border-radius: 40px; + padding: 5px; + margin: 5px +} + +header #bottom { + display: flex; + flex-direction: row; + justify-content: center; +} + +header #shopping_cart { + margin: 10px auto; + text-align: center; + color: #b8d5cd; + display: block; + background-color: #2e856e; + border-radius: 40px; + margin: 10px 5px 0px 5px; + padding: 10px 0px; +} + +footer { + text-align: center; + padding: 10px 5px; + position: relative; + bottom: 0; + width: calc(100%-10px); + background-color: #272727; + color: white; +} + +footer p { + margin: 0px 0px 10px; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/shop.html b/Aufgaben/Aufgabe_05_2020-05-27/shop.html new file mode 100644 index 0000000..2a884e9 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/shop.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + green grass + + + +
+
+ grass + GREEEN GRASS + grass +
+
+ +
+ +
+
+
+ +
+ +
+

Disclaimer

+

This website is not used monetarily

+

Not even if things seem to be sold here!

+
+ + + \ No newline at end of file diff --git a/Aufgaben/blank.md b/Aufgaben/blank.md deleted file mode 100644 index e69de29..0000000 diff --git a/Steckbrief/steckbrief.htm b/Steckbrief/steckbrief.htm index 6277685..f8c7a90 100644 --- a/Steckbrief/steckbrief.htm +++ b/Steckbrief/steckbrief.htm @@ -13,13 +13,13 @@ body { - Github Reposiroty → Issues
- Aufgabe_04_2020-05-20
- Aufgabe_03_2020-05-13
- Aufgabe_02_2020-05-06 & - tags_used
- Aufgabe_01_2020-04-29
- Aufgabe_00_2020-04-22
- + Github Reposiroty → Issues
+ Aufgabe_05_2020-05-27
+ Aufgabe_04_2020-05-20
+ Aufgabe_03_2020-05-13
+ Aufgabe_02_2020-05-06 & + tags_used
+ Aufgabe_01_2020-04-29
+ Aufgabe_00_2020-04-22
\ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..abc5f39 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,61 @@ +{ + "compilerOptions": { + /* Basic Options */ + "target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ + //"outFile": "./build/EngineTest.js", /* Concatenate and emit output to single file. */ + // "outDir": "../build", /* Redirect output structure to the directory. */ + // "sourceRoot": "./src/", + // "rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + "removeComments": false, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + + /* Strict Type-Checking Options */ + //"strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + "strictFunctionTypes": true, /* Enable strict checking of function types. */ + "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + "noUnusedLocals": true, /* Report errors on unused locals. */ + "noUnusedParameters": true, /* Report errors on unused parameters. */ + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + "noFallthroughCasesInSwitch": false, /* Report errors for fallthrough cases in switch statement. */ + + /* Module Resolution Options */ + "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + //"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + } +} \ No newline at end of file diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..89a872b --- /dev/null +++ b/tslint.json @@ -0,0 +1,60 @@ +{ + "rules": { + "align": [true, "parameters", "arguments", "statements"], + "ban": false, + "class-name": true, + "comment-format": [false, "check-space", "check-lowercase"], + "curly": false, + "eofline": false, + "forin": false, + "indent": [true, "spaces", 2], + "interface-name": false, + "jsdoc-format": false, + "label-position": true, + "max-line-length": [false, 140], + "member-ordering": [true, {"order": "fields-first"}], + "no-any": true, + "no-arg": true, + "no-bitwise": false, + "no-console": [false, "debug", "info", "time", "timeEnd", "trace"], + "no-construct": true, + "no-parameter-properties": true, + "no-debugger": false, + "no-duplicate-variable": true, + "no-empty": true, + "no-eval": true, + "no-string-literal": false, + "no-switch-case-fall-through": false, + "trailing-comma": [true, { + "singleline": "never", + "multiline": "never" + } + ], + "no-trailing-whitespace": false, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-requires": false, + "no-conditional-assignment": true, + "no-shadowed-variable": false, + "one-line": [true, "check-open-brace", "check-catch", "check-whitespace"], + "quotemark": [true, "double"], + "radix": false, + "semicolon": true, + "switch-default": false, + "triple-equals": [false, "allow-null-check"], + "typedef": [true, "call-signature", "parameter", "property-declaration", "variable-declaration", "member-variable-declaration"], + "typedef-whitespace": [true, { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "use-strict": [false, "check-module", "check-function"], + "variable-name": [true, "check-format", "allow-leading-underscore"], + "whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"], + "file-header": [false, ""] + } +}