This commit is contained in:
4
01_grundlagen/docs/programmierrichtlinien.md
Normal file
4
01_grundlagen/docs/programmierrichtlinien.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Programmierrichtlinien
|
||||||
|
|
||||||
|
- Schreibe immer genau eine Anweisung in genau eine Zeile.
|
||||||
|
- Setze beim Beenden einer Anweisung das Semikolon (eslint: semi)
|
||||||
5
01_grundlagen/docs/tastenkuerzel.md
Normal file
5
01_grundlagen/docs/tastenkuerzel.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Tastenkürzel in VSCode
|
||||||
|
|
||||||
|
- `STRG + #` Ein- und Auskommentieren.
|
||||||
|
- `ALT + SHIFT + ↑` Kopie von Zeile über aktuelle Markierung
|
||||||
|
- `ALT + SHIFT + ↓` Kopie von Zeile unter aktuelle Markierung
|
||||||
27
01_grundlagen/uebungen/u02_alert.html
Normal file
27
01_grundlagen/uebungen/u02_alert.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Übung 2: Alarm!</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class="container py-5">
|
||||||
|
<div class="alert alert-primary">
|
||||||
|
<h2>Übung 2: Alarm!</h2>
|
||||||
|
<p>
|
||||||
|
Gib den folgenden Text in einer Alert-Box aus: »Alert! Your console is on fire! Hurry! Write an email to the
|
||||||
|
fire department.«
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script>
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
alert('Alert! Your console is on fire! Hurry! Write an email to the fire department.');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- nav#menu-main.menu-main>ul.list.list-group>li.list-group-item*4>a[href="#"]{Link $} -->
|
<!-- nav#menu-main.menu-main>ul.list.list-group.list-group-flush>li.list-group-item*4>a[href="#"]{Link $} -->
|
||||||
<nav id="menu-main" class="menu-main">
|
<nav id="menu-main" class="menu-main mb-3">
|
||||||
<ul class="list list-group list-group-flush">
|
<ul class="list list-group list-group-flush">
|
||||||
<li class="list-group-item"><a href="#">Link 1</a></li>
|
<li class="list-group-item"><a href="#">Link 1</a></li>
|
||||||
<li class="list-group-item"><a href="#">Link 2</a></li>
|
<li class="list-group-item"><a href="#">Link 2</a></li>
|
||||||
@@ -28,29 +28,29 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Emmet: table.table.table-striped>(thead.table-dark>tr>(td{Bezeichnung}+td{Wert})+tbody>tr*3>td*2) -->
|
<!-- Emmet: table.table.table-striped>(thead.table-dark>tr>(th{Bezeichnung}+th{Wert}))+tbody>tr*3>(td{$}+td{wert}) -->
|
||||||
|
|
||||||
<table class="table table-striped my-3">
|
<table class="table table-striped">
|
||||||
<thead class="table-dark">
|
<thead class="table-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bezeichnung</td>
|
<th>Bezeichnung</th>
|
||||||
<td>Wert</td>
|
<th>Wert</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
|
<td>wert</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
|
<td>wert</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>4</td>
|
<td>wert</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>5</td>
|
|
||||||
<td>6</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -16,7 +16,15 @@ Prop | Value | -
|
|||||||
|
|
||||||
# MacDown 3000
|
# MacDown 3000
|
||||||
|
|
||||||

|
<!--  -->
|
||||||
|
|
||||||
|
|
||||||
|
<figure>
|
||||||
|
<img src="https://cdn.commonmark.org/uploads/default/optimized/2X/3/366f3614de6996d79a131fdf9b41ed7d65cfe181_2_690x424.png" alt="Markdown logo" width="250" />
|
||||||
|
<figcaption>Markdown logo</figcaption>
|
||||||
|
</figure>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hello there! I'm **MacDown 3000**, the open source Markdown editor for macOS.
|
Hello there! I'm **MacDown 3000**, the open source Markdown editor for macOS.
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>HTML Grundgerüst mit Boostrap 5</title>
|
<title></title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<div class="container py-5">
|
<div class="container py-5">
|
||||||
<h1>HTML Grundgerüst mit Boostrap 5</h1>
|
<h1></h1>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
43
01_grundlagen/unterricht/tag02/01_alert-prompt-confirm.html
Normal file
43
01_grundlagen/unterricht/tag02/01_alert-prompt-confirm.html
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>alert(), prompt(), confirm()</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class="container py-5">
|
||||||
|
<h1>alert(), prompt(), confirm()</h1>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<div class="alert alert-primary mb-3">
|
||||||
|
<h2>alert()</h2>
|
||||||
|
<p>
|
||||||
|
Die <a href="https://developer.mozilla.org/de/docs/Web/API/Window/alert">window.alert()</a> Methode zeigt
|
||||||
|
einen Alert-Dialog mit optional spezifiziertem Inhalt und einem OK-Button an.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<!-- .alert.alert-primary.mb-3>h2{prompt()}+p -->
|
||||||
|
<div class="alert alert-primary mb-3">
|
||||||
|
<h2>prompt()</h2>
|
||||||
|
<p>
|
||||||
|
Die <a href="https://developer.mozilla.org/de/docs/Web/API/Window/prompt">window.prompt()</a> zeigt ein
|
||||||
|
Dialogfenster mit einem Text-Eingabefeld an, mit einer optionalen Nachricht an den Benutzer.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script>
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// window.alert('Hello World'); // window muss als äußerstes Objekt nicht explizit angegeben werden. (Angabe ist optional)
|
||||||
|
// alert('Hello World');
|
||||||
|
|
||||||
|
// let result = window.prompt('Die Anwort auf alles?');
|
||||||
|
let result = prompt('Die Anwort auf alles?');
|
||||||
|
console.log(result); // => string | null
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user