Compare commits

..
27 Commits
Author SHA1 Message Date
Christian be184546df 06.11.2026 2026-11-06 12:35:59 +01:00
Christian 1db24f80a2 C# 2 2026-11-05 16:22:48 +01:00
Christian c797095a4f Merge branch 'main' of https://git.delta87.synology.me/Christian/2aAPC 2026-11-05 13:02:51 +01:00
Christian 6246a9fd8b C# tests 2026-11-05 12:58:23 +01:00
Christian 75a317c80c 23.10.2026 - ITL - TEST + OfflineDATA 2026-10-23 11:10:22 +02:00
Christian e9efc0e0e5 09.10.2026 - little fixes for styling and js 2026-10-09 11:56:30 +02:00
Christian 184546f6a2 09.10.2026 - JS 03 Final 2026-10-09 11:12:40 +02:00
Christian bc7004d067 08.10.2026 - changed link color for nightrule on footer too 2026-10-08 22:20:57 +02:00
Christian 8cd08b2fd1 08.10.2026 - changed link color for nightrule 2026-10-08 22:13:50 +02:00
Christian b567bb1209 08.10.2026 - changed link color for nightrule 2026-10-08 22:04:28 +02:00
Christian 02ae92a0cc 08.10.2026 - changed to variables to english 2026-10-08 21:14:27 +02:00
Christian 06b66d19d1 08.10.2026 - task 6 for school 2026-10-08 20:53:32 +02:00
Christian 553cf38eea 08.10.2026 - changes Calc with isNan and title in Portfolio 2026-10-08 20:16:55 +02:00
Christian 29a0008b70 08.10.2026 - changes Calc 2026-10-08 20:08:12 +02:00
Christian ac7241b30c 08.10.2026 - Fixes adding calc, quiz from lesson, added search in portfolio 2026-10-08 19:54:50 +02:00
Christian 43070072d9 8.10.2026 - TimeFunction with Color and hide Quiz 2026-10-08 16:26:02 +02:00
Christian 9ca6ac7336 07.10.2026 - QuizStart with Search 2 2026-10-07 17:08:40 +02:00
Christian 10b7139ba6 07.10.2026 - QuizStart with Search 2026-10-07 17:04:33 +02:00
Christian 6973be1069 Adding Hamburger menu, and dynamic navigation loading 2026-10-06 16:26:04 +02:00
Christian c7119ab603 30.09.2026 - INF - RandomGenen and ArrayShuffle - Cheap 2026-09-30 14:50:32 +02:00
Christian 293e0ac92e Another bug fixinground 2026-09-25 14:54:21 +02:00
Christian 2c204a2f3b 25.09.2026 - fixed bug in binary calculator! 2026-09-25 14:21:08 +02:00
Christian 5cdadd4e49 25.09.2026 - 4 - BUG in binCalc? 2026-09-25 12:53:30 +02:00
Christian 881dfec7fa 25.09.2026 - 3 2026-09-25 11:38:35 +02:00
Christian 8d0a9257c8 25.09.2026 - 2 2026-09-25 11:26:59 +02:00
Christian 70d691c292 25.09.2026 2026-09-25 11:25:59 +02:00
Christian 72df5857cb 24.09.2026 2026-09-24 16:39:31 +02:00
84 changed files with 8257 additions and 147 deletions
+3
View File
@@ -1,2 +1,5 @@
/Homepage/Portfolio.zip
/Homepage/Screenshots/*
/C#_HelloWorld/ConsoleApp1/.vs/*
/C#_HelloWorld/ConsoleApp1/ConsoleApp1/bin/*
/C#_HelloWorld/ConsoleApp1/ConsoleApp1/obj/*
+10
View File
@@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/2aAPC.iml" filepath="$PROJECT_DIR$/.idea/2aAPC.iml" />
</modules>
</component>
</project>
Generated
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
@@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{5B68813F-23C2-8DF2-1B1F-9033A2893F62}|ConsoleApp1\\ConsoleApp1.csproj|c:\\projects\\c#_helloworld\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{5B68813F-23C2-8DF2-1B1F-9033A2893F62}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\Program.cs",
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
"ToolTip": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\Program.cs*",
"RelativeToolTip": "ConsoleApp1\\Program.cs*",
"ViewState": "AgIAABsAAAAAAAAAAAAqwDQAAABJAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-11-05T09:52:53.15Z",
"EditorCaption": ""
}
]
}
]
}
]
}
@@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{5B68813F-23C2-8DF2-1B1F-9033A2893F62}|ConsoleApp1\\ConsoleApp1.csproj|c:\\projects\\c#_helloworld\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{5B68813F-23C2-8DF2-1B1F-9033A2893F62}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\Program.cs",
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
"ToolTip": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\Program.cs*",
"RelativeToolTip": "ConsoleApp1\\Program.cs*",
"ViewState": "AgIAABsAAAAAAAAAAAAqwC4AAAAbAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-11-05T09:52:53.15Z",
"EditorCaption": ""
}
]
}
]
}
]
}
@@ -0,0 +1,3 @@
<Solution>
<Project Path="ConsoleApp1/ConsoleApp1.csproj" />
</Solution>
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApp1
{
internal class Angestellter : Person
{
private int employeeID = 0;
public Angestellter(string _firstName, string _lastName, DateTime _birthDay, int _employeeID) : base (_firstName, _lastName, _birthDay)
{
this.employeeID = _employeeID;
}
public void getMitarbeiterInfo()
{
int userage = base.getAge();
string consoleLine = string.Format("Der Mitarbeiter mit der Mitarbeiternummer {0} lautet {1} {2} und ist {3} Jahre alt.", this.employeeID, this.firstName, this.lastName, userage);
Console.WriteLine(consoleLine);
}
}
}
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MySqlConnector" Version="2.6.2" />
</ItemGroup>
</Project>
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace ConsoleApp1
{
internal class Kunde : Person
{
private int kdnr = 0;
public Kunde(string _firstName, string _lastName, DateTime _birthDay, int _kdnr) : base(_firstName, _lastName, _birthDay)
{
this.kdnr = _kdnr;
}
public void getKundenInfo()
{
int userage = base.getAge();
string consoleLine = string.Format("Der Kunde mit der Kundennummer {0} lautet {1} {2} und ist {3} Jahre alt.", this.kdnr, this.firstName, this.lastName, userage);
Console.WriteLine(consoleLine);
}
}
}
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApp1
{
internal class Person
{
protected string firstName;
protected string lastName;
protected DateTime birthDay;
public Person(string _firstName, string _lastName, DateTime _birthDay)
{
this.firstName = _firstName;
this.lastName = _lastName;
this.birthDay = _birthDay;
}
protected int getAge()
{
DateTime curentTIme = DateTime.Now;
int age = curentTIme.Year - birthDay.Year;
return age;
}
public void printInfo()
{
int userage = getAge();
string consoleLine = string.Format("Die Person {0} {1} ist {2} Jahre alt.", this.firstName, this.lastName, userage);
Console.WriteLine(consoleLine);
}
}
}
@@ -0,0 +1,94 @@
using MySqlConnector;
using System.Runtime.CompilerServices;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string firstName = String.Empty;
string lastName = String.Empty;
string birthDay = String.Empty;
Console.WriteLine("Bitte geben Sie Ihre Informationen an!");
Console.Write("Vorname: ");
firstName = Console.ReadLine();
Console.Write("Nachname: ");
lastName = Console.ReadLine();
Console.Write("Geburtsdatum (Im Format DD.MM.YYYY): ");
birthDay = Console.ReadLine();
string[] birthDaySplit = birthDay.Split(".");
DateTime defineBirthday = DateTime.ParseExact(String.Format("{0}-{1}-{2}", birthDaySplit[2], birthDaySplit[1], birthDaySplit[0]), "yyyy-MM-dd", null);
var p1 = new Kunde(firstName, lastName, defineBirthday, 107);
p1.printInfo();
p1.getKundenInfo();
var p2 = new Angestellter(firstName, lastName, defineBirthday, 789);
p2.printInfo();
p2.getMitarbeiterInfo();
//TestMysqlConnection();
// open a connection asynchronously
//await connection.OpenAsync();
// create a DB command and set the SQL statement with parameters
// execute the command and read the results
// await using var reader = await command.ExecuteReaderAsync();
// while (reader.Read())
// {
// var id = reader.GetInt32("order_id");
// var date = reader.GetDateTime("order_date");
// // ...
// }
Console.WriteLine("Hello, World!");
}
static void TestMysqlConnection()
{
int port = 3306;
string cs = String.Empty;
if(port == 3307)
cs = "Server=localhost;Port=3307;UserID=root;Password=none;Database=classicmodels";
else
cs = "Server=localhost;Port=3306;UserID=root;Password='';Database=classicmodels";
using (var conn = new MySqlConnection(cs))
{
conn.Open();
var sqlStatement = "SELECT version()";
using (MySqlCommand cmd = new MySqlCommand(sqlStatement, conn))
{
var version = cmd.ExecuteScalar();
Console.WriteLine("Current mySQLVersion: " + version);
}
}
}
}
}
@@ -0,0 +1,78 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v10.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v10.0": {
"ConsoleApp1/1.0.0": {
"dependencies": {
"MySqlConnector": "2.6.2"
},
"runtime": {
"ConsoleApp1.dll": {}
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"runtime": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"assemblyVersion": "8.0.0.0",
"fileVersion": "8.0.1024.46610"
}
}
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"assemblyVersion": "8.0.0.0",
"fileVersion": "8.0.1024.46610"
}
}
},
"MySqlConnector/2.6.2": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
},
"runtime": {
"lib/net10.0/MySqlConnector.dll": {
"assemblyVersion": "2.0.0.0",
"fileVersion": "2.6.2.0"
}
}
}
}
},
"libraries": {
"ConsoleApp1/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3iE7UF7MQkCv1cxzCahz+Y/guQbTqieyxyaWKhrRO91itI9cOKO76OHeQDahqG4MmW5umr3CcCvGmK92lWNlbg==",
"path": "microsoft.extensions.dependencyinjection.abstractions/8.0.2",
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512"
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-nroMDjS7hNBPtkZqVBbSiQaQjWRDxITI8Y7XnDs97rqG3EbzVTNLZQf7bIeUJcaHOV8bca47s1Uxq94+2oGdxA==",
"path": "microsoft.extensions.logging.abstractions/8.0.2",
"hashPath": "microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512"
},
"MySqlConnector/2.6.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-dlTc/tsBa42szdvpj4nrHvQVUb0gsMwR9HT6J0Zz2OSqfP0CdYlGw+qQPqCpbnO97idfvclSjKYtM6y5QaBQaQ==",
"path": "mysqlconnector/2.6.2",
"hashPath": "mysqlconnector.2.6.2.nupkg.sha512"
}
}
}
@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net10.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "10.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
@@ -0,0 +1,355 @@
{
"format": 1,
"restore": {
"C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": {}
},
"projects": {
"C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
"projectName": "ConsoleApp1",
"projectPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
"packagesPath": "C:\\Users\\Christian.braumann\\.nuget\\packages\\",
"outputPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Christian.braumann\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net10.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "all"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"dependencies": {
"MySqlConnector": {
"target": "Package",
"version": "[2.6.2, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.403/PortableRuntimeIdentifierGraph.json",
"packagesToPrune": {
"Microsoft.CSharp": "(,4.7.32767]",
"Microsoft.VisualBasic": "(,10.4.32767]",
"Microsoft.Win32.Primitives": "(,4.3.32767]",
"Microsoft.Win32.Registry": "(,5.0.32767]",
"runtime.any.System.Collections": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.any.System.Globalization": "(,4.3.32767]",
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.any.System.IO": "(,4.3.32767]",
"runtime.any.System.Reflection": "(,4.3.32767]",
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.any.System.Runtime": "(,4.3.32767]",
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
"runtime.aot.System.Collections": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.aot.System.Globalization": "(,4.3.32767]",
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.aot.System.IO": "(,4.3.32767]",
"runtime.aot.System.Reflection": "(,4.3.32767]",
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.aot.System.Runtime": "(,4.3.32767]",
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.unix.System.Console": "(,4.3.32767]",
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.win.System.Console": "(,4.3.32767]",
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
"System.AppContext": "(,4.3.32767]",
"System.Buffers": "(,5.0.32767]",
"System.Collections": "(,4.3.32767]",
"System.Collections.Concurrent": "(,4.3.32767]",
"System.Collections.Immutable": "(,10.0.32767]",
"System.Collections.NonGeneric": "(,4.3.32767]",
"System.Collections.Specialized": "(,4.3.32767]",
"System.ComponentModel": "(,4.3.32767]",
"System.ComponentModel.Annotations": "(,4.3.32767]",
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
"System.ComponentModel.Primitives": "(,4.3.32767]",
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
"System.Console": "(,4.3.32767]",
"System.Data.Common": "(,4.3.32767]",
"System.Data.DataSetExtensions": "(,4.4.32767]",
"System.Diagnostics.Contracts": "(,4.3.32767]",
"System.Diagnostics.Debug": "(,4.3.32767]",
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
"System.Diagnostics.Process": "(,4.3.32767]",
"System.Diagnostics.StackTrace": "(,4.3.32767]",
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
"System.Diagnostics.Tools": "(,4.3.32767]",
"System.Diagnostics.TraceSource": "(,4.3.32767]",
"System.Diagnostics.Tracing": "(,4.3.32767]",
"System.Drawing.Primitives": "(,4.3.32767]",
"System.Dynamic.Runtime": "(,4.3.32767]",
"System.Formats.Asn1": "(,10.0.32767]",
"System.Formats.Tar": "(,10.0.32767]",
"System.Globalization": "(,4.3.32767]",
"System.Globalization.Calendars": "(,4.3.32767]",
"System.Globalization.Extensions": "(,4.3.32767]",
"System.IO": "(,4.3.32767]",
"System.IO.Compression": "(,4.3.32767]",
"System.IO.Compression.ZipFile": "(,4.3.32767]",
"System.IO.FileSystem": "(,4.3.32767]",
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
"System.IO.IsolatedStorage": "(,4.3.32767]",
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
"System.IO.Pipelines": "(,10.0.32767]",
"System.IO.Pipes": "(,4.3.32767]",
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
"System.Linq": "(,4.3.32767]",
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
"System.Linq.Expressions": "(,4.3.32767]",
"System.Linq.Parallel": "(,4.3.32767]",
"System.Linq.Queryable": "(,4.3.32767]",
"System.Memory": "(,5.0.32767]",
"System.Net.Http": "(,4.3.32767]",
"System.Net.Http.Json": "(,10.0.32767]",
"System.Net.NameResolution": "(,4.3.32767]",
"System.Net.NetworkInformation": "(,4.3.32767]",
"System.Net.Ping": "(,4.3.32767]",
"System.Net.Primitives": "(,4.3.32767]",
"System.Net.Requests": "(,4.3.32767]",
"System.Net.Security": "(,4.3.32767]",
"System.Net.ServerSentEvents": "(,10.0.32767]",
"System.Net.Sockets": "(,4.3.32767]",
"System.Net.WebHeaderCollection": "(,4.3.32767]",
"System.Net.WebSockets": "(,4.3.32767]",
"System.Net.WebSockets.Client": "(,4.3.32767]",
"System.Numerics.Vectors": "(,5.0.32767]",
"System.ObjectModel": "(,4.3.32767]",
"System.Private.DataContractSerialization": "(,4.3.32767]",
"System.Private.Uri": "(,4.3.32767]",
"System.Reflection": "(,4.3.32767]",
"System.Reflection.DispatchProxy": "(,6.0.32767]",
"System.Reflection.Emit": "(,4.7.32767]",
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
"System.Reflection.Extensions": "(,4.3.32767]",
"System.Reflection.Metadata": "(,10.0.32767]",
"System.Reflection.Primitives": "(,4.3.32767]",
"System.Reflection.TypeExtensions": "(,4.3.32767]",
"System.Resources.Reader": "(,4.3.32767]",
"System.Resources.ResourceManager": "(,4.3.32767]",
"System.Resources.Writer": "(,4.3.32767]",
"System.Runtime": "(,4.3.32767]",
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
"System.Runtime.Extensions": "(,4.3.32767]",
"System.Runtime.Handles": "(,4.3.32767]",
"System.Runtime.InteropServices": "(,4.3.32767]",
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
"System.Runtime.Loader": "(,4.3.32767]",
"System.Runtime.Numerics": "(,4.3.32767]",
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
"System.Runtime.Serialization.Json": "(,4.3.32767]",
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
"System.Security.AccessControl": "(,6.0.32767]",
"System.Security.Claims": "(,4.3.32767]",
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
"System.Security.Cryptography.Cng": "(,5.0.32767]",
"System.Security.Cryptography.Csp": "(,4.3.32767]",
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
"System.Security.Principal": "(,4.3.32767]",
"System.Security.Principal.Windows": "(,5.0.32767]",
"System.Security.SecureString": "(,4.3.32767]",
"System.Text.Encoding": "(,4.3.32767]",
"System.Text.Encoding.CodePages": "(,10.0.32767]",
"System.Text.Encoding.Extensions": "(,4.3.32767]",
"System.Text.Encodings.Web": "(,10.0.32767]",
"System.Text.Json": "(,10.0.32767]",
"System.Text.RegularExpressions": "(,4.3.32767]",
"System.Threading": "(,4.3.32767]",
"System.Threading.AccessControl": "(,10.0.32767]",
"System.Threading.Channels": "(,10.0.32767]",
"System.Threading.Overlapped": "(,4.3.32767]",
"System.Threading.Tasks": "(,4.3.32767]",
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
"System.Threading.Thread": "(,4.3.32767]",
"System.Threading.ThreadPool": "(,4.3.32767]",
"System.Threading.Timer": "(,4.3.32767]",
"System.ValueTuple": "(,4.5.32767]",
"System.Xml.ReaderWriter": "(,4.3.32767]",
"System.Xml.XDocument": "(,4.3.32767]",
"System.Xml.XmlDocument": "(,4.3.32767]",
"System.Xml.XmlSerializer": "(,4.3.32767]",
"System.Xml.XPath": "(,4.3.32767]",
"System.Xml.XPath.XDocument": "(,5.0.32767]"
}
}
}
}
}
}
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Christian.braumann\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Christian.braumann\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
</ImportGroup>
</Project>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp1")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c797095a4fb5bd131fb39f15cb4382aa0e718878")]
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp1")]
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1 @@
42652e42edf0f9e544561e061a53cc34f3d4242a0942ea812108a8676ae26bfa
@@ -0,0 +1,18 @@
is_global = true
build_property.TargetFramework = net10.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v10.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property.EntryPointFilePath =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = ConsoleApp1
build_property.ProjectDir = C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 10.0
build_property.EnableCodeStyleSeverity =
@@ -0,0 +1,8 @@
// <auto-generated/>
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;
@@ -0,0 +1 @@
554ec087e0b696544395a43cf04ec79cac8ef80df534c93f37f40f695efb5c28
@@ -0,0 +1,38 @@
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.exe
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.deps.json
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.runtimeconfig.json
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.pdb
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.AssemblyInfoInputs.cache
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.AssemblyInfo.cs
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.csproj.CoreCompileInputs.cache
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\refint\ConsoleApp1.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.pdb
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.genruntimeconfig.cache
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ref\ConsoleApp1.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleA.CB28C8CC.Up2Date
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.csproj.AssemblyReference.cache
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\Microsoft.Extensions.Logging.Abstractions.dll
C:\Projects\2aAPC\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\MySqlConnector.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.exe
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.deps.json
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.runtimeconfig.json
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\ConsoleApp1.pdb
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\Microsoft.Extensions.Logging.Abstractions.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\bin\Debug\net10.0\MySqlConnector.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.csproj.AssemblyReference.cache
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.AssemblyInfoInputs.cache
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.AssemblyInfo.cs
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.csproj.CoreCompileInputs.cache
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleA.CB28C8CC.Up2Date
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\refint\ConsoleApp1.dll
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.pdb
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ConsoleApp1.genruntimeconfig.cache
C:\Projects\C#_HelloWorld\ConsoleApp1\ConsoleApp1\obj\Debug\net10.0\ref\ConsoleApp1.dll
@@ -0,0 +1 @@
e3d3a6e348cc4f99065ee6062f536bafa3788b4d385b87e11344fc4a7e3f5e59
@@ -0,0 +1,553 @@
{
"version": 4,
"targets": {
"net10.0": {
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"type": "package",
"compile": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
}
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2"
},
"compile": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets": {}
}
},
"MySqlConnector/2.6.2": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
},
"compile": {
"lib/net10.0/MySqlConnector.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net10.0/MySqlConnector.dll": {
"related": ".xml"
}
}
}
}
},
"libraries": {
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"sha512": "3iE7UF7MQkCv1cxzCahz+Y/guQbTqieyxyaWKhrRO91itI9cOKO76OHeQDahqG4MmW5umr3CcCvGmK92lWNlbg==",
"type": "package",
"path": "microsoft.extensions.dependencyinjection.abstractions/8.0.2",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/Microsoft.Extensions.DependencyInjection.Abstractions.targets",
"buildTransitive/net462/_._",
"buildTransitive/net6.0/_._",
"buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyInjection.Abstractions.targets",
"lib/net462/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/net462/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll",
"lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.xml",
"microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512",
"microsoft.extensions.dependencyinjection.abstractions.nuspec",
"useSharedDesignerContext.txt"
]
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"sha512": "nroMDjS7hNBPtkZqVBbSiQaQjWRDxITI8Y7XnDs97rqG3EbzVTNLZQf7bIeUJcaHOV8bca47s1Uxq94+2oGdxA==",
"type": "package",
"path": "microsoft.extensions.logging.abstractions/8.0.2",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"analyzers/dotnet/roslyn3.11/cs/Microsoft.Extensions.Logging.Generators.dll",
"analyzers/dotnet/roslyn3.11/cs/cs/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/de/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/es/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/fr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/it/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/ja/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/ko/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/pl/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/pt-BR/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/ru/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/tr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/zh-Hans/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn3.11/cs/zh-Hant/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/Microsoft.Extensions.Logging.Generators.dll",
"analyzers/dotnet/roslyn4.0/cs/cs/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/de/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/es/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/fr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/it/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/ja/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/ko/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/pl/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/pt-BR/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/ru/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/tr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/zh-Hans/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.0/cs/zh-Hant/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/Microsoft.Extensions.Logging.Generators.dll",
"analyzers/dotnet/roslyn4.4/cs/cs/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/de/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/es/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/fr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/it/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/ja/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/ko/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/pl/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/pt-BR/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/ru/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/tr/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/zh-Hans/Microsoft.Extensions.Logging.Generators.resources.dll",
"analyzers/dotnet/roslyn4.4/cs/zh-Hant/Microsoft.Extensions.Logging.Generators.resources.dll",
"buildTransitive/net461/Microsoft.Extensions.Logging.Abstractions.targets",
"buildTransitive/net462/Microsoft.Extensions.Logging.Abstractions.targets",
"buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets",
"buildTransitive/netcoreapp2.0/Microsoft.Extensions.Logging.Abstractions.targets",
"buildTransitive/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.targets",
"lib/net462/Microsoft.Extensions.Logging.Abstractions.dll",
"lib/net462/Microsoft.Extensions.Logging.Abstractions.xml",
"lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll",
"lib/net6.0/Microsoft.Extensions.Logging.Abstractions.xml",
"lib/net7.0/Microsoft.Extensions.Logging.Abstractions.dll",
"lib/net7.0/Microsoft.Extensions.Logging.Abstractions.xml",
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll",
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.xml",
"lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll",
"lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml",
"microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512",
"microsoft.extensions.logging.abstractions.nuspec",
"useSharedDesignerContext.txt"
]
},
"MySqlConnector/2.6.2": {
"sha512": "dlTc/tsBa42szdvpj4nrHvQVUb0gsMwR9HT6J0Zz2OSqfP0CdYlGw+qQPqCpbnO97idfvclSjKYtM6y5QaBQaQ==",
"type": "package",
"path": "mysqlconnector/2.6.2",
"files": [
".nupkg.metadata",
".signature.p7s",
"README.md",
"lib/net10.0/MySqlConnector.dll",
"lib/net10.0/MySqlConnector.xml",
"lib/net462/MySqlConnector.dll",
"lib/net462/MySqlConnector.xml",
"lib/net471/MySqlConnector.dll",
"lib/net471/MySqlConnector.xml",
"lib/net48/MySqlConnector.dll",
"lib/net48/MySqlConnector.xml",
"lib/net6.0/MySqlConnector.dll",
"lib/net6.0/MySqlConnector.xml",
"lib/net8.0/MySqlConnector.dll",
"lib/net8.0/MySqlConnector.xml",
"lib/net9.0/MySqlConnector.dll",
"lib/net9.0/MySqlConnector.xml",
"lib/netstandard2.0/MySqlConnector.dll",
"lib/netstandard2.0/MySqlConnector.xml",
"lib/netstandard2.1/MySqlConnector.dll",
"lib/netstandard2.1/MySqlConnector.xml",
"logo.png",
"mysqlconnector.2.6.2.nupkg.sha512",
"mysqlconnector.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net10.0": [
"MySqlConnector >= 2.6.2"
]
},
"packageFolders": {
"C:\\Users\\Christian.braumann\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
"projectName": "ConsoleApp1",
"projectPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
"packagesPath": "C:\\Users\\Christian.braumann\\.nuget\\packages\\",
"outputPath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Christian.braumann\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net10.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "all"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net10.0": {
"framework": "net10.0",
"targetAlias": "net10.0",
"dependencies": {
"MySqlConnector": {
"target": "Package",
"version": "[2.6.2, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.403/PortableRuntimeIdentifierGraph.json",
"packagesToPrune": {
"Microsoft.CSharp": "(,4.7.32767]",
"Microsoft.VisualBasic": "(,10.4.32767]",
"Microsoft.Win32.Primitives": "(,4.3.32767]",
"Microsoft.Win32.Registry": "(,5.0.32767]",
"runtime.any.System.Collections": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.any.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.any.System.Globalization": "(,4.3.32767]",
"runtime.any.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.any.System.IO": "(,4.3.32767]",
"runtime.any.System.Reflection": "(,4.3.32767]",
"runtime.any.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.any.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.any.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.any.System.Runtime": "(,4.3.32767]",
"runtime.any.System.Runtime.Handles": "(,4.3.32767]",
"runtime.any.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.any.System.Text.Encoding": "(,4.3.32767]",
"runtime.any.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.any.System.Threading.Tasks": "(,4.3.32767]",
"runtime.any.System.Threading.Timer": "(,4.3.32767]",
"runtime.aot.System.Collections": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tools": "(,4.3.32767]",
"runtime.aot.System.Diagnostics.Tracing": "(,4.3.32767]",
"runtime.aot.System.Globalization": "(,4.3.32767]",
"runtime.aot.System.Globalization.Calendars": "(,4.3.32767]",
"runtime.aot.System.IO": "(,4.3.32767]",
"runtime.aot.System.Reflection": "(,4.3.32767]",
"runtime.aot.System.Reflection.Extensions": "(,4.3.32767]",
"runtime.aot.System.Reflection.Primitives": "(,4.3.32767]",
"runtime.aot.System.Resources.ResourceManager": "(,4.3.32767]",
"runtime.aot.System.Runtime": "(,4.3.32767]",
"runtime.aot.System.Runtime.Handles": "(,4.3.32767]",
"runtime.aot.System.Runtime.InteropServices": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding": "(,4.3.32767]",
"runtime.aot.System.Text.Encoding.Extensions": "(,4.3.32767]",
"runtime.aot.System.Threading.Tasks": "(,4.3.32767]",
"runtime.aot.System.Threading.Timer": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.debian.9-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.27-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.fedora.28-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.opensuse.42.3-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "(,4.3.32767]",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography": "(,4.3.32767]",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Http": "(,4.3.32767]",
"runtime.ubuntu.18.04-x64.runtime.native.System.Net.Security": "(,4.3.32767]",
"runtime.unix.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.unix.System.Console": "(,4.3.32767]",
"runtime.unix.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.unix.System.IO.FileSystem": "(,4.3.32767]",
"runtime.unix.System.Net.Primitives": "(,4.3.32767]",
"runtime.unix.System.Net.Sockets": "(,4.3.32767]",
"runtime.unix.System.Private.Uri": "(,4.3.32767]",
"runtime.unix.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win.Microsoft.Win32.Primitives": "(,4.3.32767]",
"runtime.win.System.Console": "(,4.3.32767]",
"runtime.win.System.Diagnostics.Debug": "(,4.3.32767]",
"runtime.win.System.IO.FileSystem": "(,4.3.32767]",
"runtime.win.System.Net.Primitives": "(,4.3.32767]",
"runtime.win.System.Net.Sockets": "(,4.3.32767]",
"runtime.win.System.Runtime.Extensions": "(,4.3.32767]",
"runtime.win10-arm-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-arm64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win10-x64-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win10-x86-aot.runtime.native.System.IO.Compression": "(,4.0.32767]",
"runtime.win7-x64.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7-x86.runtime.native.System.IO.Compression": "(,4.3.32767]",
"runtime.win7.System.Private.Uri": "(,4.3.32767]",
"runtime.win8-arm.runtime.native.System.IO.Compression": "(,4.3.32767]",
"System.AppContext": "(,4.3.32767]",
"System.Buffers": "(,5.0.32767]",
"System.Collections": "(,4.3.32767]",
"System.Collections.Concurrent": "(,4.3.32767]",
"System.Collections.Immutable": "(,10.0.32767]",
"System.Collections.NonGeneric": "(,4.3.32767]",
"System.Collections.Specialized": "(,4.3.32767]",
"System.ComponentModel": "(,4.3.32767]",
"System.ComponentModel.Annotations": "(,4.3.32767]",
"System.ComponentModel.EventBasedAsync": "(,4.3.32767]",
"System.ComponentModel.Primitives": "(,4.3.32767]",
"System.ComponentModel.TypeConverter": "(,4.3.32767]",
"System.Console": "(,4.3.32767]",
"System.Data.Common": "(,4.3.32767]",
"System.Data.DataSetExtensions": "(,4.4.32767]",
"System.Diagnostics.Contracts": "(,4.3.32767]",
"System.Diagnostics.Debug": "(,4.3.32767]",
"System.Diagnostics.DiagnosticSource": "(,10.0.32767]",
"System.Diagnostics.FileVersionInfo": "(,4.3.32767]",
"System.Diagnostics.Process": "(,4.3.32767]",
"System.Diagnostics.StackTrace": "(,4.3.32767]",
"System.Diagnostics.TextWriterTraceListener": "(,4.3.32767]",
"System.Diagnostics.Tools": "(,4.3.32767]",
"System.Diagnostics.TraceSource": "(,4.3.32767]",
"System.Diagnostics.Tracing": "(,4.3.32767]",
"System.Drawing.Primitives": "(,4.3.32767]",
"System.Dynamic.Runtime": "(,4.3.32767]",
"System.Formats.Asn1": "(,10.0.32767]",
"System.Formats.Tar": "(,10.0.32767]",
"System.Globalization": "(,4.3.32767]",
"System.Globalization.Calendars": "(,4.3.32767]",
"System.Globalization.Extensions": "(,4.3.32767]",
"System.IO": "(,4.3.32767]",
"System.IO.Compression": "(,4.3.32767]",
"System.IO.Compression.ZipFile": "(,4.3.32767]",
"System.IO.FileSystem": "(,4.3.32767]",
"System.IO.FileSystem.AccessControl": "(,4.4.32767]",
"System.IO.FileSystem.DriveInfo": "(,4.3.32767]",
"System.IO.FileSystem.Primitives": "(,4.3.32767]",
"System.IO.FileSystem.Watcher": "(,4.3.32767]",
"System.IO.IsolatedStorage": "(,4.3.32767]",
"System.IO.MemoryMappedFiles": "(,4.3.32767]",
"System.IO.Pipelines": "(,10.0.32767]",
"System.IO.Pipes": "(,4.3.32767]",
"System.IO.Pipes.AccessControl": "(,5.0.32767]",
"System.IO.UnmanagedMemoryStream": "(,4.3.32767]",
"System.Linq": "(,4.3.32767]",
"System.Linq.AsyncEnumerable": "(,10.0.32767]",
"System.Linq.Expressions": "(,4.3.32767]",
"System.Linq.Parallel": "(,4.3.32767]",
"System.Linq.Queryable": "(,4.3.32767]",
"System.Memory": "(,5.0.32767]",
"System.Net.Http": "(,4.3.32767]",
"System.Net.Http.Json": "(,10.0.32767]",
"System.Net.NameResolution": "(,4.3.32767]",
"System.Net.NetworkInformation": "(,4.3.32767]",
"System.Net.Ping": "(,4.3.32767]",
"System.Net.Primitives": "(,4.3.32767]",
"System.Net.Requests": "(,4.3.32767]",
"System.Net.Security": "(,4.3.32767]",
"System.Net.ServerSentEvents": "(,10.0.32767]",
"System.Net.Sockets": "(,4.3.32767]",
"System.Net.WebHeaderCollection": "(,4.3.32767]",
"System.Net.WebSockets": "(,4.3.32767]",
"System.Net.WebSockets.Client": "(,4.3.32767]",
"System.Numerics.Vectors": "(,5.0.32767]",
"System.ObjectModel": "(,4.3.32767]",
"System.Private.DataContractSerialization": "(,4.3.32767]",
"System.Private.Uri": "(,4.3.32767]",
"System.Reflection": "(,4.3.32767]",
"System.Reflection.DispatchProxy": "(,6.0.32767]",
"System.Reflection.Emit": "(,4.7.32767]",
"System.Reflection.Emit.ILGeneration": "(,4.7.32767]",
"System.Reflection.Emit.Lightweight": "(,4.7.32767]",
"System.Reflection.Extensions": "(,4.3.32767]",
"System.Reflection.Metadata": "(,10.0.32767]",
"System.Reflection.Primitives": "(,4.3.32767]",
"System.Reflection.TypeExtensions": "(,4.3.32767]",
"System.Resources.Reader": "(,4.3.32767]",
"System.Resources.ResourceManager": "(,4.3.32767]",
"System.Resources.Writer": "(,4.3.32767]",
"System.Runtime": "(,4.3.32767]",
"System.Runtime.CompilerServices.Unsafe": "(,7.0.32767]",
"System.Runtime.CompilerServices.VisualC": "(,4.3.32767]",
"System.Runtime.Extensions": "(,4.3.32767]",
"System.Runtime.Handles": "(,4.3.32767]",
"System.Runtime.InteropServices": "(,4.3.32767]",
"System.Runtime.InteropServices.RuntimeInformation": "(,4.3.32767]",
"System.Runtime.Loader": "(,4.3.32767]",
"System.Runtime.Numerics": "(,4.3.32767]",
"System.Runtime.Serialization.Formatters": "(,4.3.32767]",
"System.Runtime.Serialization.Json": "(,4.3.32767]",
"System.Runtime.Serialization.Primitives": "(,4.3.32767]",
"System.Runtime.Serialization.Xml": "(,4.3.32767]",
"System.Security.AccessControl": "(,6.0.32767]",
"System.Security.Claims": "(,4.3.32767]",
"System.Security.Cryptography.Algorithms": "(,4.3.32767]",
"System.Security.Cryptography.Cng": "(,5.0.32767]",
"System.Security.Cryptography.Csp": "(,4.3.32767]",
"System.Security.Cryptography.Encoding": "(,4.3.32767]",
"System.Security.Cryptography.OpenSsl": "(,5.0.32767]",
"System.Security.Cryptography.Primitives": "(,4.3.32767]",
"System.Security.Cryptography.X509Certificates": "(,4.3.32767]",
"System.Security.Principal": "(,4.3.32767]",
"System.Security.Principal.Windows": "(,5.0.32767]",
"System.Security.SecureString": "(,4.3.32767]",
"System.Text.Encoding": "(,4.3.32767]",
"System.Text.Encoding.CodePages": "(,10.0.32767]",
"System.Text.Encoding.Extensions": "(,4.3.32767]",
"System.Text.Encodings.Web": "(,10.0.32767]",
"System.Text.Json": "(,10.0.32767]",
"System.Text.RegularExpressions": "(,4.3.32767]",
"System.Threading": "(,4.3.32767]",
"System.Threading.AccessControl": "(,10.0.32767]",
"System.Threading.Channels": "(,10.0.32767]",
"System.Threading.Overlapped": "(,4.3.32767]",
"System.Threading.Tasks": "(,4.3.32767]",
"System.Threading.Tasks.Dataflow": "(,10.0.32767]",
"System.Threading.Tasks.Extensions": "(,5.0.32767]",
"System.Threading.Tasks.Parallel": "(,4.3.32767]",
"System.Threading.Thread": "(,4.3.32767]",
"System.Threading.ThreadPool": "(,4.3.32767]",
"System.Threading.Timer": "(,4.3.32767]",
"System.ValueTuple": "(,4.5.32767]",
"System.Xml.ReaderWriter": "(,4.3.32767]",
"System.Xml.XDocument": "(,4.3.32767]",
"System.Xml.XmlDocument": "(,4.3.32767]",
"System.Xml.XmlSerializer": "(,4.3.32767]",
"System.Xml.XPath": "(,4.3.32767]",
"System.Xml.XPath.XDocument": "(,5.0.32767]"
}
}
}
}
}
@@ -0,0 +1,12 @@
{
"version": 2,
"dgSpecHash": "+1rcs2FFW4c=",
"success": true,
"projectFilePath": "C:\\Projects\\C#_HelloWorld\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
"expectedPackageFiles": [
"C:\\Users\\Christian.braumann\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.2\\microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512",
"C:\\Users\\Christian.braumann\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.2\\microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512",
"C:\\Users\\Christian.braumann\\.nuget\\packages\\mysqlconnector\\2.6.2\\mysqlconnector.2.6.2.nupkg.sha512"
],
"logs": []
}
+91 -13
View File
@@ -13,8 +13,12 @@
--bs-link-color-rgb: 55, 192, 251;
--bs-link-hover-color: #50c8fc;
--arcana-accent: #37c0fb;
--arcana-accent-hover: #50c8fc;
--arcana-accent-hover: var(--arcana-accent-hover-day);
--arcana-accent-active: #1eb8fb;
--arcana-accent-night: #b606ce;
--arcana-accent-hover-day: #c919ff;
--arcana-accent-hover-night: #50c8fc;
}
body {
@@ -33,6 +37,7 @@ a {
}
a:hover {
color: var(--arcana-accent-hover);
border-bottom-color: transparent;
}
@@ -62,12 +67,18 @@ a:hover {
.sidenav .nav-link {
display: inline;
padding: 0;
color: var(--arcana-accent);
border-bottom: dotted 1px;
}
.sidenav .nav-link.dayColor:hover {
color: var(--arcana-accent-hover-day);
}
.sidenav .nav-link.nightColor:hover {
color: var(--arcana-accent-hover-night);
}
.sidenav .nav-link:hover {
color: var(--arcana-accent-hover);
border-bottom-color: transparent;
}
@@ -83,16 +94,6 @@ footer {
padding: 3em 0 4em 0;
}
footer a {
color: inherit;
border-bottom-color: rgba(71, 71, 71, 0.25);
}
footer a:hover {
color: var(--arcana-accent);
border-bottom-color: transparent;
}
.btn-primary {
--bs-btn-bg: var(--arcana-accent);
--bs-btn-border-color: var(--arcana-accent);
@@ -171,3 +172,80 @@ footer a:hover {
height: 8em;
}
}
.nightColor{
color: var(--arcana-accent-night);
}
.dayColor{
color: var(--arcana-accent);
}
.sidenav .nav-link:hover {
color: var(--arcana-accent-hover);
border-bottom-color: transparent;
}
.searchInput{
width: 100px;
}
.table thead th {
color: #999999;
font-size: 0.9em;
letter-spacing: 0.15em;
text-transform: uppercase;
font-weight: 600;
}
#portfolioList.night a {
color: var(--arcana-accent-night);
}
#portfolioList.night a:hover {
color: var(--arcana-accent-hover-night);
}
.night a {
color: var(--arcana-accent-night);
}
.night a:hover {
color: var(--arcana-accent-hover-night);
}
.btn-outline-primary {
--bs-btn-color: var(--arcana-accent);
--bs-btn-border-color: var(--arcana-accent);
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: var(--arcana-accent-hover);
--bs-btn-hover-border-color: var(--arcana-accent-hover);
--bs-btn-active-color: #fff;
--bs-btn-active-bg: var(--arcana-accent-active);
--bs-btn-active-border-color: var(--arcana-accent-active);
border-radius: 5px;
}
#quiz-container,
#result {
--arcana-accent-hover: var(--arcana-accent-hover-day);
}
#quiz-container.night,
#result.night,
#contentArea.night {
--arcana-accent: var(--arcana-accent-night);
--arcana-accent-hover: var(--arcana-accent-hover-night);
--arcana-accent-active: var(--arcana-accent-night);
}
.table td:nth-child(1) {
white-space: nowrap;
}
.table td:nth-child(4) {
max-width: 260px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
+44
View File
@@ -0,0 +1,44 @@
document.getElementById("calcButton").onclick = () => {
calculate();
};
function calculate(){
let numberOne = parseFloat(document.getElementById("numberOne").value);
let numberTwo = parseFloat(document.getElementById("numberTwo").value);
let operator = document.getElementById("calcOperator").value;
let result = 0;
if(isNaN(numberOne) === true || isNaN(numberTwo) === true)
{
document.getElementById("calcResult").textContent = "Bitte zwei Zahlen eingeben.";
return;
}
if(operator === "+")
{
result = numberOne + numberTwo;
}
else if(operator === "-")
{
result = numberOne - numberTwo;
}
else if(operator === "*")
{
result = numberOne * numberTwo;
}
else if(operator === "/")
{
if(numberTwo === 0)
{
document.getElementById("calcResult").textContent = "Division durch null ist nicht moeglich.";
return;
}
result = numberOne / numberTwo;
}
result = Math.round(result * 100) / 100;
document.getElementById("calcResult").textContent = numberOne + " " + operator + " " + numberTwo + " = " + result;
}
+76
View File
@@ -0,0 +1,76 @@
let base = "";
if (location.pathname.includes("/sites/legal/")) {
base = "../../";
} else if (location.pathname.includes("/sites/")) {
base = "../";
}
let navText = `
<nav class="navbar navbar-expand-md">
<div class="container-fluid flex-md-column align-items-md-start px-0">
<h4 class="navbar-brand">Navigation <input type="text" id="navSearch" class="form-control searchInput" placeholder="Suche"></h4>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul id="navListItems" class="flex-column navbar-nav">`;
navText += loadNavLinksFromTextFile(base, isEvening());
navText += `</ul>
</div>
</div>
</nav>
`;
function loadNavLinksFromTextFile(base, isEvening)
{
let tempInput = base+`index.html;`+base+`assets/images/home.svg;Home;Startseite\n`;
tempInput += base+`sites/werdegang.html;`+base+`assets/images/plus.svg;Plus;Werdegang\n`;
tempInput += base+`sites/portfolio.html;`+base+`assets/images/plus.svg;Plus;Portfolio\n`;
tempInput += base+`sites/rechner.html;`+base+`assets/images/plus.svg;Plus;Einfacher Rechner`;
let navigationList = "";
let linkColor = "";
if(isEvening === true)
{
linkColor = "nightColor";
}
else{
linkColor = "dayColor";
tempInput += `\n`+base+`sites/quiz.html;`+base+`assets/images/plus.svg;Plus;Quiz`;
}
let tempArray = tempInput.split("\n");
tempArray.forEach(tempInput => {
let baseNavLine = tempInput.split(";")
navigationList += `<li class="nav-item"><a class="nav-link `+linkColor+`" href="`+baseNavLine[0]+`"><img src="`+baseNavLine[1]+`" role="img" alt="`+baseNavLine[2]+`" class="svgimages"/>`+baseNavLine[3]+`</a></li>`;
});
return navigationList;
}
function isEvening(){
let dateTime = new Date();
let hours = dateTime.getHours();
if(hours >= 18 || hours <= 7)
{
return true;
}else
{
return false;
}
}
document.getElementById("navigation").innerHTML = navText;
if(isEvening() === true)
{
document.getElementById("contentArea").classList.add("night");
document.getElementById("footerArea").classList.add("night");
}
+153
View File
@@ -0,0 +1,153 @@
let repositories = [
{
name: "dwbhub",
language: "C#",
created: "2026-05-21",
url: "https://github.com/ChristianDev87/dwbhub",
description: "Self-hosted Discord web bridge and admin platform - pre-alpha",
},
{
name: "WisperFree",
language: "Python",
created: "2026-04-12",
url: "https://github.com/ChristianDev87/WisperFree",
description: "Local, offline push-to-talk speech-to-text powered by faster-whisper. No cloud. No subscription.",
},
{
name: "DailyNewsFeed",
language: "PHP",
created: "2026-04-08",
url: "https://github.com/ChristianDev87/DailyNewsFeed",
description: "Discord Bot System - RSS-Digest, PHP Frontend, Python Watchdog, Docker",
},
{
name: "DailyNewsFeed-Watchdog-Archive",
language: "Python",
created: "2026-04-07",
url: "https://github.com/ChristianDev87/DailyNewsFeed-Watchdog-Archive",
description: "Python Watchdog für DailyNewsFeed - liest bot_commands aus DB und steuert systemd-Services",
},
{
name: "DailyNewsFeed-Frontend-Archive",
language: "PHP",
created: "2026-04-07",
url: "https://github.com/ChristianDev87/DailyNewsFeed-Frontend-Archive",
description: "PHP 8.2 Web-Interface für DailyNewsFeed - Discord OAuth2, RSS-Feed-Verwaltung, Slim 4",
},
{
name: "DailyNewsFeed-Bot-Archive",
language: "C#",
created: "2026-04-07",
url: "https://github.com/ChristianDev87/DailyNewsFeed-Bot-Archive",
description: "Discord Bot für DailyNewsFeed - .NET 9, RSS-Digest, Slash-Commands",
},
{
name: "FinanceAPI",
language: "C#",
created: "2026-03-10",
url: "https://github.com/ChristianDev87/FinanceAPI",
description: "The API for a small multi user project where you can track your finances. With a database in the background for management.",
},
];
let foundProjects = repositories;
let exportBtn = document.getElementById("exportButton");
function projectSearch(){
let value = document.getElementById("portfolioSearch").value.trim().toLowerCase();
let selectedLanguage = document.getElementById("portfolioFilter").value;
foundProjects = [];
repositories.forEach((project) => {
let textMatch = false;
let languageMatch = false;
if(project.name.toLowerCase().includes(value))
{
textMatch = true;
}
else if(project.description.toLowerCase().includes(value))
{
textMatch = true;
}
if(selectedLanguage === "all")
{
languageMatch = true;
}
else if(project.language === selectedLanguage)
{
languageMatch = true;
}
if(textMatch === true && languageMatch === true)
{
foundProjects.push(project);
}
});
showProjects(foundProjects);
}
function showProjects(projects){
let tableRows = "";
projects.forEach((project) => {
tableRows += `<tr><td><a href="`+project.url+`" target="_blank" rel="noopener">`+project.name+`</a></td>`;
tableRows += `<td>`+project.language+`</td>`;
tableRows += `<td>`+project.created+`</td>`;
tableRows += `<td title="`+project.description+`">`+project.description+`</td></tr>`;
});
if(tableRows === "")
{
tableRows = `<tr><td colspan="4">Kein Projekt gefunden.</td></tr>`;
}
document.getElementById("portfolioList").innerHTML = tableRows;
document.getElementById("portfolioCount").textContent = projects.length + " von " + repositories.length;
if(projects.length === 0){
exportBtn.hidden = true;
}else{
exportBtn.hidden = false;
}
}
showProjects(repositories);
if(isEvening() === true)
{
document.getElementById("portfolioList").classList.add("night");
}
exportBtn.onclick = () => {
projectSearch();
let data = buildExportText(foundProjects);
exportProjects(data);
};
function buildExportText(projects){
return JSON.stringify(projects);
}
function exportProjects(data){
let address = URL.createObjectURL(new Blob([data], { type: "application/json" }));
let link = document.createElement("a");
link.href = address;
link.download = "projects.json";
link.click();
link.remove();
URL.revokeObjectURL(address);
}
document.getElementById("portfolioSearch").oninput = () => {
projectSearch();
};
document.getElementById("portfolioFilter").onchange = () => {
projectSearch();
};
+143
View File
@@ -0,0 +1,143 @@
let score = 0;
let currentQuestionIndex = 0;
let shuffledQuestions = [];
let questions = [
{
question: "Mit wie vielen Jahren kam der erste Kontakt mit Technik?",
answers: ["Mit zehn Jahren", "Mit sechs Jahren", "Mit vierzehn Jahren"],
correctAnswer: 1,
},
{
question: "Welche Art von Skripten entstand als erstes?",
answers: ["Boot-Skripte", "PowerShell-Skripte", "Bash-Skripte"],
correctAnswer: 0,
},
{
question: "Mit welchem Thema fing das Programmieren richtig an?",
answers: ["Mit Spieleprogrammierung", "Mit Datensicherung", "Mit Webseiten"],
correctAnswer: 1,
},
{
question: "Welche Datei führte Windows 95 beim Start automatisch aus?",
answers: ["config.sys", "win.ini", "Autostart.bat"],
correctAnswer: 2,
},
{
question: "Was konnte das erste Backup-Skript zusätzlich zum reinen Kopieren?",
answers: ["Es verschlüsselte die Dateien", "Es verschickte eine Benachrichtigung", "Es erkannte die zuletzt vergebene Nummer und zählte fortlaufend weiter"],
correctAnswer: 2,
},
{
question: "Welche Schule folgte nach der Pflichtschule?",
answers: ["Eine Fachschule für Elektronik und EDV", "Eine Handelsakademie", "Eine HTL für Maschinenbau"],
correctAnswer: 0,
},
{
question: "Welche Lehre bot den ersten Weg in die Arbeitswelt?",
answers: ["Die Lehre als IT-Techniker", "Die Tischlerlehre", "Die Lehre als Elektrotechniker"],
correctAnswer: 1,
},
{
question: "In welcher Sprache entstanden die ersten Webseiten, bevor PHP dazukam?",
answers: ["In JavaScript", "In HTML", "In Python"],
correctAnswer: 1,
},
{
question: "Mit welchen Programmiersprachen wurde bisher gearbeitet?",
answers: ["Java, C# und C++", "Ruby, Go und Rust", "Swift, Kotlin und Dart"],
correctAnswer: 0,
},
{
question: "Worauf läuft der eigene Git-Server?",
answers: ["Auf einem Raspberry Pi", "Bei einem Cloud-Anbieter", "Auf einer eigenen Synology"],
correctAnswer: 2,
},
{
question: "Wofür dienen die Server bei Hetzner zusätzlich zu Webseiten und Backends?",
answers: ["Als Runner für GitLab und GitHub", "Als Mailserver", "Als Spieleserver"],
correctAnswer: 0,
},
];
function shuffleArray(questionArray)
{
let newArray = [questionArray.length];
let rng = getRandomNumber(questionArray.length);
for(i = 0; i < questionArray.length; i++)
{
do
{
rng = getRandomNumber(questionArray.length);
}
while(newArray.includes(questionArray[rng]));
newArray[i] = questionArray[rng]
}
return newArray;
}
function getRandomNumber(maxValue){
return Math.floor(Math.random() * maxValue);
}
function resetQuiz(){
document.getElementById("result").hidden = true;
currentQuestionIndex = 0;
score = 0;
shuffledQuestions = shuffleArray(questions);
showQuestions();
document.getElementById("quiz-container").hidden = false;
}
function showQuestions() {
let btn = document.getElementById("resultBtn");
if (currentQuestionIndex >= shuffledQuestions.length) {
document.getElementById("quiz-container").hidden = true;
document.getElementById("result").hidden = false;
document.getElementById("score").textContent = score;
btn.hidden = false;
return;
}
let currentQuestion = shuffledQuestions[currentQuestionIndex];
document.getElementById("question").textContent = currentQuestion.question;
let answersDiv = document.getElementById("answers");
answersDiv.innerHTML = "";
currentQuestion.answers.forEach((answer, index ) => {
let answerBtn = document.createElement("button");
answerBtn.className = "btn btn-outline-primary";
answerBtn.textContent = answer;
answerBtn.onclick = () => checkAnswer(index, currentQuestion.correctAnswer);
answersDiv.appendChild(answerBtn);
});
};
function checkAnswer(selectedIndex, indexOfCorrectAnswer) {
if(selectedIndex === indexOfCorrectAnswer){
score++;
}
currentQuestionIndex++;
showQuestions();
}
shuffledQuestions = shuffleArray(questions);
showQuestions();
if(isEvening() === true)
{
document.getElementById("quiz-container").classList.add("night");
document.getElementById("result").classList.add("night");
}
+19
View File
@@ -0,0 +1,19 @@
document.getElementById("navSearch").oninput = () => {
navigationSearch();
};
function navigationSearch(){
let value = document.getElementById("navSearch").value;
let lists = document.getElementById("navListItems").childNodes;
lists.forEach((element) => {
if(element.textContent.toLowerCase().includes(value.toLowerCase()))
{
element.childNodes[0].hidden = false;
}else
{
element.childNodes[0].hidden = true;
}
});
}
+3
View File
@@ -0,0 +1,3 @@
${basis}index.html;${basis}assets/images/home.svg;Home;Startseite
${basis}sites/werdegang.html;${basis}assets/images/plus.svg;Plus;Werdegang
${basis}sites/portfolio.html;${basis}assets/images/plus.svg;Plus;Portfolio
+6 -19
View File
@@ -13,26 +13,11 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<nav class="navbar navbar-expand-md bg-body-tertiary">
<div class="container-fluid">
<span class="navbar-brand"><h4>Navigation</h4></span>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="nav nav-pills flex-column navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html"><img src="assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="sites/werdegang.html"><img src="assets/images/plus.svg" role="img" alt="Plus" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="sites/portfolio.html"><img src="assets/images/plus.svg" role="img" alt="Plus" class="svgimages">Portfolio</a></li>
</ul><br>
</div>
</nav>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<h4><small>Über mich</small></h4>
<div id="contentArea" class="col-md-9">
<h4><small>Willkommen</small></h4>
<hr>
<img src="assets/images/retro-arbeitsplatz.jpg" alt="Arbeitsplatz mit Röhrenmonitor, Tastatur und älterer Rechnerhardware" class="banner">
<h2>Leidenschaft für die Programmierung</h2>
@@ -50,11 +35,13 @@
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="sites/legal/impress.html">Impressum</a> <a href="sites/legal/privacy.html">Datenschutz</a> <a href="sites/legal/contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/generateNavigation.js"></script>
<script src="assets/js/navSearch.js"></script>
</body>
</html>
+5 -9
View File
@@ -13,16 +13,10 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Navigation</h4>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link" href="../../index.html"><img src="../../assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="../werdegang.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="../portfolio.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Portfolio</a></li>
</ul><br>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<div id="contentArea" class="col-md-9">
<h1>Kontaktformular</h1>
<form action="" method="post">
@@ -86,11 +80,13 @@
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="impress.html">Impressum</a> <a href="privacy.html">Datenschutz</a> <a href="contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../../assets/js/bootstrap.bundle.min.js"></script>
<script src="../../assets/js/generateNavigation.js"></script>
<script src="../../assets/js/navSearch.js"></script>
</body>
</html>
+5 -9
View File
@@ -13,16 +13,10 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Navigation</h4>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link" href="../../index.html"><img src="../../assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="../werdegang.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="../portfolio.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Portfolio</a></li>
</ul><br>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<div id="contentArea" class="col-md-9">
<h4>Impressum</h4>
<h2 id="m46">Diensteanbieter</h2>
@@ -64,11 +58,13 @@
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="impress.html">Impressum</a> <a href="privacy.html">Datenschutz</a> <a href="contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../../assets/js/bootstrap.bundle.min.js"></script>
<script src="../../assets/js/generateNavigation.js"></script>
<script src="../../assets/js/navSearch.js"></script>
</body>
</html>
+5 -9
View File
@@ -13,16 +13,10 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Navigation</h4>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link" href="../../index.html"><img src="../../assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="../werdegang.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="../portfolio.html"><img src="../../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Portfolio</a></li>
</ul><br>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<div id="contentArea" class="col-md-9">
<h1>Datenschutzerklärung</h1>
<h2 id="m716">Präambel</h2>
@@ -206,11 +200,13 @@
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="impress.html">Impressum</a> <a href="privacy.html">Datenschutz</a> <a href="contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../../assets/js/bootstrap.bundle.min.js"></script>
<script src="../../assets/js/generateNavigation.js"></script>
<script src="../../assets/js/navSearch.js"></script>
</body>
</html>
+40 -14
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Portfolio | Christian Braumann</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Eine Übersicht meiner Projekte. Die Inhalte dieser Seite werden nachgetragen.">
<meta name="description" content="Eine Übersicht meiner Projekte, durchsuchbar und nach Programmiersprache filterbar.">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/fonts/fonts.css">
<link rel="stylesheet" href="../assets/css/style.css">
@@ -13,32 +13,58 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Navigation</h4>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link" href="../index.html"><img src="../assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="werdegang.html"><img src="../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="portfolio.html"><img src="../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Portfolio</a></li>
</ul><br>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<div id="contentArea" class="col-md-9">
<h4><small>Portfolio</small></h4>
<hr>
<h2>Projekte</h2>
<p>
Die Inhalte dieser Seite werden nachgetragen.
</p>
<h2>Projekte (Zum Test Github Projekte)</h2>
<div class="row g-2 mb-3">
<div class="col-md-7">
<input type="text" id="portfolioSearch" class="form-control" placeholder="Nach Name oder Beschreibung suchen">
</div>
<div class="col-md-5">
<select id="portfolioFilter" class="form-select">
<option value="all">Alle Sprachen</option>
<option value="C#">C#</option>
<option value="PHP">PHP</option>
<option value="Python">Python</option>
</select>
</div>
</div>
<div class="mb-3" id="exportBtnDiv">
<button id="exportButton" class="btn btn-outline-primary">Liste exportieren</button>
</div>
<p><small id="portfolioCount"></small></p>
<table class="table align-middle">
<thead>
<tr>
<th>Name</th>
<th>Sprache</th>
<th>Erstellt</th>
<th>Beschreibung</th>
</tr>
</thead>
<tbody id="portfolioList">
</tbody>
</table>
<br><br>
</div>
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="legal/impress.html">Impressum</a> <a href="legal/privacy.html">Datenschutz</a> <a href="legal/contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/generateNavigation.js"></script>
<script src="../assets/js/navSearch.js"></script>
<script src="../assets/js/generatePortfolio.js"></script>
</body>
</html>
+48
View File
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Quiz | Christian Braumann</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Ein kleines Quiz über den Inhalt meiner Webseite.">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/fonts/fonts.css">
<link rel="stylesheet" href="../assets/css/style.css">
</head>
<body>
<main>
<div class="container sheet">
<div class="row content">
<div id="navigation" class="col-md-3 sidenav">
</div>
<div id="contentArea" class="col-md-9">
<h4><small>Quiz</small></h4>
<hr>
<h2>Quiz</h2>
<div id="quiz-container">
<h2 id="question"></h2>
<div id="answers" class="d-grid gap-2"></div>
</div>
<div id="result" hidden="true">
<h2>Quiz Beendet!</h2>
<p>Deine Punktzahl: <span id="score"></span></p>
<button id="resultBtn" class="btn btn-primary" hidden="true" onclick="resetQuiz()">Reset</button>
</div>
<br><br>
</div>
</div>
</div>
</main>
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="legal/impress.html">Impressum</a> <a href="legal/privacy.html">Datenschutz</a> <a href="legal/contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/generateNavigation.js"></script>
<script src="../assets/js/navSearch.js"></script>
<script src="../assets/js/generateQuiz.js"></script>
</body>
</html>
+61
View File
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Rechner | Christian Braumann</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Ein einfacher Taschenrechner mit den vier Grundrechenarten, umgesetzt in JavaScript.">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/fonts/fonts.css">
<link rel="stylesheet" href="../assets/css/style.css">
</head>
<body>
<main>
<div class="container sheet">
<div class="row content">
<div id="navigation" class="col-md-3 sidenav">
</div>
<div id="contentArea" class="col-md-9">
<h4><small>Rechner</small></h4>
<hr>
<h2>Taschenrechner</h2>
<div class="row g-2 mb-3">
<div class="col-md-4">
<input type="number" id="numberOne" class="form-control" value="0">
</div>
<div class="col-md-2">
<select id="calcOperator" class="form-select">
<option value="+">+</option>
<option value="-">-</option>
<option value="*">*</option>
<option value="/">/</option>
</select>
</div>
<div class="col-md-4">
<input type="number" id="numberTwo" class="form-control" value="0">
</div>
<div class="col-md-2">
<button id="calcButton" class="btn btn-outline-primary w-100">=</button>
</div>
</div>
<p id="calcResult"></p>
<br><br>
</div>
</div>
</div>
</main>
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="legal/impress.html">Impressum</a> <a href="legal/privacy.html">Datenschutz</a> <a href="legal/contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/generateNavigation.js"></script>
<script src="../assets/js/navSearch.js"></script>
<script src="../assets/js/calculator.js"></script>
</body>
</html>
+5 -9
View File
@@ -13,16 +13,10 @@
<main>
<div class="container sheet">
<div class="row content">
<div class="col-sm-3 sidenav">
<h4>Navigation</h4>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link" href="../index.html"><img src="../assets/images/home.svg" role="img" alt="Home" class="svgimages"> Startseite</a></li>
<li class="nav-item"><a class="nav-link" href="werdegang.html"><img src="../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Werdegang</a></li>
<li class="nav-item"><a class="nav-link" href="portfolio.html"><img src="../assets/images/plus.svg" role="img" alt="Home" class="svgimages">Portfolio</a></li>
</ul><br>
<div id="navigation" class="col-md-3 sidenav">
</div>
<div class="col-sm-9">
<div id="contentArea" class="col-md-9">
<h4><small>Werdegang</small></h4>
<hr>
@@ -76,11 +70,13 @@
</div>
</div>
</main>
<footer class="container">
<footer id="footerArea" class="container">
<p style="text-align: center;"> &copy; 2026 - Christian Braumann <a href="legal/impress.html">Impressum</a> <a href="legal/privacy.html">Datenschutz</a> <a href="legal/contact.html">Kontakt</a></p>
<p style="text-align: center;">Design: <a href="https://html5up.net" target="_blank" rel="noopener">HTML5 UP</a> &middot; Bilder: <a href="https://www.pexels.com" target="_blank" rel="noopener">Pexels</a></p>
</footer>
<script src="../assets/js/bootstrap.bundle.min.js"></script>
<script src="../assets/js/generateNavigation.js"></script>
<script src="../assets/js/navSearch.js"></script>
</body>
</html>
+66
View File
@@ -0,0 +1,66 @@
body {
font-family: Arial, sans-serif;
margin: 20px;
}
.container {
max-width: 300px;
margin: auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
}
input[type="text"] {
width: 100%;
padding: 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
margin: 8px ;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
input[type="password"].passField {
width: calc(100% - 40px);
padding: 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button.icon {
width: 30px;
padding: 9px;
margin: 0px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.negVal{
color: red;
}
.posVal{
color: #4CAF50;
}
+133
View File
@@ -0,0 +1,133 @@
let values = [
{
name: "Gehalt",
value: 2500,
},
{
name: "Miete",
value: -1000,
},
{
name: "Essen",
value: -300,
},
{
name: "FreeLancer",
value: 200,
},
{
name: "Gas",
value: -260,
},
{
name: "Auftrag",
value: 3700,
},
{
name: "Leasing-Rate",
value: -1700,
},
];
function deleteThis(name){
let tempArray = new Array();
for(i = 0; i < values.length ; i++)
{
if(values[i].name !== name)
tempArray.push(values[i]);
}
values = tempArray;
showValue();
};
function showValue(){
let val = document.getElementById("vals");
let res = document.getElementById("results");
let html = ""
let results = "";
let posVals = 0;
let negVals = 0;
values.forEach(element => {
if(element.value.toString().startsWith("-"))
{
negVals += (parseInt(element.value.toString().substr(1)));
html += `<li>` + element.name + `: <span class="negVal">`+ element.value +`</span> € <input type="button" onClick="deleteThis('`+element.name+`');" value="Delete"></li> `;
}
else
{
posVals += parseInt(element.value.toString());
html += `<li>` + element.name + `: <span class="posVal">`+ element.value +`</span> € <input type="button" onClick="deleteThis('`+element.name+`');" value="Delete"></li>`;
}
});
val.innerHTML = html;
results += `<li> Gesammt Einnahmen: <span class="posVal">` + posVals +`</span> €</li>`;
results += `<li> Gesammt Ausgaben: <span class="negVal">` + negVals +`</span €</li>`;
let FixedResult = parseInt(posVals - negVals);
if(FixedResult.toString().startsWith("-"))
{
results += `<li> Verfügbar: <span class="negVal">` + FixedResult +`</span> €</li>`;
}else{
results += `<li> Verfügbar: <span class="posVal">` + FixedResult +`</span> €</li>`;
}
res.innerHTML = results;
}
document.getElementById("insertVal").addEventListener('click', function() {
let nameInternal = document.getElementById("LabelName").value;
let valInternal = document.getElementById("LabelVal").value;
if(nameInternal === "" || Math.abs(parseInt(valInternal)) == 0)
{
alert("Ungültige Eingabe. Name darf nicht leer sein und Betrag darf nicht 0 sein.");
}else{
values.push({ "name": nameInternal, "value": valInternal});
showValue();
document.getElementById("LabelName").value = "";
document.getElementById("LabelVal").value = "";
}
});
document.getElementById("deleteVal").addEventListener('click', function() {
let posInternal = document.getElementById("LabelDel").value;
if(posInternal <= 0 || posInternal > values.length)
{
alert("Zahl muss größer als 0 sein oder kleiner gleich " + (parseInt(values.length)) +" sein.");
}
else{
let tempArray = new Array();
for(i = 0; i < values.length ; i++)
{
if(i != posInternal-1)
tempArray.push(values[i]);
}
values = tempArray;
showValue();
}
});
document.getElementById("sortVal").addEventListener('click', function() {
values.sort((a, b) => a.value - b.value);
showValue();
});
showValue();
Binary file not shown.
+47
View File
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div id="showValues" class="">
<p>Kontoauszug:</p>
<ul id="vals">
</ul>
<p>Saldo:</p>
<ul id="results">
</ul>
<label for="LabelName">Name</label>
<input type="text" id="LabelName">
<label for="LabelVal">Betrag:</label>
<input type="text" id="LabelVal">
<button id="insertVal">Hinzufügen</button>
<label for="LabelDel">Eintrag mit der Nummer löschen: </label>
<input type="number" id="LabelDel">
<button id="deleteVal">löschen</button>
<button id="sortVal">Sortieren</button>
</div>
<script src="./assets/js/lists.js" async defer></script>
</body>
</html>
+14 -6
View File
@@ -1,22 +1,30 @@
Erklärung der Begriffe:
ECMA:
ECMA steht für European Computer Manufacturers Association.
Das Ziel dieser Organisation ist die Entwicklung von und Veröffentlichung von Standards der Technischen Normen.
Darunter Zählen ECMAScript welche als "Template" für JavaScript dient.
IDE:
Integrated Development Enviroment. Bezieht sich auf einen Editor der diversen Tools direkt mit ausgestattet ist um in einer Programmier- bzw Skript-Sprache ohne Umwege direkt arbeiten zu können.
Integrated Development Enviroment.
Bezieht sich auf einen Editor der diversen Tools direkt mit ausgestattet ist um in einer Programmier- bzw Skript-Sprache ohne Umwege direkt arbeiten zu können.
BOM:
Browser Objekt Module. In diesem Falle ist der Browser das entsprechende "Objekt" auf das Zugegriffen werden kann. Beispielsweise der Zurück Button, die Browserhistory.
Browser Objekt Module.
In diesem Falle ist der Browser das entsprechende "Objekt" auf das Zugegriffen werden kann.
Beispielsweise der Zurück Button, die Browserhistory
DOM:
Document Object Module. Bezieht sich auf "Objekt" das im entsprechenden aufgerufenen Dokument (z.B. index.html) manipuliert werde kann sofern es sichtbar bzw geladen wurde.
Document Object Module.
Bezieht sich auf "Objekt" das im entsprechenden aufgerufenen Dokument (z.B. index.html) manipuliert werde kann sofern es sichtbar bzw geladen wurde.
CDN:
Content Delivery Network. Ist ein eigenständiges Netzwerk rein zur Auslieferung/Bereitstellung von Daten wie z.B. Bilder, Scripten, CSS-Files, etc.
Content Delivery Network.
Ist ein eigenständiges Netzwerk rein zur Auslieferung/Bereitstellung von Daten wie z.B. Bilder, Scripten, CSS-Files, etc.
Vanilla-JS:
JavaScipt in reiner Form ohne ein Fraemwork was manche Funktionen erleichtert. Der Zugriff über die Selectoren wird direkt ausgeschrieben und kann in eine Variable gelegt werden. Z.B. Document.getElementByID("#id")
JavaScipt in reiner Form ohne ein Fraemwork was manche Funktionen erleichtert.
Der Zugriff über die Selectoren wird direkt ausgeschrieben und kann in eine Variable gelegt werden. Z.B. Document.getElementByID("#id")
jQuery:
Ein Framwework für JavaScipt welches gewisse vereinfachte Zugriffe sowie erweiterte Features Bereitstellen kann. Z.B Object Selectoren. $(".class")
+5 -26
View File
@@ -13,38 +13,17 @@
<input type="text" name="userName" id="username" placeholder="Jonny">
<br><br>
<label for="password">Passwort</label>
<input type="password" id="togglePasswordBtn" name="passWord" placeholder="Password"><br><br>
<div>
<input type="password" id="togglePasswordBtn" class="passField" name="passWord" placeholder="Password">
<button class="icon"> 👁 </button><br><br>
</div>
<button id="togglePasswordBtn" onclick="togglePassword()">Passwort anzeigen/ausblenden</button><br>
<button id="togglePasswordBtn2">Passwort anzeigen/ausblenden</button>
</div>
<script>
function togglePassword(){
var passwordField = document.getElementById("togglePasswordBtn");
if(passwordField.type === 'password'){
passwordField.type = 'text';
}
else if(passwordField.type === 'text'){
passwordField.type = 'password';
}
}
document.getElementById('togglePasswordBtn2').addEventListener('click', function() {
var passwordField2 = document.getElementById("togglePasswordBtn");
if(passwordField2.type === 'password'){
passwordField2.type = 'text';
}
else if(passwordField2.type === 'text'){
passwordField2.type = 'password';
}
});
</script>
<script src="assets/js/scripts.js"></script>
</body>
</html>
+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<script>
function test(para1, para2){
document.write("Parameter 1 ist imt dem Wert: " + para1 + "<br />");
document.write("Parameter 2 ist imt dem Wert: " + para2 + "<br />");
for(var i = 2; i < arguments.length; i++)
{
document.write("Zusätzliche Paramter " + (i -1) + " mit dem Wert: " + arguments[i] + "<br />");
}
}
test(10,11,12,13,15,16,17,18,19,20);
</script>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>OOP</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<script src="assets/js/04.js" async defer></script>
<script>
</script>
</body>
</html>
+25 -1
View File
@@ -10,7 +10,7 @@ body {
border-radius: 8px;
background-color: #f9f9f9;
}
input[type="text"], input[type="password"] {
input[type="text"] {
width: 100%;
padding: 10px;
margin: 8px 0;
@@ -19,6 +19,8 @@ input[type="text"], input[type="password"] {
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
@@ -32,3 +34,25 @@ button {
button:hover {
background-color: #45a049;
}
input[type="password"].passField {
width: calc(100% - 40px);
padding: 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button.icon {
width: 30px;
padding: 9px;
margin: 0px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
+21
View File
@@ -0,0 +1,21 @@
class Student{
constructor(firstName, lastName, age)
{
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
}
greeting() {
console.log(`Hi, my name is ${this.firstName} ${this.lastName}. I'm ${this.age} years old.`);
};
};
const jonny = new Student("Jonny", "Hilbert", 22);
const lisa = new Student("Lisa", "Lauser", 41);
jonny.greeting();
lisa.greeting();
+101
View File
@@ -0,0 +1,101 @@
let score = 0;
let currentQuestionIndex = 0;
let questions = [
{
question: "Was ist Event Bubbling?",
answers: ["Essen", "Trinken", "JavaScript-Verhalten"],
correctAnswer: 2,
},
{
question: "Wie groß ist Eiffelturm?",
answers: ["330 Meter", "289 Meter", "312 Meter"],
correctAnswer: 0,
},
{
question: "Wer hat JavaScript erstellt?",
answers: ["Brendan Eich", "Lebron James", "Lionel Messi"],
correctAnswer: 0,
},
];
function shuffleArray(questionArray)
{
let newArray = [questionArray.length];
let rng = getRandomNumber(questionArray.length);
for(i = 0; i < questionArray.length; i++)
{
do
{
rng = getRandomNumber(questionArray.length);
}
while(newArray.includes(questionArray[rng]));
newArray[i] = questionArray[rng]
}
return newArray;
}
function getRandomNumber(maxValue){
let val = Math.floor(Math.random() * maxValue)
if(val >= maxValue)
getRandomNumber(maxValue);
return Math.floor(Math.random() * maxValue);
}
function resetQuiz(){
document.getElementById("result").hidden = true;
currentQuestionIndex = 0;
score = 0;
showQuestions();
document.getElementById("quiz-container").hidden = false;
}
function showQuestions() {
shuffledQuestions = shuffleArray(questions);
let btn = document.getElementById("resultBtn");
if (currentQuestionIndex >= shuffledQuestions.length) {
document.getElementById("quiz-container").hidden = true;
document.getElementById("result").hidden = false;
document.getElementById("score").textContent = score;
btn.hidden = false;
return;
}
let currentQuestion = shuffledQuestions[currentQuestionIndex];
document.getElementById("question").textContent = currentQuestion.question;
let answersDiv = document.getElementById("answers");
answersDiv.innerHTML = "";
currentQuestion.answers.forEach((answer, index ) => {
let answerBtn = document.createElement("button");
answerBtn.textContent = answer;
answerBtn.onclick = () => checkAnswer(index, currentQuestion.correctAnswer);
answersDiv.appendChild(answerBtn);
});
};
function checkAnswer(selectedIndex, indexOfCorrectAnswer) {
/*const correctAnswer = questions[currentQuestionIndex].correctAnswer;*/
if(selectedIndex === indexOfCorrectAnswer){
score++;
}
currentQuestionIndex++;
showQuestions();
}
showQuestions();
+23
View File
@@ -0,0 +1,23 @@
function togglePassword(){
var passwordField = document.getElementById("togglePasswordBtn");
if(passwordField.type === 'password'){
passwordField.type = 'text';
}
else if(passwordField.type === 'text'){
passwordField.type = 'password';
}
}
document.getElementById('togglePasswordBtn2').addEventListener('click', function() {
var passwordField2 = document.getElementById("togglePasswordBtn");
if(passwordField2.type === 'password'){
passwordField2.type = 'text';
}
else if(passwordField2.type === 'text'){
passwordField2.type = 'password';
}
});
+30
View File
@@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<header>
<p>Die Kopfzeile wird beim Durschalten der Fragen nie verändert oder neu geladen.</p>
</header>
<div id="quiz-container">
<h2 id="question"></h2>
<div id="answers"></div>
<!--<button id="nextBtn" onclick="showQuestions()">Next Question</button> -->
</div>
<div id="result" hidden="true">
<h2>Quiz Beendet!</h2>
<p>Deine Punktzahl: <span id="score"></span></p>
<button id="resultBtn" hidden="true" onclick="resetQuiz()">Reset</button>
</div>
<footer>
<p>Dieser teil wird beim druschalten der Fragen nie verändert oder neu geladen.</p>
</footer>
<script src="assets/js/quiz.js"></script>
</body>
</html>
+33 -5
View File
@@ -15,11 +15,39 @@ input{
.webBox{
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.boxText{
display:block;
float:left;
padding:5px 10px
.btnBG{
color: red;
}
@media screen and (max-width: 600px) {
button {
width: 100%;
padding: 10px;
margin: 8px ;
background-color: #4CAF50;;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button.btnColor {
width: 100%;
padding: 10px;
margin: 8px ;
background-color: #4CAF50;;
color: red;
border: none;
border-radius: 4px;
cursor: pointer;
}
}
+211 -18
View File
@@ -1,36 +1,229 @@
function setSize(varWidth, varHeight){
var box = document.getElementById("webBoxSel");
var boxHeight = (varHeight / 2);
var boxwidth = (varWidth / 2);
let box = document.getElementById("webBoxSel");
let boxHeight = (varHeight / 2);
let boxWidth = (varWidth / 2);
if(boxHeight >= 300)
{
box.style.backgroundColor = 'red';
}else{
box.style.backgroundColor = 'yellow';
}
if((boxHeight >= 300) && (boxWidth >= 300))
{
box.style.backgroundColor = 'red';
}else{
box.style.backgroundColor = 'yellow';
}
box.style.width = boxwidth+'px';
box.style.width = boxWidth+'px';
box.style.height = boxHeight+'px';
var textInBox = document.getElementById("boxText");
let textInBox = document.getElementsByClassName('boxTextClass')[0];
textInBox.style.color = 'blue';
textInBox.style.margin = '25%';
textInBox.style.marginLeft = '25%';
textInBox.style.color = 'blue';
textInBox.style.margin = '25%';
textInBox.style.marginLeft = '25%';
}
if(document.readyState === "loading"){
const varW = window.outerWidth;
document.addEventListener("DOMContentLoaded", (event) => {
const varW = window.outerWidth;
const varH = window.outerHeight;
setSize(varW, varH);
}
});
window.addEventListener("resize", function (){
const varW = window.outerWidth;
const varH = window.outerHeight;
setSize(varW, varH);
})
});
document.getElementById("textValueBtn").addEventListener('click', function(){
let textInBox = document.getElementById("boxTextID");
let changeText = document.getElementById("textValue").value;
if(changeText.trim().length === 0)
{
alert("Text: Not a valid text for this action.")
}else{
textInBox.innerText = changeText;
}
});
document.getElementById("textSizeBtn").addEventListener('click', function(){
let textInBox = document.getElementById("boxTextID");
let changeSize = document.getElementById("textSize").value;
if(isNaN(changeSize) || changeSize.trim() === "")
{
alert("Size: Not a valid number for this action.")
}else{
textInBox.style.fontSize = changeSize+"px";
}
});
document.getElementById("textAngleBtn").addEventListener('click', function(){
let textInBox = document.getElementById("boxTextID");
let changeAngle = document.getElementById("textAngle").value;
if(isNaN(changeAngle) || changeAngle.trim() === "")
{
alert("Angle: Not a valid number for this action.")
}else{
textInBox.style.transform = "rotate("+changeAngle+"deg)";
}
});
document.getElementById("startBinCalc").addEventListener('click', function(){
let dezNumberToBin1 = tryParseInt(document.getElementById("binValue1").value);
let dezNumberToBin2 = tryParseInt(document.getElementById("binValue2").value);
if((isNaN(dezNumberToBin1) || isNaN(dezNumberToBin2)) || (dezNumberToBin1 === "" || dezNumberToBin2 === ""))
{
alert("BinaryNumberAddition: At least one number is not valid for this action.")
}else{
let bin1 = calcDezToBin(dezNumberToBin1);
let bin2 = calcDezToBin(dezNumberToBin2);
let numbersForText = fillWithZero(bin1.split(''), bin2.split(''));
let result = additionTwoBinNumbers(bin1, bin2);
document.getElementById('binCalcResult').innerHTML = "<center>&nbsp;&nbsp; "+numbersForText.first.join('') + "<br>+ " + numbersForText.second.join('') + "<br>&nbsp;&nbsp; " + result+" </center>";
}
});
function calcDezToBin(dezNumber){
if(dezNumber === 0)
{
return "0";
}
let tempNumber = dezNumber;
let remainderString = "";
let lastNumber = 0;
while(tempNumber !== 0)
{
lastNumber = Math.floor(tempNumber/2);
remainderString += tempNumber%2;
tempNumber = lastNumber;
}
let binaryValue = flipBinString(remainderString);
return binaryValue;
//document.getElementById('binCalcResult').innerText = binaryValue;
}
function tryParseInt(str) { // needs a better solution!
let retValue = null;
if(str !== null) {
if(str.length > 0) {
if (!isNaN(str)) {
retValue = parseInt(str);
return retValue;
}
}
}
return str;
}
function flipBinString(remainderString)
{
let count = remainderString.length;
let remainders = [];
for(let i = 0; i < count; i++)
{
remainders[i] = remainderString[i];
}
let returnVal = remainders.reverse().join('');
return returnVal;
}
function additionTwoBinNumbers(bin1, bin2)
{
let binArrays = fillWithZero(bin1.split(''), bin2.split(''));
let bin1Array = binArrays.first;
let bin2Array = binArrays.second;
let binOverflow = Array.from({length: bin2Array.length}, (v, k) => '0');
let lastOverflowBit = '0';
let tempResult = "";
function setOverflow(index){
if(isLastIndex(index))
{
lastOverflowBit = '1';
}else{
binOverflow[index-1] = '1';
}
}
for(let i = bin1Array.length-1; i >= 0; i--){
if(bin1Array[i] === '0' && bin2Array[i] === '0' && binOverflow[i] === '0') {
tempResult += '0';
}else if(bin1Array[i] === '0' && bin2Array[i] === '0' && binOverflow[i] === '1')
{
tempResult += '1';
}else if (((bin1Array[i] === '0' && bin2Array[i] === '1') || (bin1Array[i] === '1' && bin2Array[i] === '0')) && binOverflow[i] === '0')
{
tempResult += '1';
}
else if (((bin1Array[i] === '0' && bin2Array[i] === '1') || (bin1Array[i] === '1' && bin2Array[i] === '0')) && binOverflow[i] === '1')
{
tempResult += '0';
setOverflow(i);
}
else if((bin1Array[i] === '1' && bin2Array[i] === '1') && binOverflow[i] === '0')
{
tempResult += '0';
setOverflow(i);
}else if((bin1Array[i] === '1' && bin2Array[i] === '1') && binOverflow[i] === '1')
{
tempResult += '1';
setOverflow(i);
}
}
if(lastOverflowBit === '1')
{
tempResult += '1';
}
tempResult = flipBinString(tempResult);
return tempResult;
}
function isLastIndex(index){
return index === 0;
}
function fillWithZero(binArray1, binArray2)
{
let difference = Math.abs(binArray1.length - binArray2.length);
if(difference !== 0)
{
if(binArray1.length < binArray2.length)
{
for(let i = 0; i < difference; i++)
{
binArray1.unshift('0');
}
}
else
{
for(let i = 0; i < difference; i++)
{
binArray2.unshift('0');
}
}
}
return {
first: binArray1,
second: binArray2
}
}
+24 -8
View File
@@ -15,36 +15,52 @@
<div class="col-sm">
<div class="input-group">
<span class="input-group-text">Text</span>
<input type="text" class="form-control" placeholder="Hello World">
<button>Text ändern</button>
<input type="text" id="textValue"class="form-control" placeholder="Hello World">
<button id="textValueBtn" class="btnColor">Text ändern</button>
</div>
</div>
<div class="col-sm">
<div class="input-group">
<span class="input-group-text">Schriftgröße</span>
<input type="text" class="form-control" placeholder="Hello World">
<input type="text" id="textSize" class="form-control" placeholder="12">
<span class="input-group-text">px</span>
<button>Schrift ändern</button>
<button id="textSizeBtn" class="btnColor">Schrift ändern</button>
</div>
</div>
<div class="col-sm">
<div class="input-group">
<span class="input-group-text">Drechung</span>
<input type="text" class="form-control" placeholder="Hello World">
<input type="text" id="textAngle"class="form-control" placeholder="45">
<span class="input-group-text">°</span>
<button>Drehung ändern</button>
<button id="textAngleBtn" class="btnColor">Drehung ändern</button>
</div>
</div>
</div>
<br><br>
<div id="webBoxSel" class="container webBox">
<span class="boxText">Das ist nur ein BeipielText</span>
<span id="boxTextID" class="boxTextClass">Das ist nur ein Beipieltext der geändert wird.</span>
</div>
<br><br><br><br>
<div class="input-group">
<span class="input-group-text">Dezimalzahl1:</span>
<input type="text" id="binValue1" class="form-control" placeholder="150">
<span class="input-group-text">Dezimalzahl2:</span>
<input type="text" id="binValue2" class="form-control" placeholder="150">
<button id="startBinCalc" class="btnColor">Binär addieren.</button>
</div>
<div id="binCalcResult">
Result (will be replaced)
</div>
</div>
<script src="assets/js/manipulation.js"></script>
+517
View File
@@ -0,0 +1,517 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML · CSS · JavaScript – Lernwerkstatt</title>
<style>
:root{--bg:#081322;--panel:#f7faff;--ink:#13233c;--muted:#526580;--line:#d5e2f2;--blue:#1478f8;--purple:#7546f5;--cyan:#5ce1e6;--dark:#0b1728}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(145deg,#07111f,#0c1b30 60%,#11142b);color:#eaf2ff;font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
header{position:sticky;top:0;z-index:5;background:#081322ed;border-bottom:1px solid #203653;backdrop-filter:blur(12px);padding:14px clamp(16px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;font-size:1.15rem;font-weight:800}.brand-mark{font-size:2rem;color:#9b7bff}.brand small{display:block;font-size:.78rem;color:#a9bdd9;font-weight:500}
header input{width:min(340px,100%);padding:11px 14px;border:1px solid #5867d7;border-radius:10px;background:#101f35;color:white}
.layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;max-width:1600px;margin:auto;padding:20px}
nav{position:sticky;top:86px;align-self:start;max-height:calc(100vh - 105px);overflow:auto;background:#09182a;border:1px solid #1c3552;border-radius:14px;padding:12px}
nav a{display:block;text-decoration:none;color:#c8d8f0;padding:9px 10px;border-radius:8px;font-size:.9rem}nav a:hover{background:#183a61;color:white}
main{min-width:0}.hero{background:linear-gradient(120deg,#0757a6,#4a2b99 65%,#761a83);padding:clamp(22px,4vw,42px);border-radius:16px;margin-bottom:18px;box-shadow:0 16px 40px #0003}.hero h1{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.1;margin:0 0 12px}.hero p{max-width:800px;color:#e5eeff}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #ffffff55;border-radius:999px;padding:5px 12px;font-size:.83rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.panel{background:var(--panel);color:var(--ink);border-radius:13px;padding:18px;box-shadow:0 9px 25px #0002;min-width:0}.panel h2{font-size:1.2rem;margin:0 0 5px}.panel h3{font-size:1rem;margin:12px 0 6px}.intro{color:var(--muted);font-size:.9rem;margin:0 0 14px}.wide{grid-column:1/-1}.subgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.demo{background:#eef5ff;border:1px solid #d7e4f5;border-radius:10px;padding:12px;min-width:0}.demo h3{margin:0 0 8px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row>*{min-width:0}input,select,textarea,button{font:inherit}input[type=email],input[type=password],input[type=text],input[type=number],input[type=search],input[type=color],select,textarea{max-width:100%;padding:9px 10px;border:1px solid #c8d7e9;border-radius:7px;background:white;color:#172b49}button{border:0;border-radius:8px;padding:9px 13px;background:var(--blue);color:white;font-weight:700;cursor:pointer}button:hover{filter:brightness(1.08)}button.secondary{background:#e4edfb;color:#14335b;border:1px solid #c6d8ef}button.purple{background:var(--purple)}.full{width:100%}.hint{font-size:.82rem;color:#526580}.status{font-size:.85rem;color:#075e3a;font-weight:650;min-height:1.3em}.code{position:relative;background:#081827;color:#cce8ff;border-radius:9px;padding:14px;overflow:auto;white-space:pre;max-height:290px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;margin-top:12px}.code button{position:sticky;float:right;top:0;background:#233b57;font-size:.75rem;padding:5px 8px}.list-results{display:grid;gap:6px;margin-top:10px}.list-item{display:flex;justify-content:space-between;gap:8px;background:white;border:1px solid #dce7f5;border-radius:7px;padding:7px 9px;color:#18304f}.sum-box{background:#e5efff;border:1px solid #c8dcfa;border-radius:10px;text-align:center;padding:18px;min-width:125px}.sum-box strong{font-size:2rem;color:#0645a5;display:block}.mini-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mini{background:#eef5ff;border:1px solid #d6e3f5;border-radius:9px;padding:11px}.mini strong{font-size:1.5rem;display:block;color:#124fa7}.task{display:flex;gap:8px;align-items:center;padding:5px 0}.task.done span{text-decoration:line-through;color:#7a8ba1}
.css-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px}.css-nav{display:grid;gap:5px;align-content:start}.css-nav button{text-align:left;background:transparent;color:#294767;padding:8px}.css-nav button.active,.css-nav button:hover{background:#dceaff;color:#0753ba}.css-content{min-width:0}.property-list{display:grid;gap:8px}.property{display:grid;grid-template-columns:115px minmax(0,1fr);gap:10px;align-items:center;background:white;border:1px solid #dce6f3;border-radius:8px;padding:9px}.property code{color:#6540c6;font-size:.82rem;overflow-wrap:anywhere}.property p{margin:2px 0 0;color:#63738b;font-size:.8rem}.swatch{width:24px;height:24px;border-radius:6px;border:1px solid #ccd6e5;display:inline-block;vertical-align:middle;margin-right:6px}.trybox{background:white;border:1px solid #d8e5f5;border-radius:10px;padding:12px;margin-top:12px}.control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.control-grid label{font-size:.82rem;font-weight:700;color:#425875;display:grid;gap:5px}.control-grid input,.control-grid select{width:100%}.preview-wrap{background:repeating-conic-gradient(#e8eef6 0% 25%,#f7faff 0% 50%) 50%/20px 20px;padding:15px;border-radius:9px;margin-top:10px;overflow:hidden}.live-preview{min-height:125px;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;background:#2878f0;color:white;border-radius:10px;font-size:24px;transition:.2s;overflow:hidden}.sample-image{width:100%;height:145px;object-fit:cover;border-radius:8px;display:block}.image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.image-demo{background:white;border:1px solid #d9e5f3;padding:8px;border-radius:9px}.image-demo p{font-size:.8rem;color:#61738a;margin:5px 0}.fake-photo{height:120px;border-radius:7px;background:linear-gradient(145deg,#71c4fa,#4374b9 42%,#f7cf8c 43%,#628e4c 65%,#243c52);position:relative;overflow:hidden}.fake-photo:before{content:"";position:absolute;left:-10%;right:-10%;height:70%;bottom:-30%;background:#386b45;transform:rotate(-12deg);border-radius:50%}.fake-photo:after{content:"";position:absolute;left:20%;right:15%;height:80%;bottom:-35%;background:#8aaf65;transform:rotate(18deg);border-radius:50%}.layout-demo{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;background:#e9f1ff;padding:10px;border-radius:8px}.layout-demo span{height:35px;background:linear-gradient(135deg,#0879f9,#8a49ed);border-radius:5px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{background:#e8f1ff;border:1px solid #cbdcf4;color:#234a7d;border-radius:99px;padding:5px 10px;font-size:.78rem}.footer{text-align:center;color:#9cb2d0;padding:28px 10px;font-size:.85rem}
[hidden]{display:none!important}
@media(max-width:950px){.layout{grid-template-columns:1fr}nav{position:static;max-height:none;display:flex;flex-wrap:wrap;gap:2px}nav a{padding:7px}.grid{grid-template-columns:1fr}.wide{grid-column:auto}.css-layout{grid-template-columns:1fr}.css-nav{display:flex;flex-wrap:wrap}.css-nav button{font-size:.82rem}.hero{margin-bottom:14px}}
@media(max-width:560px){.layout{padding:10px}.panel{padding:13px}.subgrid,.mini-cards,.image-grid,.control-grid{grid-template-columns:1fr}.property{grid-template-columns:90px minmax(0,1fr)}header{padding:12px}.sum-box{width:100%}.brand{font-size:1rem}}
.site-preview{--preview-bg:#eaf2ff;--preview-bg2:#c7d9ff;--preview-header:#fff;--preview-accent:#2563eb;overflow:hidden;border:1px solid #d3dfef;border-radius:12px;background:var(--preview-bg);color:#172b49;min-height:340px;transition:background .2s}
.site-preview.theme-solid{background:var(--preview-bg)}
.site-preview.theme-gradient{background:linear-gradient(135deg,var(--preview-bg),var(--preview-bg2))}
.site-preview.theme-dark{background:linear-gradient(135deg,#101827,#26344d);color:#f3f6ff}
.site-preview.theme-soft{background:linear-gradient(135deg,#fff,var(--preview-bg2))}
.site-preview.theme-image{background:radial-gradient(circle at 15% 20%,var(--preview-bg2) 0 8%,transparent 8.5%),radial-gradient(circle at 90% 15%,var(--preview-bg2) 0 12%,transparent 12.5%),linear-gradient(135deg,var(--preview-bg),#fff)}
.preview-header{position:relative!important;top:auto!important;z-index:auto!important;backdrop-filter:none!important;background:var(--preview-header)!important;border:0!important;border-bottom:1px solid #8ca5c533!important;padding:12px 14px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;color:#172b49!important;flex-wrap:wrap!important}
.preview-logo{color:var(--preview-accent);font-size:.9rem}.preview-links{display:flex;gap:10px;font-size:.72rem;color:inherit}.preview-hero{padding:24px 18px 20px}.preview-badge{font-size:.63rem;letter-spacing:1.4px;color:var(--preview-accent);font-weight:800}.preview-title{font-size:1.55rem!important;margin:7px 0!important;line-height:1.15}.preview-copy{font-size:.8rem;max-width:340px;opacity:.8}.preview-button{background:var(--preview-accent);color:white;border:0;border-radius:7px;padding:8px 12px;font-size:.75rem}.preview-content{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px 16px}.preview-card{border:1px solid #8ca5c544;border-radius:var(--preview-radius,12px);padding:12px;background:#ffffffb8;color:#172b49;font-size:.8rem}.preview-card p{margin:4px 0 0;color:#5b6d84;font-size:.72rem}
.template-preview{--tpl-accent:#2563eb;min-height:300px;border:1px solid #d7e2f0;border-radius:12px;overflow:hidden;background:#fff;color:#1a2b43;margin-top:12px}
.template-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 20px;border-bottom:1px solid #e5eaf2;background:rgba(255,255,255,.9);color:#1b2a40}
.template-logo{font-size:.82rem;letter-spacing:1px;color:var(--tpl-accent)}.template-nav{display:flex;gap:14px;font-size:.76rem}.template-main{padding:28px 22px 24px}.template-eyebrow{font-size:.65rem;font-weight:800;letter-spacing:1.6px;color:var(--tpl-accent)}.template-heading{font-size:clamp(1.4rem,3vw,2rem)!important;line-height:1.15!important;margin:9px 0!important;color:inherit}.template-description{max-width:470px;font-size:.85rem;opacity:.78}.template-cta{background:var(--tpl-accent);border-radius:7px;padding:9px 14px;color:white}.template-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 20px}.template-tile{background:#f5f8fc;border:1px solid #e0e8f2;border-radius:10px;padding:12px;font-size:.8rem;color:#21334d}.template-tile p{font-size:.73rem;color:#65758b;margin:5px 0 0}
.tpl-gradient{background:linear-gradient(135deg,#e8f2ff,#e9ddff 55%,#ffe5f4)}.tpl-gradient .template-header{background:#ffffff70;border-color:#ffffff90}.tpl-gradient .template-tile{background:#ffffffa8;border-color:#ffffffaa}
.tpl-dark{background:linear-gradient(135deg,#101827,#1d2d49);color:#f3f6ff;border-color:#31415c}.tpl-dark .template-header{background:#0c1424;color:#f3f6ff;border-color:#34425a}.tpl-dark .template-tile{background:#1b2940;color:#f3f6ff;border-color:#35455e}.tpl-dark .template-tile p{color:#b5c5dc}
.tpl-nature{background:#edf4e8;color:#233c2b}.tpl-nature .template-header{background:#f7fbf3;color:#233c2b;border-color:#d7e4d1}.tpl-nature .template-tile{background:#f9fcf6;border-color:#d6e5d0;color:#233c2b}.tpl-nature .template-tile p{color:#617762}
.tpl-card{background:#f2f5fa}.tpl-card .template-main{margin:16px;background:white;border-radius:15px;box-shadow:0 10px 30px #243d6018}.tpl-card .template-tiles{padding-top:2px}.tpl-card .template-tile{box-shadow:0 4px 14px #243d6010;background:white}
.tpl-portfolio{background:#f7f5f1;color:#292722}.tpl-portfolio .template-header{background:#f7f5f1;border-color:#ddd8d0;color:#292722}.tpl-portfolio .template-main{padding-top:36px;padding-bottom:38px}.tpl-portfolio .template-heading{font-family:Georgia,serif!important;font-weight:500!important}.tpl-portfolio .template-tile{background:#fffdfa;border-color:#e4dfd6;color:#292722}
.tpl-shop{background:#fff7ed;color:#3b281e}.tpl-shop .template-header{background:#fffdf9;border-color:#f1dfcd;color:#3b281e}.tpl-shop .template-main{background:linear-gradient(110deg,#fff7ed,#ffe6cf)}.tpl-shop .template-tile{background:#fffdf9;border-color:#f0decc;color:#3b281e}
.tpl-blog{background:#fff;color:#222d3a}.tpl-blog .template-header{background:white;border-color:#e7eaf0;color:#222d3a}.tpl-blog .template-main{max-width:760px;margin:auto;padding-top:35px;padding-bottom:35px}.tpl-blog .template-heading{font-family:Georgia,serif!important}.tpl-blog .template-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:560px){.template-nav{gap:8px}.template-tiles{grid-template-columns:1fr}.tpl-blog .template-tiles{grid-template-columns:1fr}.template-header{padding:12px}.template-main{padding:20px 14px}.template-tiles{padding:0 14px 14px}}
</style>
</head>
<body>
<header>
<div class="brand"><span class="brand-mark">&lt;/&gt;</span><div>HTML · CSS · JavaScript<small>Die komplette Übersicht mit Beispielen</small></div></div>
<input id="globalSearch" type="search" placeholder="Auf dieser Seite suchen …" aria-label="Seite durchsuchen">
</header>
<div class="layout">
<nav aria-label="Seitennavigation">
<a href="#start">⌂ Startseite</a><a href="#logins">1. Login (2 Varianten)</a><a href="#suche">2. Suche & Liste</a><a href="#js">3. JavaScript-Beispiele</a><a href="#js-bibliothek">JavaScript-Codebibliothek</a><a href="#css">4. CSS-Übersicht</a><a href="#bilder">5. Bilder & Cover</a><a href="#layout">6. Layout & Position</a><a href="#responsive">7. Responsive Design</a><a href="#ende">Zusammenfassung</a>
</nav>
<main>
<section class="hero searchable" id="start"><h1>HTML, CSS & JavaScript – alles an einem Ort!</h1><p>Eine praktische Lernwebsite zum Ausprobieren. Ändere Eigenschaften, schau dir die Live-Vorschau an und kopiere die Beispiele in deine eigenen Projekte.</p><div class="pills"><span class="pill">HTML: Struktur</span><span class="pill">CSS: Aussehen</span><span class="pill">JavaScript: Verhalten</span><span class="pill">Direkt ausprobieren ✨</span></div></section>
<div class="grid">
<section class="panel searchable" id="logins"><h2>1. Zwei Login-Formulare</h2><p class="intro">Beide Varianten sind Demos. Das Passwort wird nur ein- und ausgeblendet; es findet keine echte Anmeldung statt.</p>
<div class="subgrid">
<form class="demo" onsubmit="event.preventDefault();document.getElementById('loginMsg1').textContent='Demo: Formular geprüft – keine echte Anmeldung.'"><h3>Variante 1 · Augen-Schaltfläche</h3><input class="full" type="email" placeholder="E-Mail" required style="margin-bottom:7px"><div class="row"><input id="pw1" style="flex:1;width:70%" type="password" placeholder="Passwort" required><button class="secondary" type="button" onclick="togglePassword('pw1',this)" aria-label="Passwort anzeigen">◉</button></div><button class="full" style="margin-top:9px" type="submit">Login</button><p id="loginMsg1" class="status"></p></form>
<form class="demo" onsubmit="event.preventDefault();document.getElementById('loginMsg2').textContent='Demo: Formular geprüft – keine echte Anmeldung.'"><h3>Variante 2 · Checkbox</h3><input class="full" type="email" placeholder="E-Mail" required style="margin-bottom:7px"><input id="pw2" class="full" type="password" placeholder="Passwort" required><label style="display:block;margin:8px 0"><input type="checkbox" onchange="document.getElementById('pw2').type=this.checked?'text':'password'"> Passwort anzeigen</label><button class="full" type="submit">Login</button><p id="loginMsg2" class="status"></p></form>
</div><pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>&lt;input type="password" id="passwort" placeholder="Passwort"&gt;
&lt;button type="button" onclick="passwortAnzeigen()"&gt;◉&lt;/button&gt;
&lt;script&gt;
function passwortAnzeigen(){
const feld = document.querySelector('#passwort');
feld.type = feld.type === 'password' ? 'text' : 'password';
}
&lt;/script&gt;</code></pre></section>
<section class="panel searchable" id="suche"><h2>2. Liste mit Suche & Summenberechnung</h2><p class="intro">Suche nach Namen oder Zahlen. Wenn alle sichtbaren Treffer Zahlen sind, wird ihre Summe berechnet.</p>
<div class="row"><input id="listSearch" type="search" placeholder="z. B. 3, Apfel oder Tom" style="flex:1;width:60%"><button onclick="document.getElementById('listSearch').value='';renderList()">Zurücksetzen</button></div>
<div class="row" style="align-items:stretch;margin-top:12px"><div id="listResults" class="list-results" style="flex:1"></div><div class="sum-box">Summe der Zahlen<strong id="sum">0</strong><span id="sumLabel" class="hint">0 Treffer</span></div></div>
<pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>const treffer = daten.filter(e =>
String(e).toLowerCase().includes(suche.toLowerCase())
);
const nurZahlen = treffer.length > 0 &&
treffer.every(e => !Number.isNaN(Number(e)));
const summe = nurZahlen
? treffer.reduce((gesamt, e) => gesamt + Number(e), 0)
: 'Keine reine Zahlenliste';</code></pre></section>
<section class="panel searchable" id="js"><h2>3. Weitere JavaScript-Beispiele</h2><p class="intro">Kleine interaktive Demos, die du direkt testen kannst.</p>
<div class="mini-cards">
<div class="mini"><h3>To-do-Liste</h3><div class="row"><input id="taskInput" type="text" placeholder="Neue Aufgabe" style="width:100%"><button onclick="addTask()">+</button></div><div id="tasks"></div></div>
<div class="mini"><h3>Zufallszahl</h3><strong id="randomNum">42</strong><button onclick="document.getElementById('randomNum').textContent=Math.floor(Math.random()*100)+1">Neue Zahl</button></div>
<div class="mini"><h3>Klick-Zähler</h3><strong id="clickCount">0</strong><button onclick="document.getElementById('clickCount').textContent=Number(document.getElementById('clickCount').textContent)+1">Klick mich</button></div>
<div class="mini"><h3>Text umdrehen</h3><input id="reverseInput" type="text" placeholder="Schreib etwas …" style="width:100%"><p id="reverseOutput" class="hint">Dein Text erscheint hier.</p><button onclick="document.getElementById('reverseOutput').textContent=[...document.getElementById('reverseInput').value].reverse().join('')">Umdrehen</button></div>
<div class="mini"><h3>Zeichen zählen</h3><textarea id="countInput" rows="2" placeholder="Text eingeben …" style="width:100%"></textarea><p><strong id="charCount">0</strong> Zeichen</p></div>
<div class="mini"><h3>Farb-Generator</h3><strong id="colorCode">#1478F8</strong><div id="colorBox" style="height:30px;background:#1478f8;border-radius:6px;margin:8px 0"></div><button onclick="let c='#'+Math.floor(Math.random()*16777215).toString(16).padStart(6,'0');document.getElementById('colorCode').textContent=c;document.getElementById('colorBox').style.background=c">Neue Farbe</button></div>
</div>
<pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>// Zufallszahl von 1 bis 100
const zahl = Math.floor(Math.random() * 100) + 1;
// Zeichen zählen
const anzahl = document.querySelector('#text').value.length;
// Ein Element ändern
document.querySelector('#meldung').textContent = 'Hallo!';
// Klick-Ereignis
button.addEventListener('click', () => {
console.log('Button wurde geklickt');
});</code></pre></section>
<section class="panel searchable wide" id="js-bibliothek">
<h2>JavaScript-Codebibliothek</h2>
<p class="intro">Wie bei der CSS-Übersicht: Kategorie auswählen, Beispiel lesen und den Code kopieren. Die Beispiele sind eigenständig und können angepasst werden.</p>
<div class="css-layout"><div class="css-nav" id="jsNav"></div><div class="css-content"><div id="jsCategoryTitle"><h3>Variablen & Werte</h3></div><div id="jsPropertyList" class="property-list"></div></div></div>
</section>
<section class="panel searchable" id="css"><h2>4. CSS-Übersicht zum Nachschlagen</h2><p class="intro">Wähle links eine Kategorie. Jede Eigenschaft hat eine kurze Erklärung und einen Beispielwert. Unten kannst du viele Werte live verändern.</p>
<div class="css-layout"><div class="css-nav" id="cssNav"></div><div class="css-content"><div id="cssCategoryTitle"><h3>Farben & Texte</h3></div><div id="propertyList" class="property-list"></div></div></div>
<div class="trybox"><h3>Live-CSS-Spielplatz</h3><p class="hint">Verändere die Werte – die Vorschau wird sofort aktualisiert.</p>
<div class="control-grid">
<label>Textinhalt<input id="liveText" value="Probiere CSS aus!"></label>
<label>Textfarbe<input id="liveColor" type="color" value="#ffffff"></label>
<label>Hintergrundfarbe<input id="liveBg" type="color" value="#2878f0"></label>
<label>Schriftgröße (px)<input id="liveSize" type="range" min="12" max="48" value="24"></label>
<label>Abstand innen (padding)<input id="livePadding" type="range" min="0" max="40" value="18"></label>
<label>Ecken abrunden (px)<input id="liveRadius" type="range" min="0" max="50" value="10"></label>
<label>Schatten<select id="liveShadow"><option value="none">Keiner</option><option value="0 4px 12px #0004">Klein</option><option value="0 12px 25px #263b6a66">Groß</option></select></label>
<label>Textausrichtung<select id="liveAlign"><option>center</option><option>left</option><option>right</option></select></label>
</div>
<div class="preview-wrap"><div id="livePreview" class="live-preview">Probiere CSS aus!</div></div>
<pre class="code"><button onclick="copyLiveCss()">CSS kopieren</button><code id="liveCssOutput"></code></pre></div></section>
<section class="panel searchable" id="bilder"><h2>5. Bilder, Cover & Größen</h2><p class="intro">Diese Vorschauen sind CSS-Farbillustrationen, damit du die Anpassung ohne externe Bilder sehen kannst. Ersetze sie in deinen Projekten durch echte Bilddateien.</p>
<div class="image-grid">
<div class="image-demo"><div class="fake-photo" style="background-size:cover"></div><strong>background-size: cover</strong><p>Füllt den ganzen Bereich aus. Bildränder können abgeschnitten werden.</p><code>background-size: cover;</code></div>
<div class="image-demo"><div class="fake-photo" style="background-size:contain;background-repeat:no-repeat;background-color:#e4edfa"></div><strong>background-size: contain</strong><p>Das ganze Bild bleibt sichtbar; eventuell bleibt freie Fläche.</p><code>background-size: contain;</code></div>
<div class="image-demo"><div class="fake-photo" style="background:linear-gradient(135deg,#7ac7ff 0 30%,#efc77d 31% 55%,#426c42 56%)"></div><strong>object-fit: cover</strong><p>Für ein echtes &lt;img&gt;-Element, das den Rahmen füllt.</p><code>img { object-fit: cover; }</code></div>
</div>
<h3>CSS für echte Bilder</h3><pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>/* Bild füllt den Rahmen */
.foto {
width: 100%;
height: 220px;
object-fit: cover;
object-position: center;
border-radius: 12px;
}
/* Bild vollständig zeigen */
.foto-ganz {
object-fit: contain;
background: #eef2f8;
}
/* Hintergrundbild */
.hero {
background-image: url("bild.jpg");
background-size: cover;
background-position: center;
}</code></pre></section>
<section class="panel searchable" id="layout"><h2>6. Layout, Position & Effekte</h2><p class="intro">Häufige Eigenschaften für Anordnung, Rahmen und Bewegung.</p>
<div class="subgrid">
<div class="demo"><h3>Flexbox</h3><div class="layout-demo" style="display:flex;justify-content:space-between"><span></span><span></span><span></span></div><p class="hint">Elemente in einer Zeile oder Spalte verteilen.</p><code>display:flex;<br>gap:10px;<br>justify-content:space-between;</code></div>
<div class="demo"><h3>Grid</h3><div class="layout-demo"><span></span><span></span><span></span><span></span><span></span><span></span></div><p class="hint">Ein Raster aus Spalten und Zeilen.</p><code>display:grid;<br>grid-template-columns:repeat(3,1fr);</code></div>
<div class="demo"><h3>Hover-Effekt</h3><button class="purple" onmouseover="this.style.transform='scale(1.06)'" onmouseout="this.style.transform='scale(1)'">Fahre mit der Maus darüber</button><p class="hint">Mit :hover ändert sich das Aussehen bei Mausberührung.</p><code>button:hover { transform:scale(1.05); }</code></div>
<div class="demo"><h3>Rahmen & Schatten</h3><div style="background:white;border:2px solid #8b5cf6;border-radius:14px;padding:18px;box-shadow:0 8px 20px #5145a544">Eine Box mit Stil</div><p class="hint">Rahmen, Rundungen und Schatten kombinieren.</p><code>border:2px solid #8b5cf6;<br>border-radius:14px;<br>box-shadow:0 8px 20px #0002;</code></div>
</div>
<div class="chips" style="margin-top:12px"><span class="chip">margin</span><span class="chip">padding</span><span class="chip">border</span><span class="chip">border-radius</span><span class="chip">box-shadow</span><span class="chip">opacity</span><span class="chip">overflow</span><span class="chip">z-index</span><span class="chip">cursor</span><span class="chip">transition</span><span class="chip">transform</span><span class="chip">animation</span><span class="chip">filter</span><span class="chip">position</span><span class="chip">display</span></div>
<pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>.karte {
margin: 16px; /* außen */
padding: 20px; /* innen */
border: 1px solid #dbe4f0;
border-radius: 12px;
box-shadow: 0 8px 20px #0002;
transition: transform .2s ease;
}
.karte:hover { transform: translateY(-3px); }</code></pre></section>
<section class="panel searchable" id="responsive"><h2>7. Responsive Design</h2><p class="intro">Media Queries passen die Seite an kleinere Bildschirme an. Verkleinere dein Browserfenster, um diese Seite in Aktion zu sehen.</p><div class="mini-cards"><div class="mini"><strong>Desktop</strong><p>ab ca. 1024 px</p></div><div class="mini"><strong>Tablet</strong><p>600–1023 px</p></div><div class="mini"><strong>Smartphone</strong><p>bis 599 px</p></div></div><pre class="code"><button onclick="copyCode(this)">Code kopieren</button><code>/* Standard: Desktop */
.container { display:grid; grid-template-columns:1fr 1fr; }
/* Tablet und kleiner */
@media (max-width: 950px) {
.container { grid-template-columns:1fr; }
}
/* Smartphone */
@media (max-width: 560px) {
.karte { padding:12px; }
h1 { font-size:1.5rem; }
}</code></pre></section>
<section class="panel searchable wide" id="hintergrund">
<h2>8. Ein einfacher Website-Hintergrund mit Header</h2>
<p class="intro">Wähle ein Design aus und sieh direkt, wie ein einfacher Website-Kopfbereich mit Hintergrund, Titel, Navigation und Inhalt aussehen kann. Den CSS-Code kannst du kopieren und in deine Website übernehmen.</p>
<div class="subgrid">
<div class="demo">
<h3>Design auswählen</h3>
<label style="display:grid;gap:5px;margin-bottom:10px">Hintergrund-Stil
<select id="bgStyle" style="width:100%">
<option value="solid">Einfarbig schlicht</option>
<option value="gradient">Farbverlauf</option>
<option value="dark">Dunkel & modern</option>
<option value="soft">Hell & minimalistisch</option>
<option value="image">Muster / dekorative Kreise</option>
<option value="mesh">Mesh-Verlauf</option>
<option value="stripes">Diagonale Streifen</option>
<option value="dots">Punkte-Muster</option>
<option value="grid">Technisches Raster</option>
<option value="radial">Leuchtender Radial-Verlauf</option>
<option value="aurora">Aurora / Nordlicht</option>
<option value="checker">Schachbrett</option>
<option value="waves">Wellen-Look</option>
</select>
</label>
<div class="control-grid">
<label>Hauptfarbe<input type="color" id="bgColor1" value="#eaf2ff"></label>
<label>Zusatzfarbe<input type="color" id="bgColor2" value="#c7d9ff"></label>
<label>Header-Farbe<input type="color" id="bgHeader" value="#ffffff"></label>
<label>Akzentfarbe<input type="color" id="bgAccent" value="#2563eb"></label>
</div>
<div class="control-grid" style="margin-top:10px">
<label>Mustergröße (px)<input type="range" id="bgPatternSize" min="12" max="100" value="32"></label>
<label>Muster-Deckkraft (%)<input type="range" id="bgPatternOpacity" min="10" max="100" value="55"></label>
</div>
<label style="display:grid;gap:5px;margin-top:10px">Header-Stil
<select id="headerStyle" style="width:100%">
<option value="normal">Normal</option>
<option value="transparent">Transparent</option>
<option value="dark">Dunkel</option>
<option value="accent">Akzentfarbe</option>
</select>
</label>
<label style="display:grid;gap:5px;margin-top:10px">Ecken des Inhalts
<input type="range" id="bgRadius" min="0" max="28" value="12">
</label>
<button class="secondary" onclick="resetBackground()">Zurücksetzen</button>
</div>
<div class="demo">
<h3>Live-Vorschau</h3>
<div id="sitePreview" class="site-preview theme-solid">
<header class="preview-header"><strong class="preview-logo">Meine Website</strong><div class="preview-links"><span>Start</span><span>Über uns</span><span>Kontakt</span></div></header>
<div class="preview-hero"><span class="preview-badge">WILLKOMMEN</span><h3 class="preview-title">Deine Überschrift</h3><p class="preview-copy">Ein einfacher, schöner Hintergrund für deine Website. Passe Farben und Stil nach deinem Geschmack an.</p><button class="preview-button" type="button">Mehr erfahren</button></div>
<div class="preview-content"><div class="preview-card"><strong>Einfach</strong><p>Übersichtlich und klar.</p></div><div class="preview-card"><strong>Modern</strong><p>Passt auf viele Websites.</p></div></div>
</div>
</div>
</div>
<h3>Code für das ausgewählte Design</h3>
<pre class="code"><button onclick="copyBackgroundCode()">CSS kopieren</button><code id="backgroundCode"></code></pre>
<p class="hint">Tipp: Du kannst den Header und Hintergrund auch getrennt verwenden. Ersetze „Meine Website“, die Links und den Text durch deine eigenen Inhalte.</p>
</section>
<section class="panel searchable wide" id="website-designs">
<h2>9. Fertige Website-Designs zum Wiederverwenden</h2>
<p class="intro">Hier sind mehrere einfache, wiederverwendbare Layouts. Wähle ein Design, ändere die Farben und kopiere das vollständige HTML/CSS-Beispiel. Die Vorschau aktualisiert sich direkt.</p>
<div class="demo">
<div class="row" style="align-items:end">
<label style="display:grid;gap:5px;flex:1">Design auswählen
<select id="templateChoice" style="width:100%">
<option value="clean">1. Clean & Weiß</option>
<option value="gradient">2. Farbverlauf</option>
<option value="dark">3. Dunkel & Modern</option>
<option value="nature">4. Natur & Ruhig</option>
<option value="card">5. Karten-Layout</option>
<option value="portfolio">6. Portfolio</option>
<option value="shop">7. Produkt / Shop</option>
<option value="blog">8. Blog / Artikel</option>
</select>
</label>
<label style="display:grid;gap:5px">Akzentfarbe<input id="templateAccent" type="color" value="#2563eb"></label>
</div>
<div id="templatePreview" class="template-preview tpl-clean">
<div class="template-header"><strong class="template-logo">DEIN LOGO</strong><div class="template-nav"><span>Start</span><span>Über uns</span><span>Kontakt</span></div></div>
<div class="template-main"><div class="template-eyebrow">EINFACH · KLAR · MODERN</div><h3 class="template-heading">Deine Website beginnt hier.</h3><p class="template-description">Ein simples Layout, das du für deine eigene Website anpassen kannst.</p><button class="template-cta" type="button">Mehr erfahren</button></div>
<div class="template-tiles"><div class="template-tile"><b>Einfach</b><p>Alles übersichtlich angeordnet.</p></div><div class="template-tile"><b>Flexibel</b><p>Farben und Inhalte leicht ändern.</p></div><div class="template-tile"><b>Responsive</b><p>Passt sich kleineren Displays an.</p></div></div>
</div>
<div class="row" style="margin-top:10px"><button onclick="copyTemplateCode()">Kompletten Code kopieren</button><button class="secondary" onclick="downloadTemplateCode()">Code als HTML herunterladen</button></div>
</div>
<h3>Was du bekommst</h3>
<div class="chips"><span class="chip">Header + Navigation</span><span class="chip">Überschrift + Button</span><span class="chip">Inhaltsbereich</span><span class="chip">Karten / Kacheln</span><span class="chip">Mobile Anpassung</span><span class="chip">Vollständiges Beispiel</span></div>
<pre class="code"><button onclick="copyTemplateCode()">Code kopieren</button><code id="templateCode"></code></pre>
</section>
<section class="panel searchable" id="ende"><h2>Zusammenfassung</h2><p>HTML baut die Struktur, CSS gestaltet das Aussehen und JavaScript macht die Seite interaktiv. Ändere Beispiele, kopiere den Code und probiere eigene Werte aus.</p><div class="row"><button onclick="window.scrollTo({top:0,behavior:'smooth'})">Nach oben ↑</button><button class="secondary" onclick="document.querySelectorAll('.searchable').forEach(x=>x.hidden=false);document.getElementById('globalSearch').value=''">Suche zurücksetzen</button><button class="purple" onclick="resetLive()">CSS-Vorschau zurücksetzen</button></div></section>
</div>
<div class="footer">HTML · CSS · JavaScript · Lernen. Ausprobieren. Erstellen.</div>
</main></div>
<script>
const data=[['Apfel',12],['Banane',5],['Orange',8],['Tomate',3],['Milch',10],['Käse',7],['12',12],['15',15],['Hund','Tier'],['42',42],['100',100]];
function togglePassword(id,btn){const f=document.getElementById(id);f.type=f.type==='password'?'text':'password';btn.textContent=f.type==='password'?'◉':'◎'}
function renderList(){const q=document.getElementById('listSearch').value.trim().toLowerCase();const hits=data.filter(x=>(x[0]+' '+x[1]).toLowerCase().includes(q));const root=document.getElementById('listResults');root.innerHTML='';hits.forEach(x=>{const el=document.createElement('div');el.className='list-item';const a=document.createElement('span');a.textContent=x[0];const b=document.createElement('strong');b.textContent=x[1];el.append(a,b);root.append(el)});const numeric=hits.length>0&&hits.every(x=>x[0].trim()!==''&&!Number.isNaN(Number(x[0])));document.getElementById('sum').textContent=numeric?hits.reduce((s,x)=>s+Number(x[0]),0):'—';document.getElementById('sumLabel').textContent=hits.length+' Treffer'+(numeric?' · Summe der Zahlen':' · Suche nach Zahlen für eine Summe')}
document.getElementById('listSearch').addEventListener('input',renderList);renderList();
function addTask(){const i=document.getElementById('taskInput');const t=i.value.trim();if(!t)return;const d=document.createElement('div');d.className='task';const c=document.createElement('input');c.type='checkbox';const s=document.createElement('span');s.textContent=t;c.onchange=()=>d.classList.toggle('done',c.checked);d.append(c,s);document.getElementById('tasks').append(d);i.value=''}
document.getElementById('countInput').addEventListener('input',e=>document.getElementById('charCount').textContent=e.target.value.length);
const categories={
'Farben & Texte':[['color','Textfarbe','color: #ffffff;','Legt die Farbe des Textes fest.'],['background-color','Hintergrundfarbe','background-color: #3498db;','Färbt den Hintergrund.'],['background','Hintergrund','background: linear-gradient(135deg, #6d5dfc, #e34ba9);','Kurzschreibweise für Hintergrundfarbe, Bild oder Verlauf.'],['font-size','Schriftgröße','font-size: 24px;','Zum Beispiel 16px, 1.2rem oder 2em.'],['font-family','Schriftart','font-family: Arial, sans-serif;','Bestimmt die Schriftfamilie.'],['font-weight','Schriftstärke','font-weight: 700;','400 normal, 700 fett.'],['text-align','Textausrichtung','text-align: center;','left, center, right oder justify.'],['text-decoration','Textdekoration','text-decoration: underline;','Zum Beispiel underline oder none.'],['line-height','Zeilenhöhe','line-height: 1.6;','Abstand zwischen Textzeilen.'],['letter-spacing','Zeichenabstand','letter-spacing: 2px;','Verändert den Abstand zwischen Buchstaben.']],
'Größen & Abstände':[['width','Breite','width: 100%;','Breite eines Elements.'],['max-width','Maximalbreite','max-width: 900px;','Verhindert, dass ein Element zu breit wird.'],['height','Höhe','height: 200px;','Feste Höhe; mit Vorsicht bei langen Inhalten.'],['min-height','Mindesthöhe','min-height: 100vh;','Mindestens so hoch wie der Bildschirm.'],['margin','Außenabstand','margin: 16px;','Abstand außerhalb des Rahmens.'],['padding','Innenabstand','padding: 20px;','Abstand zwischen Inhalt und Rahmen.'],['gap','Abstand im Layout','gap: 12px;','Abstand zwischen Flex- oder Grid-Elementen.'],['box-sizing','Größenberechnung','box-sizing: border-box;','Rahmen und Padding werden in die Breite eingerechnet.']],
'Bilder & Cover':[['background-image','Hintergrundbild','background-image: url("bild.jpg");','Setzt ein Bild als Hintergrund.'],['background-size','Hintergrundgröße','background-size: cover;','cover füllt aus, contain zeigt das ganze Bild.'],['background-position','Bildposition','background-position: center;','Positioniert das Hintergrundbild.'],['object-fit','Bild im Rahmen','object-fit: cover;','Steuert, wie ein img- oder video-Element in seinen Rahmen passt.'],['object-position','Ausschnitt','object-position: center top;','Verschiebt den sichtbaren Bildausschnitt.'],['aspect-ratio','Seitenverhältnis','aspect-ratio: 16 / 9;','Zum Beispiel für Video- oder Bildrahmen.']],
'Rahmen & Schatten':[['border','Rahmen','border: 1px solid #ccd6e5;','Breite, Stil und Farbe des Rahmens.'],['border-radius','Rundungen','border-radius: 12px;','Rundet Ecken ab; 50% ergibt oft einen Kreis.'],['box-shadow','Schatten','box-shadow: 0 8px 20px #0002;','Fügt einen Schatten hinzu.'],['outline','Außenkontur','outline: 2px solid blue;','Kontur außerhalb des Rahmens, etwa beim Fokus.'],['opacity','Transparenz','opacity: 0.7;','0 ist durchsichtig, 1 ist vollständig sichtbar.']],
'Layout (Flex & Grid)':[['display','Darstellung','display: flex;','Steuert das Layout: block, flex, grid, inline usw.'],['flex-direction','Flex-Richtung','flex-direction: column;','Ordnet Flex-Elemente als Zeile oder Spalte.'],['justify-content','Hauptachse','justify-content: center;','Verteilt Elemente entlang der Hauptachse.'],['align-items','Querachse','align-items: center;','Richtet Elemente quer zur Hauptachse aus.'],['flex-wrap','Umbruch','flex-wrap: wrap;','Erlaubt Zeilenumbruch bei wenig Platz.'],['grid-template-columns','Grid-Spalten','grid-template-columns: repeat(3, 1fr);','Legt Anzahl und Breite der Spalten fest.'],['place-items','Grid-Ausrichtung','place-items: center;','Richtet Grid-Inhalte in beide Richtungen aus.']],
'Position & Sichtbarkeit':[['position','Positionierung','position: relative;','static, relative, absolute, fixed oder sticky.'],['top / right / bottom / left','Versatz','top: 10px; right: 10px;','Versatz bei positionierten Elementen.'],['z-index','Ebenenreihenfolge','z-index: 10;','Bestimmt, was über anderen Elementen liegt.'],['visibility','Sichtbarkeit','visibility: hidden;','Versteckt das Element, lässt seinen Platz bestehen.'],['display: none','Komplett ausblenden','display: none;','Element wird ausgeblendet und belegt keinen Platz.'],['overflow','Überlauf','overflow: auto;','Regelt Inhalte, die über den Rahmen hinausgehen.']],
'Animationen & Effekte':[['transition','Übergang','transition: all .2s ease;','Animiert Änderungen sanft.'],['transform','Verformen','transform: rotate(3deg);','Drehen, skalieren, verschieben oder neigen.'],['animation','Animation','animation: schweben 2s infinite;','Spielt eine definierte Keyframe-Animation ab.'],['filter','Filter','filter: grayscale(100%);','Graustufen, Unschärfe, Helligkeit und mehr.'],['cursor','Mauszeiger','cursor: pointer;','Zeigt beispielsweise eine Hand über klickbaren Elementen.'],[':hover','Mauszustand','button:hover { opacity: .8; }','Stil, wenn die Maus über einem Element ist.']],
'Responsive Design':[['@media','Media Query','@media (max-width: 600px) { ... }','Wendet CSS nur bei bestimmten Bildschirmbedingungen an.'],['max-width','Flexible Breite','max-width: 100%;','Verhindert, dass Inhalte aus dem Bildschirm ragen.'],['clamp()','Flexible Größe','font-size: clamp(1rem, 3vw, 2rem);','Min-, Wunsch- und Maximalwert kombinieren.'],['rem','Schriftbasierte Einheit','padding: 1rem;','Orientiert sich an der Grundschriftgröße.'],['vw / vh','Viewport-Einheiten','min-height: 100vh;','Bezieht sich auf die Breite oder Höhe des Fensters.']],
'Weitere Eigenschaften':[['list-style','Listenstil','list-style: none;','Ändert oder entfernt Listenmarkierungen.'],['text-overflow','Textkürzung','text-overflow: ellipsis;','Zeigt bei abgeschnittenem Text etwa Auslassungspunkte.'],['white-space','Leerzeichen','white-space: nowrap;','Steuert Zeilenumbrüche und Leerzeichen.'],['object-fit','Medien-Anpassung','object-fit: contain;','Passt Bilder oder Videos an ihren Rahmen an.'],['user-select','Textauswahl','user-select: none;','Steuert, ob Text ausgewählt werden kann.']]
};
const nav=document.getElementById('cssNav'),plist=document.getElementById('propertyList'),title=document.getElementById('cssCategoryTitle');let activeCat='Farben & Texte';
Object.keys(categories).forEach((cat,i)=>{const b=document.createElement('button');b.textContent=cat;b.className=i===0?'active':'';b.onclick=()=>showCat(cat);nav.append(b)});
function showCat(cat){activeCat=cat;[...nav.children].forEach(b=>b.classList.toggle('active',b.textContent===cat));title.innerHTML='<h3>'+cat+'</h3>';plist.innerHTML='';categories[cat].forEach(p=>{const d=document.createElement('div');d.className='property';const left=document.createElement('div');left.innerHTML='<strong>'+p[0]+'</strong><p>'+p[1]+'</p>';const right=document.createElement('div');const c=document.createElement('code');c.textContent=p[2];const desc=document.createElement('p');desc.textContent=p[3];right.append(c,desc);d.append(left,right);plist.append(d)})}showCat(activeCat);
const liveIds=['liveText','liveColor','liveBg','liveSize','livePadding','liveRadius','liveShadow','liveAlign'];
function updateLive(){const p=document.getElementById('livePreview');p.textContent=document.getElementById('liveText').value;p.style.color=document.getElementById('liveColor').value;p.style.background=document.getElementById('liveBg').value;p.style.fontSize=document.getElementById('liveSize').value+'px';p.style.padding=document.getElementById('livePadding').value+'px';p.style.borderRadius=document.getElementById('liveRadius').value+'px';p.style.boxShadow=document.getElementById('liveShadow').value;p.style.textAlign=document.getElementById('liveAlign').value;document.getElementById('liveCssOutput').textContent='.vorschau {\\n color: '+p.style.color+';\\n background: '+p.style.background+';\\n font-size: '+p.style.fontSize+';\\n padding: '+p.style.padding+';\\n border-radius: '+p.style.borderRadius+';\\n box-shadow: '+(p.style.boxShadow||'none')+';\\n text-align: '+p.style.textAlign+';\\n}'}liveIds.forEach(id=>document.getElementById(id).addEventListener('input',updateLive));updateLive();
function resetLive(){document.getElementById('liveText').value='Probiere CSS aus!';document.getElementById('liveColor').value='#ffffff';document.getElementById('liveBg').value='#2878f0';document.getElementById('liveSize').value=24;document.getElementById('livePadding').value=18;document.getElementById('liveRadius').value=10;document.getElementById('liveShadow').value='none';document.getElementById('liveAlign').value='center';updateLive()}
function copyText(text,btn){if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(text).then(()=>{const old=btn.textContent;btn.textContent='Kopiert ✓';setTimeout(()=>btn.textContent=old,1200)}).catch(()=>fallbackCopy(text,btn))}else fallbackCopy(text,btn)}
function fallbackCopy(text,btn){const t=document.createElement('textarea');t.value=text;document.body.append(t);t.select();try{document.execCommand('copy');btn.textContent='Kopiert ✓'}catch(e){btn.textContent='Bitte manuell kopieren'}t.remove()}
function copyCode(btn){copyText(btn.parentElement.innerText.replace('Code kopieren','').trim(),btn)}
function copyLiveCss(){copyText(document.getElementById('liveCssOutput').textContent,event.target)}
document.getElementById('globalSearch').addEventListener('input',e=>{const q=e.target.value.toLowerCase().trim();document.querySelectorAll('.searchable').forEach(el=>{el.hidden=!!q&&!el.innerText.toLowerCase().includes(q)});if(q){document.querySelectorAll('.property').forEach(el=>{el.style.display=el.innerText.toLowerCase().includes(q)?'grid':'none'})}else document.querySelectorAll('.property').forEach(el=>el.style.display='grid')});
const bgControls=['bgStyle','bgColor1','bgColor2','bgHeader','bgAccent','headerStyle','bgRadius','bgPatternSize','bgPatternOpacity'];
bgControls.forEach(id=>document.getElementById(id).addEventListener('input',updateBackground));
function updateBackground(){
const preview=document.getElementById('sitePreview');
const style=document.getElementById('bgStyle').value;
const c1=document.getElementById('bgColor1').value,c2=document.getElementById('bgColor2').value;
const accent=document.getElementById('bgAccent').value;
let header=document.getElementById('bgHeader').value;
const headerStyle=document.getElementById('headerStyle').value;
preview.className='site-preview theme-'+style;
preview.style.setProperty('--preview-bg',c1);
preview.style.setProperty('--preview-bg2',c2);
preview.style.setProperty('--preview-accent',accent);
preview.style.setProperty('--preview-radius',document.getElementById('bgRadius').value+'px');
if(style==='dark') { preview.style.color='#f3f6ff'; if(headerStyle==='normal') header='#ffffff'; }
if(headerStyle==='transparent') header='transparent';
if(headerStyle==='dark') header='#101827';
if(headerStyle==='accent') header=accent;
preview.style.setProperty('--preview-header',header);
const size=Number(document.getElementById('bgPatternSize').value);
const alpha=Number(document.getElementById('bgPatternOpacity').value)/100;
const overlay=`${c2}${Math.round(alpha*255).toString(16).padStart(2,'0')}`;
const backgrounds={
solid:c1, gradient:`linear-gradient(135deg, ${c1}, ${c2})`,
dark:'linear-gradient(135deg, #101827, #26344d)',
soft:`linear-gradient(135deg, #ffffff, ${c2})`,
image:`radial-gradient(circle at 15% 20%, ${c2} 0 8%, transparent 8.5%), radial-gradient(circle at 90% 15%, ${c2} 0 12%, transparent 12.5%), linear-gradient(135deg, ${c1}, #ffffff)`,
mesh:`radial-gradient(at 15% 20%, ${c2} 0, transparent 45%), radial-gradient(at 85% 15%, #f0abfc 0, transparent 42%), radial-gradient(at 50% 90%, #67e8f9 0, transparent 48%), ${c1}`,
stripes:`repeating-linear-gradient(135deg, ${c1} 0 ${size/2}px, ${overlay} ${size/2}px ${size}px)`,
dots:`radial-gradient(${overlay} 1.5px, transparent 1.5px), ${c1}`,
grid:`linear-gradient(${overlay} 1px, transparent 1px), linear-gradient(90deg, ${overlay} 1px, transparent 1px), ${c1}`,
radial:`radial-gradient(ellipse at top, ${c2}, ${c1} 70%)`,
aurora:`radial-gradient(ellipse at 10% 10%, #34d39999, transparent 45%), radial-gradient(ellipse at 90% 20%, #818cf899, transparent 45%), radial-gradient(ellipse at 50% 100%, ${c2}, ${c1})`,
checker:`conic-gradient(${overlay} 25%, transparent 0 50%, ${overlay} 0 75%, transparent 0)`,
waves:`repeating-radial-gradient(ellipse at 0 0, transparent 0 ${size/3}px, ${overlay} ${size/3+1}px ${size/3+3}px), ${c1}`
};
const background=backgrounds[style]||c1;
if(style==='dots'||style==='grid'||style==='checker') preview.style.backgroundSize=`${size}px ${size}px`;
else preview.style.backgroundSize='cover';
document.getElementById('backgroundCode').textContent=`/* Hintergrund: ${style} */\nbody {\n margin: 0;\n background: ${background};\n background-size: ${['dots','grid','checker'].includes(style)?size+'px '+size+'px':'cover'};\n color: ${style==='dark'?'#f3f6ff':'#172b49'};\n font-family: Arial, sans-serif;\n}\n\nheader {\n background: ${header};\n padding: 16px 24px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo, .button { color: ${accent}; }\n.button {\n background: ${accent};\n color: white;\n border: 0;\n border-radius: 7px;\n padding: 10px 14px;\n}\n\n.content-card {\n background: #ffffffcc;\n border-radius: ${document.getElementById('bgRadius').value}px;\n padding: 16px;\n}`;
}
function resetBackground(){
document.getElementById('bgStyle').value='solid';
document.getElementById('bgColor1').value='#eaf2ff';
document.getElementById('bgColor2').value='#c7d9ff';
document.getElementById('bgHeader').value='#ffffff';
document.getElementById('bgAccent').value='#2563eb';
document.getElementById('headerStyle').value='normal';
document.getElementById('bgRadius').value=12;
updateBackground();
}
function copyBackgroundCode(){copyText(document.getElementById('backgroundCode').textContent,event.target)}
updateBackground();
const templateNames={clean:'Clean & Weiß',gradient:'Farbverlauf',dark:'Dunkel & Modern',nature:'Natur & Ruhig',card:'Karten-Layout',portfolio:'Portfolio',shop:'Produkt / Shop',blog:'Blog / Artikel'};
const templateMarkup={
clean:{eyebrow:'EINFACH · KLAR · MODERN',heading:'Deine Website beginnt hier.',desc:'Ein simples Layout, das du für deine eigene Website anpassen kannst.',tiles:[['Einfach','Alles übersichtlich angeordnet.'],['Flexibel','Farben und Inhalte leicht ändern.'],['Responsive','Passt sich kleineren Displays an.']]},
gradient:{eyebrow:'FRISCHE IDEEN',heading:'Bring Farbe ins Web.',desc:'Ein weicher Farbverlauf macht den Einstieg freundlich und modern.',tiles:[['Farben','Kombiniere deine Lieblingsfarben.'],['Modern','Ein Verlauf als Blickfang.'],['Einfach','Mit wenigen CSS-Zeilen erstellt.']]},
dark:{eyebrow:'DARK MODE',heading:'Ein klarer Auftritt.',desc:'Dunkle Flächen, gute Kontraste und eine leuchtende Akzentfarbe.',tiles:[['Kontrast','Text bleibt gut lesbar.'],['Akzent','Setze Highlights gezielt ein.'],['Fokus','Weniger Ablenkung im Layout.']]},
nature:{eyebrow:'NATÜRLICH · RUHIG',heading:'Ein bisschen mehr Ruhe.',desc:'Sanfte Grün- und Cremetöne für eine entspannte, natürliche Website.',tiles:[['Sanft','Gedämpfte Farben.'],['Natürlich','Grün und warme Neutraltöne.'],['Lesbar','Einfaches Layout.']]},
card:{eyebrow:'KARTEN & KACHELN',heading:'Inhalte klar sortieren.',desc:'Ein abgesetzter Inhaltsbereich mit Karten macht Informationen leicht erfassbar.',tiles:[['Karte 1','Ein Thema pro Karte.'],['Karte 2','Gleichmäßige Abstände.'],['Karte 3','Auf Mobilgeräten untereinander.']]},
portfolio:{eyebrow:'AUSGEWÄHLTE ARBEITEN',heading:'Hallo, ich bin Alex.',desc:'Ein ruhiger, typografischer Stil für Portfolio, persönliche Seite oder Projektvorstellung.',tiles:[['Projekt 01','Webdesign und Layout.'],['Projekt 02','Kleine interaktive Website.'],['Über mich','Kurzprofil und Kontakt.']]},
shop:{eyebrow:'NEU ENTDECKEN',heading:'Dein nächster Favorit.',desc:'Warme Farben und klare Produktkacheln für einen kleinen Shop oder eine Produktseite.',tiles:[['Produkt A','Kurze Produktbeschreibung.'],['Produkt B','Zeige die wichtigsten Vorteile.'],['Angebote','Hinweise und Aktionen.']]},
blog:{eyebrow:'NOTIZEN & IDEEN',heading:'Gedanken, die bleiben.',desc:'Ein ruhiger Artikelkopf für Blog, Tutorial oder Wissenssammlung.',tiles:[['Erster Beitrag','Ein kurzer Einstieg ins Thema.'],['Weiterlesen','Verlinke verwandte Artikel.']]}
};
function updateTemplate(){
const kind=document.getElementById('templateChoice').value, accent=document.getElementById('templateAccent').value, preview=document.getElementById('templatePreview'), d=templateMarkup[kind];
preview.className='template-preview tpl-'+kind;preview.style.setProperty('--tpl-accent',accent);
preview.querySelector('.template-eyebrow').textContent=d.eyebrow;preview.querySelector('.template-heading').textContent=d.heading;preview.querySelector('.template-description').textContent=d.desc;
const tiles=preview.querySelector('.template-tiles');tiles.innerHTML='';d.tiles.forEach(t=>{const el=document.createElement('div');el.className='template-tile';const b=document.createElement('b');b.textContent=t[0];const p=document.createElement('p');p.textContent=t[1];el.append(b,p);tiles.append(el)});
document.getElementById('templateCode').textContent=makeTemplateCode(kind,accent);
}
function makeTemplateCode(kind,accent){
const d=templateMarkup[kind], dark=kind==='dark', bg={clean:'#ffffff',gradient:'linear-gradient(135deg, #e8f2ff, #e9ddff 55%, #ffe5f4)',dark:'linear-gradient(135deg, #101827, #1d2d49)',nature:'#edf4e8',card:'#f2f5fa',portfolio:'#f7f5f1',shop:'#fff7ed',blog:'#ffffff'}[kind];
const fg=dark?'#f3f6ff':'#21334d', tileBg=dark?'#1b2940':kind==='nature'?'#f9fcf6':'#ffffff';
return `<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Meine Website</title>
<style>
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Arial, sans-serif;
background: ${bg};
color: ${fg};
}
header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
padding: 16px 6%;
background: ${dark?'#0c1424':kind==='gradient'?'#ffffff70':kind==='nature'?'#f7fbf3':'#ffffff'};
border-bottom: 1px solid ${dark?'#34425a':'#e5eaf2'};
}
.logo { color: ${accent}; font-weight: bold; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { color: inherit; text-decoration: none; }
main { padding: 36px 6%; }
.eyebrow { color: ${accent}; font-size: .75rem; font-weight: bold; letter-spacing: 1.5px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 10px 0; }
p { line-height: 1.6; }
.button {
display: inline-block; background: ${accent}; color: white;
text-decoration: none; padding: 11px 16px; border-radius: 7px;
}
.cards {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px; padding: 0 6% 28px;
}
.card { padding: 16px; border-radius: 10px; background: ${tileBg}; border: 1px solid ${dark?'#35455e':'#e0e8f2'}; }
.card p { font-size: .9rem; }
@media (max-width: 650px) {
.cards { grid-template-columns: 1fr; }
header { align-items: flex-start; flex-direction: column; }
main { padding-top: 24px; }
}
</style>
</head>
<body>
<header>
<div class="logo">DEIN LOGO</div>
<nav><a href="#start">Start</a><a href="#infos">Über uns</a><a href="#kontakt">Kontakt</a></nav>
</header>
<main id="start">
<div class="eyebrow">${d.eyebrow}</div>
<h1>${d.heading}</h1>
<p>${d.desc}</p>
<a class="button" href="#infos">Mehr erfahren</a>
</main>
<section class="cards" id="infos">
${d.tiles.map(t=>` <article class="card"><h2>${t[0]}</h2><p>${t[1]}</p></article>`).join('\n')}
</section>
</body>
</html>`;
}
function copyTemplateCode(){copyText(document.getElementById('templateCode').textContent,event.target)}
function downloadTemplateCode(){const blob=new Blob([document.getElementById('templateCode').textContent],{type:'text/html;charset=utf-8'});const url=URL.createObjectURL(blob);const a=document.createElement('a');a.href=url;a.download='website-design.html';a.click();URL.revokeObjectURL(url)}
document.getElementById('templateChoice').addEventListener('change',updateTemplate);
document.getElementById('templateAccent').addEventListener('input',updateTemplate);
updateTemplate();
const jsCategories={
'Variablen & Werte':[
['const','Konstante','const name = "Alex";','Wert, der nicht neu zugewiesen wird.'],
['let','Veränderbare Variable','let punkte = 0;','Wert kann später geändert werden.'],
['Datentypen','Typ prüfen','typeof 42; // "number"','Prüft den Datentyp eines Wertes.'],
['Template Strings','Text mit Variablen','const text = `Hallo ${name}!`;','Variablen mit ${...} in Text einfügen.']
],
'Bedingungen':[
['if / else','Wenn-dann','if (punkte >= 10) {\\n console.log("Geschafft!");\\n} else {\\n console.log("Weiterüben");\\n}','Führt Code abhängig von einer Bedingung aus.'],
['Vergleiche','Werte vergleichen','if (alter >= 18) { /* ... */ }','Zum Beispiel ===, !==, >, <, >= und <=.'],
['Ternary','Kurze Bedingung','const status = aktiv ? "An" : "Aus";','Kurzform für eine einfache if/else-Zuweisung.']
],
'Schleifen':[
['for','Zählschleife','for (let i = 0; i < 5; i++) {\\n console.log(i);\\n}','Wiederholt Code mit einem Zähler.'],
['for...of','Liste durchlaufen','for (const frucht of fruechte) {\\n console.log(frucht);\\n}','Geht die Werte eines Arrays durch.'],
['while','Solange wiederholen','while (punkte < 5) {\\n punkte++;\\n}','Wiederholt, solange die Bedingung wahr ist.']
],
'Arrays & Objekte':[
['Array','Liste erstellen','const farben = ["Blau", "Rot", "Grün"];','Speichert mehrere Werte in einer Liste.'],
['map()','Liste umwandeln','const doppelt = zahlen.map(n => n * 2);','Erstellt aus jedem Eintrag einen neuen Wert.'],
['filter()','Liste filtern','const grosse = zahlen.filter(n => n > 10);','Behält nur Einträge, die die Bedingung erfüllen.'],
['Objekt','Eigenschaften speichern','const person = { name: "Alex", aktiv: true };','Gruppiert zusammengehörige Werte.']
],
'Funktionen':[
['Funktion','Code wiederverwenden','function begruessung(name) {\\n return `Hallo ${name}!`;\\n}','Ein benannter Codeblock mit optionalen Parametern.'],
['Arrow Function','Kurze Funktion','const addiere = (a, b) => a + b;','Kompakte Schreibweise für Funktionen.'],
['return','Ergebnis zurückgeben','function quadrat(n) { return n * n; }','Gibt ein Ergebnis an den Aufrufer zurück.']
],
'DOM & Ereignisse':[
['querySelector()','Element finden','const titel = document.querySelector("h1");','Findet das erste passende HTML-Element.'],
['textContent','Text ändern','document.querySelector("#meldung").textContent = "Hallo!";','Ändert den Text eines Elements.'],
['addEventListener()','Klick abfangen','button.addEventListener("click", () => {\\n console.log("Klick!");\\n});','Reagiert auf Klicks, Eingaben und andere Ereignisse.'],
['classList','CSS-Klasse schalten','element.classList.toggle("aktiv");','Fügt eine Klasse hinzu oder entfernt sie.']
],
'Zeit & Zufall':[
['Math.random()','Zufallszahl','const zahl = Math.floor(Math.random() * 100) + 1;','Zufällige ganze Zahl von 1 bis 100.'],
['setTimeout()','Verzögerung','setTimeout(() => console.log("Los!"), 1000);','Führt Code nach einer Verzögerung aus.'],
['Date()','Aktuelle Zeit','const jetzt = new Date();\\nconsole.log(jetzt.toLocaleTimeString());','Erstellt ein Datum-Objekt und zeigt die Uhrzeit.']
]
};
const jsNav=document.getElementById('jsNav'), jsList=document.getElementById('jsPropertyList'), jsTitle=document.getElementById('jsCategoryTitle');
Object.keys(jsCategories).forEach((cat,i)=>{const b=document.createElement('button');b.textContent=cat;b.className=i===0?'active':'';b.onclick=()=>showJsCat(cat);jsNav.append(b)});
function showJsCat(cat){
[...jsNav.children].forEach(b=>b.classList.toggle('active',b.textContent===cat));
jsTitle.innerHTML='<h3>'+cat+'</h3>';jsList.innerHTML='';
jsCategories[cat].forEach(item=>{
const d=document.createElement('div');d.className='property';
const left=document.createElement('div');left.innerHTML='<strong></strong><p></p>';left.querySelector('strong').textContent=item[0];left.querySelector('p').textContent=item[1];
const right=document.createElement('div');const pre=document.createElement('pre');pre.className='code';pre.style.maxHeight='none';pre.style.whiteSpace='pre-wrap';
const code=document.createElement('code');code.textContent=item[2].replace(/\\n/g,'\n');pre.append(code);
const desc=document.createElement('p');desc.className='hint';desc.textContent=item[3];
const btn=document.createElement('button');btn.textContent='Code kopieren';btn.style.marginTop='6px';btn.onclick=()=>copyText(code.textContent,btn);
right.append(pre,desc,btn);d.append(left,right);jsList.append(d);
});
}
showJsCat('Variablen & Werte');
</script>
</body>
</html>
+392
View File
@@ -0,0 +1,392 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code-Bibliothek</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f4f8;
color: #222;
margin: 0;
padding: 20px;
}
h1 {
text-align: center;
color: #304fc4;
}
#suche {
width: 100%;
padding: 12px;
margin-bottom: 20px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 8px;
}
.karte {
background: white;
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 2px 6px #0001;
}
.karte h2 {
color: #304fc4;
}
pre {
background: #172033;
color: #e8edff;
padding: 15px;
overflow-x: auto;
border-radius: 8px;
}
button {
background: #304fc4;
color: white;
border: none;
padding: 10px 15px;
border-radius: 6px;
cursor: pointer;
}
button:hover {
background: #203894;
}
.kategorie {
font-weight: bold;
color: #666;
}
</style>
</head>
<body>
<h1>📚 Meine Code-Bibliothek</h1>
<input type="text" id="suche" placeholder="Code suchen, z. B. if, HTML, Farbe..." oninput="suchen()">
<div id="bibliothek">
<div class="karte">
<p class="kategorie">HTML</p>
<h2>1. Grundgerüst einer HTML-Seite</h2>
<p>Der grundlegende Aufbau einer Webseite.</p>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="de"&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;title&gt;Meine Webseite&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Überschrift&lt;/h1&gt;
&lt;p&gt;Mein Text&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">HTML</p>
<h2>2. Überschriften und Text</h2>
<p>Überschriften und Absätze erstellen.</p>
<pre><code>&lt;h1&gt;Hauptüberschrift&lt;/h1&gt;
&lt;h2&gt;Unterüberschrift&lt;/h2&gt;
&lt;h3&gt;Kleine Überschrift&lt;/h3&gt;
&lt;p&gt;Das ist ein Absatz.&lt;/p&gt;
&lt;strong&gt;Fetter Text&lt;/strong&gt;
&lt;em&gt;Kursiver Text&lt;/em&gt;</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">HTML</p>
<h2>3. Links und Bilder</h2>
<p>Links zu Webseiten und Bilder einfügen.</p>
<pre><code>&lt;a href="https://example.com"&gt;
Webseite öffnen
&lt;/a&gt;
&lt;img src="bild.jpg"
alt="Bildbeschreibung"
width="300"&gt;</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">HTML</p>
<h2>4. Listen</h2>
<p>Listen mit Punkten oder Nummern erstellen.</p>
<pre><code>&lt;ul&gt;
&lt;li&gt;Erster Punkt&lt;/li&gt;
&lt;li&gt;Zweiter Punkt&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Schritt eins&lt;/li&gt;
&lt;li&gt;Schritt zwei&lt;/li&gt;
&lt;/ol&gt;</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">CSS</p>
<h2>5. Farben und Schrift</h2>
<p>Das Aussehen der Webseite verändern.</p>
<pre><code>body {
background-color: lightgray;
color: black;
font-family: Arial, sans-serif;
}
h1 {
color: blue;
font-size: 32px;
}</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">CSS</p>
<h2>6. Klassen und IDs</h2>
<p>Bestimmte HTML-Elemente gestalten.</p>
<pre><code>/* HTML:
&lt;p class="wichtig"&gt;Text&lt;/p&gt;
&lt;div id="kasten"&gt;Text&lt;/div&gt;
*/
.wichtig {
color: red;
font-weight: bold;
}
#kasten {
background: yellow;
padding: 10px;
}</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">CSS</p>
<h2>7. Abstände und Rahmen</h2>
<p>Abstände und Rahmen eines Elements einstellen.</p>
<pre><code>.box {
margin: 20px;
padding: 15px;
border: 2px solid black;
border-radius: 10px;
}</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>8. Variablen</h2>
<p>Werte speichern und verwenden.</p>
<pre><code>const name = "Max";
let punkte = 10;
punkte = punkte + 5;
console.log(name);
console.log(punkte);</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>9. Bedingungen: if und else</h2>
<p>Code abhängig von einer Bedingung ausführen.</p>
<pre><code>let punkte = 60;
if (punkte >= 50) {
console.log("Bestanden");
} else {
console.log("Nicht bestanden");
}</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>10. Vergleichsoperatoren</h2>
<p>Werte miteinander vergleichen.</p>
<pre><code>== // Gleichheit mit Umwandlung
=== // Strikte Gleichheit
!= // Ungleichheit
!== // Strikte Ungleichheit
> // Größer
< // Kleiner
>= // Größer oder gleich
<= // Kleiner oder gleich
&& // UND
|| // ODER
! // NICHT</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>11. Schleife: for</h2>
<p>Einen Codeblock mehrmals ausführen.</p>
<pre><code>for (let i = 0; i < 5; i++) {
console.log(i);
}
// Ausgabe: 0, 1, 2, 3, 4</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>12. Funktionen</h2>
<p>Code definieren und bei Bedarf aufrufen.</p>
<pre><code>function addieren(a, b) {
return a + b;
}
let ergebnis = addieren(5, 3);
console.log(ergebnis); // 8</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>13. Arrays und Listen</h2>
<p>Mehrere Werte in einer Variablen speichern.</p>
<pre><code>let namen = ["Anna", "Max", "Lisa"];
console.log(namen[0]); // Anna
namen.push("Tom"); // Hinzufügen
console.log(namen.length); // Anzahl</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>14. HTML-Element auswählen</h2>
<p>Ein Element anhand seiner ID finden.</p>
<pre><code>// HTML:
// &lt;p id="text"&gt;Alter Text&lt;/p&gt;
let element = document.getElementById("text");
element.textContent = "Neuer Text";</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>15. Button-Klick</h2>
<p>Auf einen Klick reagieren.</p>
<pre><code>// HTML:
// &lt;button id="knopf"&gt;Klick mich&lt;/button&gt;
let button = document.getElementById("knopf");
button.addEventListener("click", function() {
alert("Du hast geklickt!");
});</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>16. Eingabefeld auslesen</h2>
<p>Den eingegebenen Text verwenden.</p>
<pre><code>// HTML:
// &lt;input id="eingabe"&gt;
let feld = document.getElementById("eingabe");
let text = feld.value;
console.log(text);</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">JavaScript</p>
<h2>17. Rechenoperatoren</h2>
<p>Die wichtigsten mathematischen Berechnungen.</p>
<pre><code>let a = 10;
let b = 3;
console.log(a + b); // Addition
console.log(a - b); // Subtraktion
console.log(a * b); // Multiplikation
console.log(a / b); // Division
console.log(a % b); // Rest einer Division</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
<div class="karte">
<p class="kategorie">Grundlagen</p>
<h2>18. Kommentare</h2>
<p>Notizen im Code, die nicht ausgeführt werden.</p>
<pre><code>// Einzeiliger Kommentar
/*
Mehrzeiliger
Kommentar
*/</code></pre>
<button onclick="kopieren(this)">Code kopieren</button>
</div>
</div>
<script>
// SUCHFUNKTION
function suchen() {
const eingabe = document.getElementById("suche");
const begriff = eingabe.value.toLowerCase();
const karten = document.querySelectorAll(".karte");
karten.forEach(function (karte) {
const inhalt = karte.textContent.toLowerCase();
if (inhalt.includes(begriff)) {
karte.style.display = "block";
} else {
karte.style.display = "none";
}
});
}
// CODE KOPIEREN
async function kopieren(button) {
const karte = button.closest(".karte");
const code = karte.querySelector("pre code").textContent;
try {
await navigator.clipboard.writeText(code);
button.textContent = "Kopiert!";
} catch (fehler) {
button.textContent = "Kopieren nicht möglich";
}
setTimeout(function () {
button.textContent = "Code kopieren";
}, 1500);
}
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff